public class RDBMSStoreManager
extends org.datanucleus.store.AbstractStoreManager
implements org.datanucleus.store.BackedSCOStoreManager, org.datanucleus.store.schema.SchemaAwareStoreManager, org.datanucleus.store.schema.SchemaScriptAwareStoreManager
The RDBMS manager's responsibilities extend those for StoreManager to add :
Modifier and Type | Field and Description |
---|---|
protected String |
catalogName
Catalog name for the database (if supported).
|
protected DatastoreAdapter |
dba
Adapter for the datastore being used.
|
protected SQLExpressionFactory |
expressionFactory
Factory for expressions using the generic query SQL mechanism.
|
protected IdentifierFactory |
identifierFactory
Factory for identifiers for this datastore.
|
protected Map<org.datanucleus.state.ObjectProvider,DatastoreClass> |
insertedDatastoreClassByStateManager
Map of DatastoreClass keyed by StateManager, for objects currently being inserted.
|
protected static org.datanucleus.util.Localiser |
LOCALISER_RDBMS
Localiser for messages.
|
protected MappedTypeManager |
mappedTypeMgr
TypeManager for mapped information.
|
protected MappingManager |
mappingManager
Manager for the mapping between Java and datastore types.
|
protected ReadWriteLock |
schemaLock
Lock object aimed at providing a lock on the schema definition managed here, preventing
reads while it is being updated etc.
|
protected String |
schemaName
Schema name for the database (if supported).
|
autoCreateColumns, autoCreateConstraints, autoCreateTables, autoCreateWarnOnError, connectionMgr, fixedDatastore, flushProcess, LOCALISER, namingFactory, nucleusContext, persistenceHandler, primaryConnectionFactoryName, readOnlyDatastore, schemaHandler, secondaryConnectionFactoryName, storeDataMgr, storeManagerKey, validateColumns, validateConstraints, validateTables
Constructor and Description |
---|
RDBMSStoreManager(org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.NucleusContext ctx,
Map<String,Object> props)
Constructs a new RDBMSManager.
|
Modifier and Type | Method and Description |
---|---|
void |
addClasses(String[] classNames,
org.datanucleus.ClassLoaderResolver clr)
Method to add several persistable classes to the store manager's set of supported classes.
|
void |
addSchemaCallback(String className,
org.datanucleus.metadata.AbstractMemberMetaData mmd) |
protected void |
addSequenceForMetaData(org.datanucleus.metadata.MetaData md,
String seq,
org.datanucleus.ClassLoaderResolver clr,
Set<String> sequencesGenerated,
FileWriter ddlWriter) |
protected void |
addSequenceTableForMetaData(org.datanucleus.metadata.MetaData md,
org.datanucleus.ClassLoaderResolver clr,
Set<String> seqTablesGenerated) |
void |
addWrittenDdlStatement(String stmt)
When we are in SchemaTool DDL mode, add a new DDL statement.
|
boolean |
allowsBatching()
Convenience method to return if the datastore supports batching and the user wants batching.
|
protected static Set<String> |
cleanInputClassNames(org.datanucleus.NucleusContext ctx,
Set<String> inputClassNames)
Method to generate a set of class names using the input list.
|
void |
close()
Release of resources
|
void |
createDatabase(String databaseName,
Properties props) |
void |
createSchema(Set<String> inputClassNames,
Properties props) |
protected void |
createSchemaSequences(Set<String> classNames,
org.datanucleus.ClassLoaderResolver clr,
FileWriter ddlWriter) |
void |
deleteSchema(Set<String> inputClassNames,
Properties props) |
void |
dropDatabase(String schemaName,
Properties props) |
void |
executeScript(String script) |
org.datanucleus.store.scostore.Store |
getBackingStoreForField(org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
Class type)
Accessor for the backing store for the specified member.
|
Calendar |
getCalendarForDateTimezone()
Accessor for the Calendar to be used in handling all timezone issues with the datastore.
|
String |
getCatalogName()
Accessor for the (default) RDBMS catalog name.
|
org.datanucleus.metadata.AbstractClassMetaData[] |
getClassesManagingTableForClass(org.datanucleus.metadata.AbstractClassMetaData cmd,
org.datanucleus.ClassLoaderResolver clr)
Method to return the class(es) that has a table managing the persistence of
the fields of the supplied class.
|
String |
getClassNameForObjectID(Object id,
org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.ExecutionContext ec)
Returns the class corresponding to the given object identity.
|
RDBMSColumnInfo |
getColumnInfoForColumnName(Table table,
Connection conn,
DatastoreIdentifier column)
Returns the column info for a column name.
|
List |
getColumnInfoForTable(Table table,
Connection conn)
Returns the column info for a database table.
|
boolean |
getCompleteDDL()
Accessor for whether we should generate complete DDL when in that mode.
|
DatastoreAdapter |
getDatastoreAdapter()
Gets the DatastoreAdapter to use for this store.
|
DatastoreClass |
getDatastoreClass(DatastoreIdentifier name)
Returns the datastore table having the given identifier.
|
DatastoreClass |
getDatastoreClass(String className,
org.datanucleus.ClassLoaderResolver clr)
Returns the primary datastore table serving as backing for the given class.
|
Date |
getDatastoreDate()
Get the date/time of the datastore.
|
Writer |
getDdlWriter()
Accessor for the writer for DDL (if set).
|
String |
getDefaultIdentifierCase()
Method to return the default identifier case.
|
String |
getDefaultObjectProviderClassName() |
org.datanucleus.store.fieldmanager.FieldManager |
getFieldManagerForResultProcessing(org.datanucleus.ExecutionContext ec,
ResultSet rs,
StatementClassMapping resultMappings,
org.datanucleus.metadata.AbstractClassMetaData cmd) |
org.datanucleus.store.fieldmanager.FieldManager |
getFieldManagerForResultProcessing(org.datanucleus.state.ObjectProvider op,
ResultSet rs,
StatementClassMapping resultMappings) |
org.datanucleus.store.fieldmanager.FieldManager |
getFieldManagerForStatementGeneration(org.datanucleus.state.ObjectProvider sm,
PreparedStatement ps,
StatementClassMapping stmtMappings)
Method to return a FieldManager for populating information in statements.
|
IdentifierFactory |
getIdentifierFactory()
Accessor for the factory for creating identifiers (table/column names etc).
|
Collection |
getManagedTables(String catalog,
String schema)
Convenience accessor of the Table objects managed in this datastore at this point.
|
MappedTypeManager |
getMappedTypeManager()
Accessor for the manager of mapped type information.
|
MappingManager |
getMappingManager()
Gets the MappingManager to use for this store.
|
org.datanucleus.store.NucleusConnection |
getNucleusConnection(org.datanucleus.ExecutionContext ec)
Method to return a NucleusConnection for the ExecutionContext.
|
org.datanucleus.store.NucleusSequence |
getNucleusSequence(org.datanucleus.ExecutionContext ec,
org.datanucleus.metadata.SequenceMetaData seqmd)
Method to return a datastore sequence for this datastore matching the passed sequence MetaData.
|
protected Properties |
getPropertiesForGenerator(org.datanucleus.metadata.AbstractClassMetaData cmd,
int absoluteFieldNumber,
org.datanucleus.ExecutionContext ec,
org.datanucleus.metadata.SequenceMetaData seqmd,
org.datanucleus.metadata.TableGeneratorMetaData tablegenmd)
Method to return the properties to pass to the generator for the specified field.
|
String |
getQueryCacheKey() |
Object |
getResultValueAtPosition(ResultSet rs,
JavaTypeMapping mapping,
int position)
Method to return the value from the results for the mapping at the specified position.
|
org.datanucleus.util.MultiMap |
getSchemaCallbacks() |
String |
getSchemaName()
Accessor for the (default) RDBMS schema name.
|
SQLController |
getSQLController()
Accessor for the SQL controller.
|
SQLExpressionFactory |
getSQLExpressionFactory()
Accessor for the SQL expression factory to use when generating SQL statements.
|
SQLTypeInfo |
getSQLTypeInfoForJDBCType(int jdbcType)
Accessor for the SQL type info for the specified JDBC type
|
SQLTypeInfo |
getSQLTypeInfoForJDBCType(int jdbcType,
String sqlType)
Accessor for the SQL type info for the specified JDBC type.
|
org.datanucleus.store.StoreData[] |
getStoreDataForDatastoreContainerObject(DatastoreIdentifier tableIdentifier)
Utility to return all StoreData for a Datastore Container identifier.
|
protected String |
getStrategyForNative(org.datanucleus.metadata.AbstractClassMetaData cmd,
int absFieldNumber)
Method defining which value-strategy to use when the user specifies "native".
|
protected Object |
getStrategyValueForGenerator(org.datanucleus.store.valuegenerator.ValueGenerator generator,
org.datanucleus.ExecutionContext ec)
Accessor for the next value from the specified generator.
|
Collection |
getSupportedOptions()
Accessor for the supported options in string form
|
Table |
getTable(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Returns the datastore container (table) for the specified field.
|
boolean |
hasWrittenDdlStatement(String stmt)
When we are in SchemaTool DDL mode, return if the supplied statement is already present.
|
protected void |
initialiseIdentifierFactory(org.datanucleus.NucleusContext nucleusContext)
Method to create the IdentifierFactory to be used by this store.
|
boolean |
insertValuesOnInsert(DatastoreMapping datastoreMapping)
Accessor for whether this mapping requires values inserting on an INSERT.
|
void |
invalidateColumnInfoForTable(Table table)
Method to invalidate the cached column info for a table.
|
boolean |
isJdbcStore() |
boolean |
isObjectInserted(org.datanucleus.state.ObjectProvider sm,
int fieldNumber)
Accessor for whether the specified field of the object is inserted in the datastore yet.
|
boolean |
isObjectInserted(org.datanucleus.state.ObjectProvider sm,
String className)
Returns whether this object is inserted in the datastore far enough to be considered to be the
supplied type.
|
protected void |
logConfiguration()
Convenience method to log the configuration of this store manager.
|
protected org.datanucleus.store.scostore.ArrayStore |
newFKArrayStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr) |
protected org.datanucleus.store.scostore.ListStore |
newFKListStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr) |
protected org.datanucleus.store.scostore.MapStore |
newFKMapStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr) |
protected org.datanucleus.store.scostore.SetStore |
newFKSetStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr) |
protected org.datanucleus.store.scostore.ArrayStore |
newJoinArrayStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr,
Table table) |
Table |
newJoinDatastoreContainerObject(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr)
Called by (container) Mapping objects to request the creation of a DatastoreObject (table).
|
protected org.datanucleus.store.scostore.ListStore |
newJoinListStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr,
Table table) |
protected org.datanucleus.store.scostore.MapStore |
newJoinMapStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr,
Table table) |
protected org.datanucleus.store.scostore.SetStore |
newJoinSetStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr,
Table table) |
protected org.datanucleus.store.scostore.PersistableRelationStore |
newPersistableRelationStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr,
Table table) |
ResultObjectFactory |
newResultObjectFactory(org.datanucleus.metadata.AbstractClassMetaData acmd,
StatementClassMapping mappingDefinition,
boolean ignoreCache,
org.datanucleus.FetchPlan fetchPlan,
Class persistentClass) |
void |
printInformation(String category,
PrintStream ps)
Method to output particular information owned by this datastore.
|
void |
registerTableInitialized(Table table) |
void |
removeAllClasses(org.datanucleus.ClassLoaderResolver clr)
Utility to remove all classes that we are managing.
|
void |
resolveIdentifierMacro(org.datanucleus.util.MacroString.IdentifierMacro im,
org.datanucleus.ClassLoaderResolver clr)
Resolves an identifier macro.
|
void |
setObjectIsInsertedToLevel(org.datanucleus.state.ObjectProvider sm,
DatastoreClass table)
Method to set that the specified object is inserted down to the defined datastore class.
|
boolean |
supportsValueStrategy(String strategy)
Accessor for whether this value strategy is supported.
|
boolean |
useBackedSCOWrapperForMember(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ExecutionContext ec) |
boolean |
usesBackedSCOWrappers() |
void |
validateSchema(Set<String> inputClassNames,
Properties props) |
void |
validateTable(TableImpl table,
org.datanucleus.ClassLoaderResolver clr)
Utility to validate the specified table.
|
addClass, deregisterAllStoreData, getApiAdapter, getBooleanObjectProperty, getBooleanProperty, getBooleanProperty, getConnection, getConnection, getConnection, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionManager, getConnectionPassword, getConnectionURL, getConnectionUserName, getExtent, getFlushProcess, getIntProperty, getMetaDataManager, getNamingFactory, getNucleusContext, getPersistenceHandler, getProperty, getQueryManager, getSchemaHandler, getStoreManagerKey, getStrategyValue, getStringProperty, getSubClassesForClass, getValueGenerationManager, hasProperty, isAutoCreateColumns, isAutoCreateConstraints, isAutoCreateTables, isStrategyDatastoreAttributed, isValidateColumns, isValidateConstraints, isValidateTables, manageClassForIdentity, managesClass, newStoreData, registerConnectionFactory, registerConnectionMgr, registerStoreData, supportsQueryLanguage, transactionCommitted, transactionRolledBack, transactionStarted
protected static final org.datanucleus.util.Localiser LOCALISER_RDBMS
protected DatastoreAdapter dba
protected IdentifierFactory identifierFactory
protected String catalogName
protected String schemaName
protected MappedTypeManager mappedTypeMgr
protected MappingManager mappingManager
protected Map<org.datanucleus.state.ObjectProvider,DatastoreClass> insertedDatastoreClassByStateManager
protected ReadWriteLock schemaLock
protected SQLExpressionFactory expressionFactory
public RDBMSStoreManager(org.datanucleus.ClassLoaderResolver clr, org.datanucleus.NucleusContext ctx, Map<String,Object> props)
clr
- the ClassLoaderResolverctx
- The corresponding Context. This factory's non-tx data source will be
used to get database connections as needed to perform management functions.props
- Properties for the datastoreorg.datanucleus.exceptions.NucleusDataStoreException
- If the database could not be accessed or the name of the
schema could not be determined.public String getQueryCacheKey()
getQueryCacheKey
in interface org.datanucleus.store.StoreManager
getQueryCacheKey
in class org.datanucleus.store.AbstractStoreManager
protected void initialiseIdentifierFactory(org.datanucleus.NucleusContext nucleusContext)
nucleusContext
- contextpublic boolean supportsValueStrategy(String strategy)
supportsValueStrategy
in interface org.datanucleus.store.StoreManager
supportsValueStrategy
in class org.datanucleus.store.AbstractStoreManager
strategy
- The strategypublic MappedTypeManager getMappedTypeManager()
public IdentifierFactory getIdentifierFactory()
public DatastoreAdapter getDatastoreAdapter()
public MappingManager getMappingManager()
public String getDefaultObjectProviderClassName()
getDefaultObjectProviderClassName
in interface org.datanucleus.store.StoreManager
getDefaultObjectProviderClassName
in class org.datanucleus.store.AbstractStoreManager
public org.datanucleus.store.StoreData[] getStoreDataForDatastoreContainerObject(DatastoreIdentifier tableIdentifier)
tableIdentifier
- Identifier for the tablepublic Table getTable(org.datanucleus.metadata.AbstractMemberMetaData mmd)
mmd
- The metadata for the field.public DatastoreClass getDatastoreClass(String className, org.datanucleus.ClassLoaderResolver clr)
AbstractStoreManager.addClass(java.lang.String, org.datanucleus.ClassLoaderResolver)
is called
to add it. Classes which have inheritance strategy of "new-table" and
"superclass-table" will return a table here, whereas "subclass-table" will
return null since it doesn't have a table as such.
className
- Name of the class whose table is be returned.clr
- The ClassLoaderResolverNoTableManagedException
- If the given class has no table managed in the database.public DatastoreClass getDatastoreClass(DatastoreIdentifier name)
name
- The identifier name of the table.public org.datanucleus.metadata.AbstractClassMetaData[] getClassesManagingTableForClass(org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.ClassLoaderResolver clr)
cmd
- The supplied class.clr
- ClassLoader resolverpublic boolean isObjectInserted(org.datanucleus.state.ObjectProvider sm, int fieldNumber)
sm
- StateManager for the objectfieldNumber
- (Absolute) field number for the objectpublic boolean isObjectInserted(org.datanucleus.state.ObjectProvider sm, String className)
sm
- StateManager for the objectclassName
- Name of class that we want to check the insertion level for.public void setObjectIsInsertedToLevel(org.datanucleus.state.ObjectProvider sm, DatastoreClass table)
sm
- StateManager for the objecttable
- Table to which it is now insertedpublic org.datanucleus.store.scostore.Store getBackingStoreForField(org.datanucleus.ClassLoaderResolver clr, org.datanucleus.metadata.AbstractMemberMetaData mmd, Class type)
getBackingStoreForField
in interface org.datanucleus.store.BackedSCOStoreManager
clr
- The ClassLoaderResolvermmd
- metadata for the member to be persisted by this Storetype
- instantiated type or prefered typepublic String getDefaultIdentifierCase()
public org.datanucleus.util.MultiMap getSchemaCallbacks()
public void addSchemaCallback(String className, org.datanucleus.metadata.AbstractMemberMetaData mmd)
public boolean isJdbcStore()
isJdbcStore
in interface org.datanucleus.store.StoreManager
isJdbcStore
in class org.datanucleus.store.AbstractStoreManager
protected void logConfiguration()
logConfiguration
in class org.datanucleus.store.AbstractStoreManager
public void close()
close
in interface org.datanucleus.store.StoreManager
close
in class org.datanucleus.store.AbstractStoreManager
public org.datanucleus.store.NucleusSequence getNucleusSequence(org.datanucleus.ExecutionContext ec, org.datanucleus.metadata.SequenceMetaData seqmd)
getNucleusSequence
in interface org.datanucleus.store.StoreManager
getNucleusSequence
in class org.datanucleus.store.AbstractStoreManager
ec
- execution contextseqmd
- SequenceMetaDatapublic org.datanucleus.store.NucleusConnection getNucleusConnection(org.datanucleus.ExecutionContext ec)
getNucleusConnection
in interface org.datanucleus.store.StoreManager
getNucleusConnection
in class org.datanucleus.store.AbstractStoreManager
ec
- execution contextpublic SQLController getSQLController()
public SQLExpressionFactory getSQLExpressionFactory()
public String getCatalogName()
public String getSchemaName()
public Date getDatastoreDate()
getDatastoreDate
in interface org.datanucleus.store.StoreManager
getDatastoreDate
in class org.datanucleus.store.AbstractStoreManager
public void addClasses(String[] classNames, org.datanucleus.ClassLoaderResolver clr)
addClasses
in interface org.datanucleus.store.StoreManager
addClasses
in class org.datanucleus.store.AbstractStoreManager
classNames
- Name of the class(es) to be added.clr
- The ClassLoaderResolverpublic void removeAllClasses(org.datanucleus.ClassLoaderResolver clr)
removeAllClasses
in interface org.datanucleus.store.StoreManager
removeAllClasses
in class org.datanucleus.store.AbstractStoreManager
clr
- The ClassLoaderResolverpublic Writer getDdlWriter()
public boolean getCompleteDDL()
public boolean hasWrittenDdlStatement(String stmt)
stmt
- The statementpublic void addWrittenDdlStatement(String stmt)
stmt
- The statementpublic void validateTable(TableImpl table, org.datanucleus.ClassLoaderResolver clr)
clr
- The ClassLoaderResolverpublic String getClassNameForObjectID(Object id, org.datanucleus.ClassLoaderResolver clr, org.datanucleus.ExecutionContext ec)
getClassNameForObjectID
in interface org.datanucleus.store.StoreManager
getClassNameForObjectID
in class org.datanucleus.store.AbstractStoreManager
id
- The identity of some object.clr
- ClassLoader resolverec
- execution context (optional - to allow check inheritance level in datastore)public org.datanucleus.store.fieldmanager.FieldManager getFieldManagerForResultProcessing(org.datanucleus.state.ObjectProvider op, ResultSet rs, StatementClassMapping resultMappings)
public org.datanucleus.store.fieldmanager.FieldManager getFieldManagerForResultProcessing(org.datanucleus.ExecutionContext ec, ResultSet rs, StatementClassMapping resultMappings, org.datanucleus.metadata.AbstractClassMetaData cmd)
public org.datanucleus.store.fieldmanager.FieldManager getFieldManagerForStatementGeneration(org.datanucleus.state.ObjectProvider sm, PreparedStatement ps, StatementClassMapping stmtMappings)
sm
- The ObjectProvider for the object.ps
- The Prepared Statement to set values on.stmtMappings
- the index of parameters/mappingspublic Object getResultValueAtPosition(ResultSet rs, JavaTypeMapping mapping, int position)
rs
- The resultsmapping
- The mappingposition
- The position in the resultsorg.datanucleus.exceptions.NucleusDataStoreException
- if an error occurs accessing the resultsprotected Object getStrategyValueForGenerator(org.datanucleus.store.valuegenerator.ValueGenerator generator, org.datanucleus.ExecutionContext ec)
getStrategyValueForGenerator
in class org.datanucleus.store.AbstractStoreManager
generator
- The generatorec
- execution contextprotected Properties getPropertiesForGenerator(org.datanucleus.metadata.AbstractClassMetaData cmd, int absoluteFieldNumber, org.datanucleus.ExecutionContext ec, org.datanucleus.metadata.SequenceMetaData seqmd, org.datanucleus.metadata.TableGeneratorMetaData tablegenmd)
getPropertiesForGenerator
in class org.datanucleus.store.AbstractStoreManager
cmd
- MetaData for the classabsoluteFieldNumber
- Number of the field (-1 = datastore identity)ec
- execution contextseqmd
- Any sequence metadatatablegenmd
- Any table generator metadataprotected String getStrategyForNative(org.datanucleus.metadata.AbstractClassMetaData cmd, int absFieldNumber)
getStrategyForNative
in class org.datanucleus.store.AbstractStoreManager
public SQLTypeInfo getSQLTypeInfoForJDBCType(int jdbcType) throws UnsupportedDataTypeException
jdbcType
- JDBC typeUnsupportedDataTypeException
- If the JDBC type is not foundpublic SQLTypeInfo getSQLTypeInfoForJDBCType(int jdbcType, String sqlType) throws UnsupportedDataTypeException
jdbcType
- JDBC typesqlType
- The SQL type name (if known, otherwise uses the default for this JDBC type).UnsupportedDataTypeException
- If the JDBC type is not foundpublic RDBMSColumnInfo getColumnInfoForColumnName(Table table, Connection conn, DatastoreIdentifier column) throws SQLException
Where possible, this method loads and caches column info for more than just the table being requested, improving performance by reducing the overall number of calls made to DatabaseMetaData.getColumns() (each of which usually results in one or more database queries).
table
- The table/viewconn
- JDBC connection to the database.column
- the columnSQLException
public List getColumnInfoForTable(Table table, Connection conn) throws SQLException
Where possible, this method loads and caches column info for more than just the table being requested, improving performance by reducing the overall number of calls made to DatabaseMetaData.getColumns() (each of which usually results in one or more database queries).
table
- The table/viewconn
- JDBC connection to the database.SQLException
public void invalidateColumnInfoForTable(Table table)
table
- The tablepublic Collection getManagedTables(String catalog, String schema)
catalog
- Name of the catalog to restrict the collection byschema
- Name of the schema to restrict the collection by