|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DBSchemaCapability
Schema's capability specially for relational DB connections. Note that there potentially confusing temininology for the term "schema" as it is used for two purposes:
| Field Summary | |
|---|---|
static String |
PROP_EXTRA_SCHEMAS
|
static String |
PROP_SUPPLEMENTAL_TABLES
Name for the 'supplemental tables' property |
static String |
PROP_TABLES
Name for the 'allTableNames' property TODO property change event is not never fired for this property. |
static String |
PROP_VIEWS
TODO unused property |
static String |
XATTR_SCHEMA_LOGGING
|
| Method Summary | |
|---|---|
boolean |
claimTableOwnership(SchemaQualifiedName tableName)
Determines if the table is an implementation artifact of the Schema. |
Set<DBTableInfo> |
getAllManagedTableInfos()
Get all managed tables from all schemas |
String[] |
getAllSchemas()
|
DBTableInfo[] |
getAllTableInfos()
|
String[] |
getAllTableNames()
Deprecated. |
String[] |
getAllTableNames(String dbSchemaName)
Get the names of the actual physical tables know to this IJC schema. |
DBTableInfo[] |
getAllViewInfos()
|
String[] |
getAllViewNames()
Deprecated. Use the form that takes the dbSchema as an argument. |
String[] |
getAllViewNames(String dbSchemaName)
Get the names of the views know to this schema. |
SchemaQualifiedName[] |
getConstraintNames()
Retrieves names of constraints defined within the database. |
DBType |
getDatabaseType()
Get the database type e.g. |
String |
getDefaultDBSchemaName()
The default schema used by this database. |
String[] |
getExtraSchemas()
|
Set<String> |
getManagedTables()
Deprecated. Use the form that takes the dbSchema as an argument. |
Set<String> |
getManagedTables(String dbSchemaName)
Returns the set of 'managed' tables, those the schema knows about. |
int |
getMaxColumnNameLength()
Retrieves the maximum number of characters this database allows for a column name. |
int |
getMaxIndexNameLength()
Retrieves the maximum number of characters this database allows for a index name. |
int |
getMaxTableNameLength()
Retrieves the maximum number of characters this database allows in a table name. |
SchemaInfo.PerformanceMode |
getPerformanceMode()
|
SchemaInfo.PerformanceMode |
getPreviousPerformanceMode()
|
Set<String> |
getSystemTables()
Returns the set of system tables created for internal purposes of IJC |
DBTableInfo |
getTableInfo(SchemaQualifiedName schemaPlusTable)
Get information about the specified table. |
DBTableInfo |
getTableInfo(String schemaPlusTable)
Deprecated. |
DBTableInfo |
getTableInfo(String dbSchemaName,
String tableName)
Get information about the specified table, possibly retrieving it from a cache. |
Set<DBDatabaseInfo.DatabaseOperation> |
getUnsupportedDatabaseOperations()
Get the set of unsupported operations in this database |
boolean |
isSupportingDBSchemas()
Whether DB used by this schema supports DB schemas |
void |
removeTable(String dbSchemaName,
String tableName,
DFEnvironmentRW env)
|
void |
setExtraSchemas(List<String> dbSchemas,
DFEnvironmentRW env)
|
void |
setPerformanceMode(SchemaInfo.PerformanceMode performanceMode,
DFEnvironmentRW env)
|
| Field Detail |
|---|
static final String PROP_TABLES
static final String PROP_SUPPLEMENTAL_TABLES
static final String PROP_VIEWS
static final String PROP_EXTRA_SCHEMAS
static final String XATTR_SCHEMA_LOGGING
| Method Detail |
|---|
Set<DBDatabaseInfo.DatabaseOperation> getUnsupportedDatabaseOperations()
int getMaxTableNameLength()
int getMaxColumnNameLength()
int getMaxIndexNameLength()
@Deprecated String[] getAllTableNames()
NOTE: This is a snapshot of the table names and is not updated if tables are added or dropped. Do not hold a long term reference to this.
String[] getAllTableNames(String dbSchemaName)
NOTE: This is a snapshot of the table names and is not updated if tables are added or dropped. Do not hold a long term reference to this.
dbSchemaName - The name of the database schema (not to be confused with the
name of this IJC schema). Will be null for databases that do not support schemas.
Set<String> getManagedTables()
This depends on actual implementation.
Set<String> getManagedTables(String dbSchemaName)
This depends on actual implementation.
dbSchemaName - The name of the database schema (not to be confused with the
name of this IJC schema). Will be null for databases that do not support schemas.
Set<DBTableInfo> getAllManagedTableInfos()
Set<String> getSystemTables()
@Deprecated DBTableInfo getTableInfo(String schemaPlusTable)
NOTE: This is a snapshot of the table and will not be updated if the table changes in any way. Do not hold a long term reference to this.
schemaPlusTable - The schema qualified name of the table, view etc.
DBTableInfo object describing the table.DBTableInfo getTableInfo(SchemaQualifiedName schemaPlusTable)
NOTE: This is a snapshot of the table and will not be updated if the table changes in any way. Do not hold a long term reference to this.
schemaPlusTable - The schema qualified name of the table, view etc.
DBTableInfo object describing the table.
DBTableInfo getTableInfo(String dbSchemaName,
String tableName)
NOTE: This is a snapshot of the table and will not be updated if the table changes in any way. Do not hold a long term reference to this.
tableName - The name of the table, view etc.dbSchemaName - The name of the database schema (not to be confused with the
name of this IJC schema). Will be null for databases that do not support schemas.
DBTableInfo object describing the table.String[] getAllViewNames()
NOTE: This is a snapshot of the view names and is not updated if views are added or dropped. Do not hold a long term reference to this.
String[] getAllViewNames(String dbSchemaName)
NOTE: This is a snapshot of the view names and is not updated if views are added or dropped. Do not hold a long term reference to this.
dbSchemaName - The name of the database schema (not to be confused with the
name of this IJC schema). Will be null for databases that do not support schemas.
boolean claimTableOwnership(SchemaQualifiedName tableName)
tableName -
DBType getDatabaseType()
DBDatabaseInfo
SchemaQualifiedName[] getConstraintNames()
String getDefaultDBSchemaName()
String[] getExtraSchemas()
String[] getAllSchemas()
DBTableInfo[] getAllTableInfos()
DBTableInfo[] getAllViewInfos()
void setExtraSchemas(List<String> dbSchemas,
DFEnvironmentRW env)
boolean isSupportingDBSchemas()
SchemaInfo.PerformanceMode getPerformanceMode()
SchemaInfo.PerformanceMode getPreviousPerformanceMode()
void setPerformanceMode(SchemaInfo.PerformanceMode performanceMode,
DFEnvironmentRW env)
void removeTable(String dbSchemaName,
String tableName,
DFEnvironmentRW env)
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||