Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.catalog
Class DataDictionaryImpl  view DataDictionaryImpl download DataDictionaryImpl.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.catalog.DataDictionaryImpl
All Implemented Interfaces:
org.apache.derby.iapi.services.cache.CacheableFactory, org.apache.derby.iapi.sql.dictionary.DataDictionary, org.apache.derby.iapi.services.monitor.ModuleControl, org.apache.derby.iapi.services.monitor.ModuleSupportable, java.security.PrivilegedAction

public class DataDictionaryImpl
extends java.lang.Object
implements org.apache.derby.iapi.sql.dictionary.DataDictionary, org.apache.derby.iapi.services.cache.CacheableFactory, org.apache.derby.iapi.services.monitor.ModuleControl, org.apache.derby.iapi.services.monitor.ModuleSupportable, java.security.PrivilegedAction

This abstract class contains the common code for the "regular" and limited data dictionaries. The limited configuration puts an upper limit on the number of tables a user is allowed to create. This class provides the entire implementation of DataDictionary, and ModuleControl, except for the stop() method, which is to be provided by a non-abstract super-class. The reason for putting the stop() method in the super-class is to prevent someone from inadvertently changing this to a non-abstract class. This class is shipped with both the limited and non-limited configurations, and we don't want anyone to be able to cheat by booting this class instead of booting the super-class.


Field Summary
protected  org.apache.derby.iapi.store.access.AccessFactory af
           
protected  boolean booting
           
private  org.apache.derby.iapi.store.access.TransactionController bootingTC
           
(package private)  boolean builtinSchemasAreFromLCC
           
(package private)  org.apache.derby.iapi.services.locks.ShExLockable cacheCoordinator
           
(package private)  int cacheMode
           
private  java.util.GregorianCalendar calendarForLastSystemSQLName
           
private static java.lang.String CFG_SYSCOLUMNS_ID
           
private static java.lang.String CFG_SYSCOLUMNS_INDEX1_ID
           
private static java.lang.String CFG_SYSCOLUMNS_INDEX2_ID
           
private static java.lang.String CFG_SYSCONGLOMERATES_ID
           
private static java.lang.String CFG_SYSCONGLOMERATES_INDEX1_ID
           
private static java.lang.String CFG_SYSCONGLOMERATES_INDEX2_ID
           
private static java.lang.String CFG_SYSCONGLOMERATES_INDEX3_ID
           
private static java.lang.String CFG_SYSSCHEMAS_ID
           
private static java.lang.String CFG_SYSSCHEMAS_INDEX1_ID
           
private static java.lang.String CFG_SYSSCHEMAS_INDEX2_ID
           
private static java.lang.String CFG_SYSTABLES_ID
           
private static java.lang.String CFG_SYSTABLES_INDEX1_ID
           
private static java.lang.String CFG_SYSTABLES_INDEX2_ID
           
protected  boolean convertIdToLower
           
private  org.apache.derby.iapi.sql.dictionary.TabInfo[] coreInfo
           
 org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator dataDescriptorGenerator
           
(package private)  int ddlUsers
           
protected  org.apache.derby.iapi.sql.dictionary.SchemaDescriptor declaredGlobalTemporaryTablesSchemaDesc
           
private  java.lang.String declaredGlobalTemporaryTablesSchemaName
           
private  DD_Version dictionaryVersion
          Dictionary version of the on-disk database
protected  org.apache.derby.iapi.sql.depend.DependencyManager dmgr
           
protected  org.apache.derby.iapi.types.DataValueFactory dvf
           
(package private)  int engineType
           
private  org.apache.derby.iapi.sql.execute.ExecutionFactory exFactory
           
 org.apache.derby.iapi.services.locks.LockFactory lockFactory
           
(package private)  org.apache.derby.iapi.services.cache.CacheManager nameTdCache
           
private  org.apache.derby.iapi.sql.dictionary.TabInfo[] noncoreInfo
           
private static java.lang.String[] nonCoreNames
           
