Class TableMetaDataCache

java.lang.Object
org.litebridge.orm.persistence.TableMetaDataCache

public class TableMetaDataCache extends Object
Caches table metadata retrieved from the database provider.
  • Constructor Details

    • TableMetaDataCache

      public TableMetaDataCache(DatabaseProvider databaseProvider, TransactionManager transactionManager)
      Creates a new TableMetaDataCache instance.
      Parameters:
      databaseProvider - the database provider
      transactionManager - the transaction manager
  • Method Details

    • ensureTableMetaData

      public TableMetaData ensureTableMetaData(Table table)
      Ensures that table metadata for the specified table is loaded and cached.
      Parameters:
      table - the table definition
      Returns:
      the table metadata
      Throws:
      IllegalStateException - if an error occurs while retrieving metadata from the database