Package com.im.df.impl.db
Class DBSchemaJChemImpl
- java.lang.Object
-
- com.chemaxon.dif.db.api.item.DBItemAbstractImpl
-
- com.chemaxon.dif.db.api.schema.DBSchemaImpl
-
- com.im.df.impl.db.DBSchemaJChemImpl
-
- All Implemented Interfaces:
com.chemaxon.dif.db.spi.ddl.DFSchemaAccess,com.im.df.api.capabilities.DBSchemaCapability,com.im.df.api.capabilities.JChemSchemaCapability,com.im.df.api.capabilities.SchemaRefreshCapability,com.im.df.api.ddl.DFCapability,com.im.df.api.ddl.DFItem,com.im.df.api.ddl.DFSchema,com.im.df.api.ddl.DFScriptParent,com.im.df.api.ddl.tmp.InvocationDescriptions,com.im.df.api.ddl.tmp.ModelChanges,com.im.df.api.support.PropertiesEditingConfigurable
public final class DBSchemaJChemImpl extends com.chemaxon.dif.db.api.schema.DBSchemaImpl implements com.im.df.api.capabilities.JChemSchemaCapability- Author:
- Tim Dudgeon
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.chemaxon.dif.db.api.item.DBItemAbstractImpl
com.chemaxon.dif.db.api.item.DBItemAbstractImpl.AbstractUpdater
-
Nested classes/interfaces inherited from interface com.im.df.api.capabilities.DBSchemaCapability
com.im.df.api.capabilities.DBSchemaCapability.NullPositionAfterOrdering
-
-
Field Summary
-
Fields inherited from class com.chemaxon.dif.db.api.schema.DBSchemaImpl
dbItemsCache, XATTR_SCHEMA_INIT_MODE, XATTR_SCHEMA_NULL_ORDERING, XATTR_SCHEMA_PREV_INIT_MODE
-
Fields inherited from interface com.im.df.api.capabilities.DBSchemaCapability
PROP_EXTRA_SCHEMAS, PROP_SUPPLEMENTAL_TABLES, PROP_TABLES, PROP_VIEWS, XATTR_CONNECTION_ACTIVATION_SCRIPT, XATTR_CONNECTION_DEACTIVATION_SCRIPT, XATTR_PREFIX_SCHEMA_QUERY_STRUCTURE_STANDARDIZER, XATTR_QUERY_TIMEOUT, XATTR_SCHEMA_INIT_SCRIPT, XATTR_SCHEMA_LOGGING, XATTR_STRUCTURE_SEARCH_TYPE
-
Fields inherited from interface com.im.df.api.ddl.DFItem
PROP_CAPABILITIES, PROP_DESCRIPTION, PROP_ID, PROP_NAME, PROP_TYPE, PROP_VALID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclaimTableOwnership(com.im.commons.db.util.SchemaQualifiedName tableName)static DBSchemaJChemImplcreateInstance(com.im.ijcs.api.ddl.dto.ModelInfo model, com.im.ijcs.api.ddl.DDLService ddlService)voidcreateJChemPropertyTable(String dbSchemaName, String propertyTableName, Map<String,String> props, com.im.commons.progress.DFEnvironmentRW env)Create a new properties table and add it to the list the schema knows about.voidcreateJChemPropertyTable(String propertyTableName, Map<String,String> props, com.im.commons.progress.DFEnvironmentRW env)Set<String>getAssociatedTables(com.im.commons.db.util.SchemaQualifiedName schemaPlusProptable)Set<String>getJChemPropertyTables()Set<String>getJChemPropertyTables(String dbSchemaName)com.im.ijcs.api.ddl.JChemTableManagergetJChemTableManager()Set<String>getManagedTables(String dbSchemaName)booleanisCapabilityProviderAllowed()booleanisJChemBaseTable(String tableName)booleanisJChemBaseTable(String dbSchemaName, String tableName)booleanisJChemCartJChemBaseTable(String tableName)booleanisJChemCartJChemBaseTable(String dbSchemaName, String tableName)booleanisJChemCartStandardTable(String tableName)booleanisJChemCartStandardTable(String dbSchemaName, String tableName)booleanisJChemPropertyTable(String tableName)booleanisJChemPropertyTable(String dbSchemaName, String tableName)booleanisStandardTable(String dbSchemaName, String tableName)voidremoveJChemPropertyTable(String propertyTableName, com.im.commons.progress.DFEnvironmentRW env)voidremoveJChemPropertyTable(String dbSchemaName, String propertyTableName, com.im.commons.progress.DFEnvironmentRW env)Removes this properties table to those we know about.-
Methods inherited from class com.chemaxon.dif.db.api.schema.DBSchemaImpl
activate, activateItem, addCommaSeparatedPropsForToString, addInvocationDescriptionListener, addOperationChangeListener, applyAsyncOperation, applyAsyncOperations, applyChanges, applyOperation, applyOperations, close, createUpdater, createValueGenerator, findItemById, getAllManagedTableInfos, getAllSchemas, getAllTableInfos, getAllTableNames, getAllTableNames, getAllViewInfos, getAllViewNames, getAllViewNames, getConstraintNames, getDatabasePlatform, getDatabaseType, getDataProvider, getDataTreeAccess, getDataTrees, getDBInfo, getDBItemsCache, getDBSchemaManager, getDDLService, getDefaultDBSchemaName, getEntities, getEntityAccess, getExtraSchemas, getFieldAccess, getGlobalLockable, getGlobalUserLockable, getGlobalUserLockable, getHandle, getListAccess, getLockable, getManagedTables, getMaxColumnNameLength, getMaxIndexNameLength, getMaxTableNameLength, getNameValidator, getNullPositionAfterOrdering, getPerformanceMode, getPreviousPerformanceMode, getRelationshipAccess, getRelationships, getSchema, getSchemaBeanFactory, getSchemaProvider, getScriptAccess, getScripts, getStandardValueGeneratorFactories, getSystemTables, getTableInfo, getTableInfo, getTableInfo, getTableManager, getTableSetInfo, getType, getUnsupportedDatabaseOperations, getUserLockable, getUserLockable, getUsername, getValueGeneratorFactory, getViewAccess, getVisibilityRestrictions, getVisibilityRestrictionsAccess, getXmlBean, init, invalidate, invalidateSubitems, isSupportingDBSchemas, notifySupplementalTablesChanged, removeInvocationDescriptionListener, removeOperationChangeListener, removeTable, schemaChanged, setExtraSchemas, setNullPositionAfterOrdering, setPerformanceMode, setSchemaBeanFactory, setSchemaProvider, setupDdlRole, setupDmlRole
-
Methods inherited from class com.chemaxon.dif.db.api.item.DBItemAbstractImpl
addCapabilitiesFromCapabilityProviders, addCapability, addPropertyChangeListener, doGetHandle, ensureValid, equals, findOwner, firePropertyChange, firePropertyChange, getCapabilities, getDescription, getId, getName, getSchemaImpl, getXAttributesImpl, handleChanges, handleOwner, handleUpdateDescription, handleUpdateName, handleXAttrs, hashCode, initXAttributes, isActive, isDifferent, isPropertyEditable, isValid, removeCapability, removePropertyChangeListener, replaceCapability, setDescription, setName, setPropertyEditable, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.im.df.api.capabilities.DBSchemaCapability
getAllManagedTableInfos, getAllSchemas, getAllTableInfos, getAllTableNames, getAllTableNames, getAllViewInfos, getAllViewNames, getAllViewNames, getConstraintNames, getDatabaseType, getDefaultDBSchemaName, getExtraSchemas, getManagedTables, getMaxColumnNameLength, getMaxIndexNameLength, getMaxTableNameLength, getNullPositionAfterOrdering, getPerformanceMode, getPreviousPerformanceMode, getSystemTables, getTableInfo, getTableInfo, getTableInfo, getUnsupportedDatabaseOperations, isSupportingDBSchemas, removeTable, setExtraSchemas, setNullPositionAfterOrdering, setPerformanceMode
-
-
-
-
Method Detail
-
createInstance
public static DBSchemaJChemImpl createInstance(com.im.ijcs.api.ddl.dto.ModelInfo model, com.im.ijcs.api.ddl.DDLService ddlService)
-
getJChemTableManager
public com.im.ijcs.api.ddl.JChemTableManager getJChemTableManager()
-
isCapabilityProviderAllowed
public boolean isCapabilityProviderAllowed()
- Overrides:
isCapabilityProviderAllowedin classcom.chemaxon.dif.db.api.schema.DBSchemaImpl
-
claimTableOwnership
public boolean claimTableOwnership(com.im.commons.db.util.SchemaQualifiedName tableName)
- Specified by:
claimTableOwnershipin interfacecom.im.df.api.capabilities.DBSchemaCapability- Overrides:
claimTableOwnershipin classcom.chemaxon.dif.db.api.schema.DBSchemaImpl
-
getJChemPropertyTables
public Set<String> getJChemPropertyTables()
- Specified by:
getJChemPropertyTablesin interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
getJChemPropertyTables
public Set<String> getJChemPropertyTables(String dbSchemaName)
- Specified by:
getJChemPropertyTablesin interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
getAssociatedTables
public Set<String> getAssociatedTables(com.im.commons.db.util.SchemaQualifiedName schemaPlusProptable)
- Specified by:
getAssociatedTablesin interfacecom.im.df.api.capabilities.JChemSchemaCapability- Parameters:
schemaPlusProptable- The schema qualified property table name- Returns:
- All the JChem tables that are associated with this property table
-
createJChemPropertyTable
public void createJChemPropertyTable(String propertyTableName, Map<String,String> props, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
createJChemPropertyTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
createJChemPropertyTable
public void createJChemPropertyTable(String dbSchemaName, String propertyTableName, Map<String,String> props, com.im.commons.progress.DFEnvironmentRW env)
Create a new properties table and add it to the list the schema knows about.- Specified by:
createJChemPropertyTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability- Parameters:
propertyTableName- The name for the table
-
removeJChemPropertyTable
public void removeJChemPropertyTable(String propertyTableName, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
removeJChemPropertyTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
removeJChemPropertyTable
public void removeJChemPropertyTable(String dbSchemaName, String propertyTableName, com.im.commons.progress.DFEnvironmentRW env)
Removes this properties table to those we know about. Only deletes the table from the DB if the drop param is set to true- Specified by:
removeJChemPropertyTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability- Parameters:
dbSchemaName- The database schemapropertyTableName- The name for the JChemProperties table
-
isStandardTable
public boolean isStandardTable(String dbSchemaName, String tableName)
- Overrides:
isStandardTablein classcom.chemaxon.dif.db.api.schema.DBSchemaImpl
-
isJChemPropertyTable
public boolean isJChemPropertyTable(String tableName)
- Specified by:
isJChemPropertyTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
isJChemPropertyTable
public boolean isJChemPropertyTable(String dbSchemaName, String tableName)
- Specified by:
isJChemPropertyTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
isJChemBaseTable
public boolean isJChemBaseTable(String tableName)
- Specified by:
isJChemBaseTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
isJChemBaseTable
public boolean isJChemBaseTable(String dbSchemaName, String tableName)
- Specified by:
isJChemBaseTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
isJChemCartJChemBaseTable
public boolean isJChemCartJChemBaseTable(String tableName)
- Specified by:
isJChemCartJChemBaseTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
isJChemCartJChemBaseTable
public boolean isJChemCartJChemBaseTable(String dbSchemaName, String tableName)
- Specified by:
isJChemCartJChemBaseTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
isJChemCartStandardTable
public boolean isJChemCartStandardTable(String tableName)
- Specified by:
isJChemCartStandardTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
isJChemCartStandardTable
public boolean isJChemCartStandardTable(String dbSchemaName, String tableName)
- Specified by:
isJChemCartStandardTablein interfacecom.im.df.api.capabilities.JChemSchemaCapability
-
-