private static int NUM_CORE
           
private static int NUM_NONCORE
           
(package private)  org.apache.derby.iapi.services.cache.CacheManager OIDTdCache
           
(package private)  int readersInDDLMode
           
 boolean readOnlyUpgrade
          True if the database is read only and requires some form of upgrade, that makes the stored prepared statements invalid.
private  DD_Version softwareVersion
          Dictionary version of the currently running engine
private  java.util.Hashtable spsIdHash
           
private  org.apache.derby.iapi.services.cache.CacheManager spsNameCache
           
private  java.lang.String spsSet
           
(package private)  java.util.Properties startupParameters
           
(package private)  int stmtCacheSize
           
private static int SYSCOLUMNS_CORE_NUM
           
private static int SYSCONGLOMERATES_CORE_NUM
           
protected  org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sysIBMSchemaDesc
           
private  java.lang.String sysIBMSchemaName
           
private static int SYSSCHEMAS_CORE_NUM
           
private static int SYSTABLES_CORE_NUM
           
protected  org.apache.derby.iapi.sql.dictionary.SchemaDescriptor systemDiagSchemaDesc
           
private  java.lang.String systemDiagSchemaName
           
protected  org.apache.derby.iapi.sql.dictionary.SchemaDescriptor systemSchemaDesc
           
private  java.lang.String systemSchemaName
           
private static java.lang.String[] systemSchemaNames
          List of all "system" schemas
private  int systemSQLNameNumber
           
protected  org.apache.derby.iapi.sql.dictionary.SchemaDescriptor systemUtilSchemaDesc
           
private  java.lang.String systemUtilSchemaName
           
(package private)  int tdCacheSize
           
private  long timeForLastSystemSQLName
           
protected  org.apache.derby.iapi.services.uuid.UUIDFactory uuidFactory
           
 
Fields inherited from interface org.apache.derby.iapi.sql.dictionary.DataDictionary
CHECK_CONSTRAINT, COMPILE_ONLY_MODE, CORE_DATA_DICTIONARY_VERSION, CREATE_DATA_DICTIONARY_VERSION, DATABASE_ID, DD_VERSION_CS_10_0, DD_VERSION_CS_5_0, DD_VERSION_CS_5_1, DD_VERSION_CS_5_2, DD_VERSION_CS_8_1, DD_VERSION_CURRENT, DD_VERSION_DERBY_10_1, DDL_MODE, DROP_CONSTRAINT, FOREIGNKEY_CONSTRAINT, MODULE, NOTNULL_CONSTRAINT, PRIMARYKEY_CONSTRAINT, PROPERTY_CONGLOMERATE_VERSION, SOFT_DATA_DICTIONARY_VERSION, SYSALIASES_CATALOG_NUM, SYSCHECKS_CATALOG_NUM, SYSCOLUMNS_CATALOG_NUM, SYSCONGLOMERATES_CATALOG_NUM, SYSCONSTRAINTS_CATALOG_NUM, SYSDEPENDS_CATALOG_NUM, SYSDUMMY1_CATALOG_NUM, SYSFILES_CATALOG_NUM, SYSFOREIGNKEYS_CATALOG_NUM, SYSKEYS_CATALOG_NUM, SYSSCHEMAS_CATALOG_NUM, SYSSTATEMENTS_CATALOG_NUM, SYSSTATISTICS_CATALOG_NUM, SYSTABLES_CATALOG_NUM, SYSTRIGGERS_CATALOG_NUM, SYSVIEWS_CATALOG_NUM, UNIQUE_CONSTRAINT
 
Constructor Summary
DataDictionaryImpl()
           
 
Method Summary
 boolean activeConstraint(org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor constraint)
          Reports whether an individual constraint must be enforced.
 void addConstraintDescriptor(org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor descriptor, org.apache.derby.iapi.store.access.TransactionController tc)
          Adds the given ConstraintDescriptor to the data dictionary, associated with the given table and constraint type.
 void addDescriptor(org.apache.derby.iapi.sql.dictionary.TupleDescriptor td, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parent, int catalogNumber, boolean duplicatesAllowed, org.apache.derby.iapi.store.access.TransactionController tc)
          Adds a descriptor to a system catalog identified by the catalogNumber.
 void addDescriptorArray(org.apache.derby.iapi.sql.dictionary.TupleDescriptor[] td, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parent, int catalogNumber, boolean allowDuplicates, org.apache.derby.iapi.store.access.TransactionController tc)
          array version of addDescriptor.
private  void addDescriptorNow(org.apache.derby.iapi.sql.dictionary.TupleDescriptor td, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parent, int catalogNumber, boolean duplicatesAllowed, org.apache.derby.iapi.store.access.TransactionController tc, boolean wait)
           
 void addSPSDescriptor(org.apache.derby.iapi.sql.dictionary.SPSDescriptor descriptor, org.apache.derby.iapi.store.access.TransactionController tc, boolean wait)
          Adds the given SPSDescriptor to the data dictionary, associated with the given table and constraint type.
private  void addSPSParams(org.apache.derby.iapi.sql.dictionary.SPSDescriptor spsd, org.apache.derby.iapi.store.access.TransactionController tc, boolean wait)
          Add a column in SYS.SYSCOLUMNS for each parameter in the parameter list.
private  void addSubKeyConstraint(org.apache.derby.iapi.sql.dictionary.KeyConstraintDescriptor descriptor, org.apache.derby.iapi.store.access.TransactionController tc)
          Add the matching row to syskeys when adding a unique or primary key constraint
(package private)  void addSYSCOLUMNSIndex2Property(org.apache.derby.iapi.store.access.TransactionController tc, long index2ConglomerateNumber)
           
private  org.apache.derby.iapi.sql.dictionary.SchemaDescriptor addSystemSchema(java.lang.String schema_name, java.lang.String schema_uuid, org.apache.derby.iapi.store.access.TransactionController tc)
          Add a system schema to the database.
private  void addSystemTableToDictionary(org.apache.derby.iapi.sql.dictionary.TabInfo ti, org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator ddg)
          Add the required entries to the data dictionary for a System table.
 void addTableDescriptorToOtherCache(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.services.cache.Cacheable c)
          Add a table descriptor to the "other" cache.
 void boot(boolean create, java.util.Properties startParams)
          Start-up method for this instance of the data dictionary.
private  org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor bootstrapOneIndex(org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator ddg, org.apache.derby.iapi.sql.dictionary.TabInfo ti, int indexNumber, long heapConglomerateNumber)
           
private  void bootStrapSystemIndexes(org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator ddg, org.apache.derby.iapi.sql.dictionary.TabInfo ti)
          Infrastructure work for indexes on catalogs.
 boolean canSupport(java.util.Properties startParams)
          Currently, all this routine does is check to see if the Replication property has been turned on for this database.
 boolean checkVersion(int requiredMajorVersion, java.lang.String feature)
          Check to see if a database has been upgraded to the required level in order to use a language feature.
 void clearCaches()
          Clear all of the DataDictionary caches.
private  void clearNoncoreTable(int nonCoreNum)
           
(package private)  void clearSPSPlans()
          Mark all SPS plans in the data dictionary invalid.
 org.apache.derby.iapi.types.RowLocation[] computeAutoincRowLocations(org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.dictionary.TableDescriptor td)
          returns an array of RowLocations corresponding to the autoincrement columns in the table.
private  org.apache.derby.iapi.types.RowLocation computeRowLocation(org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.dictionary.TableDescriptor td, java.lang.String columnName)
          Computes the RowLocation in SYSCOLUMNS for a particular autoincrement column.
(package private)  void create_10_1_system_procedures(org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.catalog.UUID sysUtilUUID)
          Create system procedures added in version 10.1.
private  void create_SYSCS_procedures(org.apache.derby.iapi.store.access.TransactionController tc)
          Create system procedures
protected  void create_SYSIBM_procedures(org.apache.derby.iapi.store.access.TransactionController tc)
          Create system procedures in SYSIBM
private  long createConglomerate(java.lang.String name, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.execute.ExecRow rowTemplate, java.util.Properties properties)
          Create a conglomerate for a system table
protected  void createDictionaryTables(java.util.Properties params, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator ddg)
          Create all the required dictionary tables.
private  void createSPSSet(org.apache.derby.iapi.store.access.TransactionController tc, boolean net, org.apache.derby.catalog.UUID schemaID)
          Create a set of stored prepared statements from a properties file.
private  void createSystemProcedureOrFunction(java.lang.String routine_name, org.apache.derby.catalog.UUID schema_uuid, java.lang.String[] arg_names, org.apache.derby.catalog.TypeDescriptor[] arg_types, int num_out_param, int num_result_sets, short routine_sql_control, org.apache.derby.catalog.TypeDescriptor return_type, org.apache.derby.iapi.store.access.TransactionController tc)
          Generic create procedure routine.
(package private)  void createSystemSps(org.apache.derby.iapi.store.access.TransactionController tc)
          Create system built-in metadata stored prepared statements.
private  void debugGenerateInfo(java.lang.StringBuffer strbuf, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.store.access.ConglomerateController heapCC, org.apache.derby.iapi.sql.dictionary.TabInfo ti, int indexId)
           
 void doneReading(int mode, org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
          Inform this DataDictionary that we have finished reading it.
 void dropAliasDescriptor(org.apache.derby.iapi.sql.dictionary.AliasDescriptor ad, org.apache.derby.iapi.store.access.TransactionController tc)
          Drop a AliasDescriptor from the DataDictionary
 void dropAllColumnDescriptors(org.apache.derby.catalog.UUID tableID, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops all column descriptors from the given table.
 void dropAllConglomerateDescriptors(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops all conglomerates associated with a table.
 void dropAllConstraintDescriptors(org.apache.derby.iapi.sql.dictionary.TableDescriptor table, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops all ConstraintDescriptors from the data dictionary that are associated with the given table,
 void dropColumnDescriptor(org.apache.derby.catalog.UUID tableID, java.lang.String columnName, org.apache.derby.iapi.store.access.TransactionController tc)
          Given a column name and a table ID, drops the column descriptor from the table.
private  void dropColumnDescriptorCore(org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.sql.execute.ExecIndexRow keyRow)
          Delete the appropriate rows from syscolumns when dropping 1 or more columns.
 void dropConglomerateDescriptor(org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor conglomerate, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops a conglomerate descriptor
 void dropConstraintDescriptor(org.apache.derby.iapi.sql.dictionary.TableDescriptor table, org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor descriptor, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops the given ConstraintDescriptor that is associated with the given table and constraint type from the data dictionary.
 void dropDependentsStoredDependencies(org.apache.derby.catalog.UUID dependentsUUID, org.apache.derby.iapi.store.access.TransactionController tc)
          Remove all of the stored dependencies for a given dependent's ID from the data dictionary.
 void dropFileInfoDescriptor(org.apache.derby.iapi.sql.dictionary.FileInfoDescriptor fid)
          Drop a FileDescriptor from the datadictionary.
 void dropSchemaDescriptor(java.lang.String schemaName, org.apache.derby.iapi.store.access.TransactionController tc)
          Drop the descriptor for a schema, given the schema's name
 void dropSPSDescriptor(org.apache.derby.iapi.sql.dictionary.SPSDescriptor descriptor, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops the given SPSDescriptor.
 void dropSPSDescriptor(org.apache.derby.catalog.UUID uuid, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops the given SPSDescriptor.
 void dropStatisticsDescriptors(org.apache.derby.catalog.UUID tableUUID, org.apache.derby.catalog.UUID referenceUUID, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops all statistics descriptors for a given table/index column combination.
 void dropStoredDependency(org.apache.derby.iapi.sql.dictionary.DependencyDescriptor dd, org.apache.derby.iapi.store.access.TransactionController tc)
          Drop a single dependency from the data dictionary.
private  void dropSubCheckConstraint(org.apache.derby.catalog.UUID constraintId, org.apache.derby.iapi.store.access.TransactionController tc)
          Drop the matching row from syschecks when dropping a check constraint.
private  void dropSubKeyConstraint(org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor constraint, org.apache.derby.iapi.store.access.TransactionController tc)
          Drop the matching row from syskeys when dropping a primary key or unique constraint.
 void dropTableDescriptor(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.sql.dictionary.SchemaDescriptor schema, org.apache.derby.iapi.store.access.TransactionController tc)
          Drop the table descriptor.
 void dropTriggerDescriptor(org.apache.derby.iapi.sql.dictionary.TriggerDescriptor descriptor, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops the given TriggerDescriptor.
 void dropViewDescriptor(org.apache.derby.iapi.sql.dictionary.ViewDescriptor vd, org.apache.derby.iapi.store.access.TransactionController tc)
          Drops the view descriptor from the data dictionary.
private  org.apache.derby.iapi.error.StandardException duplicateDescriptorException(org.apache.derby.iapi.sql.dictionary.TupleDescriptor tuple, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parent)
           
 void faultInTabInfo(org.apache.derby.iapi.sql.dictionary.TabInfo ti)
          Finishes building a TabInfo if it hasn't already been faulted in.
private  org.apache.derby.iapi.sql.dictionary.TableDescriptor finishTableDescriptor(org.apache.derby.iapi.sql.dictionary.TableDescriptor td)
          Finish filling in the TableDescriptor.
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList getActiveConstraintDescriptors(org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList cdl)
          Convert a constraint descriptor list into a list of active constraints, that is, constraints which must be enforced.
 org.apache.derby.iapi.sql.dictionary.AliasDescriptor getAliasDescriptor(java.lang.String schemaId, java.lang.String aliasName, char nameSpace)
          Get a AliasDescriptor by alias name and name space.
 org.apache.derby.iapi.sql.dictionary.AliasDescriptor getAliasDescriptor(org.apache.derby.catalog.UUID uuid)
          Get a AliasDescriptor given its UUID.
private  org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList getAllConstraintDescriptors()
          Get every constraint in this database.
 java.util.List getAllDependencyDescriptorsList()
          Build and return an List with DependencyDescriptors for all of the stored dependencies.
 java.util.List getAllSPSDescriptors()
          Get every statement in this database.
private  org.apache.derby.iapi.sql.dictionary.GenericDescriptorList getAllTriggerDescriptors()
          Get every trigger in this database.
private  long getBootParameter(java.util.Properties startParams, java.lang.String key, boolean required)
           
private  void getBuiltinSchemaNames()
           
private  void getBuiltinSchemas()
           
 int getCacheMode()
          Returns the cache mode of the data dictionary.
 org.apache.derby.iapi.sql.dictionary.ColumnDescriptor getColumnDescriptorByDefaultId(org.apache.derby.catalog.UUID uuid)
          Get a ColumnDescriptor given its Default ID.
private  void getColumnDescriptorsScan(org.apache.derby.iapi.sql.dictionary.TableDescriptor td)
          Populate the ColumnDescriptorList for the specified TableDescriptor.
private  void getColumnDescriptorsScan(org.apache.derby.catalog.UUID uuid, org.apache.derby.iapi.sql.dictionary.ColumnDescriptorList cdl, org.apache.derby.iapi.sql.dictionary.TupleDescriptor td)
          Populate the ColumnDescriptorList for the specified TableDescriptor.
 org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor getConglomerateDescriptor(long conglomerateNumber)
          Get a ConglomerateDescriptor given its conglomerate number.
 org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor getConglomerateDescriptor(java.lang.String indexName, org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd, boolean forUpdate)
          Gets a conglomerate descriptor for the named index in the given schema, getting an exclusive row lock on the matching row in sys.sysconglomerates (for DDL concurrency) if requested.
 org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor getConglomerateDescriptor(org.apache.derby.catalog.UUID uuid)
          Get a ConglomerateDescriptor given its UUID.
 org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor[] getConglomerateDescriptors(long conglomerateNumber)
          Get an array of conglomerate descriptors for the given conglomerate number.
 org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor[] getConglomerateDescriptors(org.apache.derby.catalog.UUID uuid)
          Get an array of ConglomerateDescriptors given the UUID.
private  void getConglomerateDescriptorsScan(org.apache.derby.iapi.sql.dictionary.TableDescriptor td)
          Populate the ConglomerateDescriptorList for the specified TableDescriptor by scanning sysconglomerates.
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor getConstraintDescriptor(java.lang.String constraintName, org.apache.derby.catalog.UUID schemaID)
          Get a ConstraintDescriptor given its name and schema ID.
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor getConstraintDescriptor(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.catalog.UUID uuid)
          Get the constraint descriptor given a table and the UUID String of the backing index.
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor getConstraintDescriptor(org.apache.derby.catalog.UUID uuid)
          Get a ConstraintDescriptor given its UUID.
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor getConstraintDescriptorById(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.catalog.UUID uuid)
          Get the constraint descriptor given a table and the UUID String of the constraint
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor getConstraintDescriptorByName(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd, java.lang.String constraintName, boolean forUpdate)
          Get the constraint descriptor given a TableDescriptor and the constraint name.
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList getConstraintDescriptors(org.apache.derby.iapi.sql.dictionary.TableDescriptor td)
          Load up the constraint descriptor list for this table descriptor and return it.
private  void getConstraintDescriptorsScan(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, boolean forUpdate)
          Populate the ConstraintDescriptorList for the specified TableDescriptor.
protected  org.apache.derby.iapi.sql.dictionary.TupleDescriptor getConstraintDescriptorViaHeap(org.apache.derby.iapi.sql.execute.ScanQualifier[][] scanQualifiers, org.apache.derby.iapi.sql.dictionary.TabInfo ti, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parentTupleDescriptor, java.util.List list)
          Return a (single or list of) catalog row descriptor(s) from SYSCONSTRAINTS through a heap scan
protected  org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor getConstraintDescriptorViaIndex(int indexId, org.apache.derby.iapi.sql.execute.ExecIndexRow keyRow, org.apache.derby.iapi.sql.dictionary.TabInfo ti, org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList dList, boolean forUpdate)
          Return a (single or list of) ConstraintDescriptor(s) from SYSCONSTRAINTS where the access is from the index to the heap.
 java.util.List getConstraints(org.apache.derby.catalog.UUID uuid, int indexId, int columnNum)
          Return an List which of the relevant column matching the indexed criteria.
 org.apache.derby.iapi.sql.dictionary.TableDescriptor getConstraintTableDescriptor(org.apache.derby.catalog.UUID constraintId)
          Return a table descriptor corresponding to the TABLEID field in SYSCONSTRAINTS where CONSTRAINTID matches the constraintId passsed in.
 org.apache.derby.iapi.sql.dictionary.TabInfo getCoreCatalog(int coreNum)
          Get core catalog info.
 org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator getDataDescriptorGenerator()
          Get a DataDescriptorGenerator, through which we can create objects to be stored in the DataDictionary.
 org.apache.derby.iapi.types.DataValueFactory getDataValueFactory()
          Get a DataValueFactory, through which we can create data value objects.
 org.apache.derby.iapi.sql.dictionary.SchemaDescriptor getDeclaredGlobalTemporaryTablesSchemaDescriptor()
          Get the descriptor for the declared global temporary table schema which is always named "SESSION".
 org.apache.derby.iapi.sql.depend.DependencyManager getDependencyManager()
          returns the dependencymanager associated with this datadictionary.
 java.util.List getDependentsDescriptorList(java.lang.String dependentID)
          Gets a list of the dependency descriptors for the given dependent's id.
protected  org.apache.derby.iapi.sql.dictionary.TupleDescriptor getDescriptorViaHeap(org.apache.derby.iapi.sql.execute.ScanQualifier[][] scanQualifiers, org.apache.derby.iapi.sql.dictionary.TabInfo ti, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parentTupleDescriptor, java.util.List list)
          Return a (single or list of) catalog row descriptor(s) from a system table where the access a heap scan
private  org.apache.derby.iapi.sql.dictionary.TupleDescriptor getDescriptorViaIndex(int indexId, org.apache.derby.iapi.sql.execute.ExecIndexRow keyRow, org.apache.derby.iapi.sql.execute.ScanQualifier[][] scanQualifiers, org.apache.derby.iapi.sql.dictionary.TabInfo ti, org.apache.derby.iapi.sql.dictionary.TupleDescriptor parentTupleDescriptor, java.util.List list, boolean forUpdate)
          Return a (single or list of) catalog row descriptor(s) from a system table where the access is from the index to the heap.
 int getEngineType()
           
 org.apache.derby.iapi.sql.execute.ExecutionFactory getExecutionFactory()
          Get ExecutionFactory associated with this database.
 org.apache.derby.iapi.sql.dictionary.FileInfoDescriptor getFileInfoDescriptor(org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd, java.lang.String name)
          Get a FileInfoDescriptor given its SQL name and schema name.
 org.apache.derby.iapi.sql.dictionary.FileInfoDescriptor getFileInfoDescriptor(org.apache.derby.catalog.UUID id)
          Get a FileInfoDescriptor given its id.
private  org.apache.derby.iapi.sql.dictionary.FileInfoDescriptor getFileInfoDescriptorIndex1Scan(org.apache.derby.catalog.UUID schemaId, java.lang.String name)
          Scan sysfiles_index1 (schemaid,name) for a match.
private  org.apache.derby.iapi.sql.dictionary.FileInfoDescriptor getFileInfoDescriptorIndex2Scan(org.apache.derby.catalog.UUID id)
          Scan sysfiles_index2 (id) for a match.
 org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList getForeignKeys(org.apache.derby.catalog.UUID constraintId)
          Return a list of foreign keys constraints referencing this constraint.
static org.apache.derby.iapi.sql.execute.ExecIndexRow getIndexRowFromHeapRow(org.apache.derby.iapi.sql.dictionary.IndexRowGenerator irg, org.apache.derby.iapi.types.RowLocation rl, org.apache.derby.iapi.sql.execute.ExecRow heapRow)
          Get an index row based on a row from the heap.
private static org.apache.derby.iapi.sql.conn.LanguageConnectionContext getLCC()
           
private  org.apache.derby.iapi.sql.dictionary.TabInfo getNonCoreTI(int catalogNumber)
          Get a TabInfo for a non-core table.
protected  org.apache.derby.iapi.sql.dictionary.TabInfo getNonCoreTIByNumber(int catalogNumber)
          returns the tabinfo for a non core system catalog.
 java.util.List getProvidersDescriptorList(java.lang.String providerID)
          Gets a list of the dependency descriptors for the given provider's id.
private  java.util.Properties getQueryDescriptions(boolean net)
           
 java.util.List getRoutineList(java.lang.String schemaID, java.lang.String routineName, char nameSpace)
          Get the list of routines matching the schema and routine name.
 org.apache.derby.iapi.types.RowLocation getRowLocationTemplate(org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc, org.apache.derby.iapi.sql.dictionary.TableDescriptor td)
           
 org.apache.derby.iapi.sql.dictionary.SchemaDescriptor getSchemaDescriptor(java.lang.String schemaName, org.apache.derby.iapi.store.access.TransactionController tc, boolean raiseError)
          Get the descriptor for the named schema.
 org.apache.derby.iapi.sql.dictionary.SchemaDescriptor