Java Doc for TableDescriptor.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » sql » dictionary » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.iapi.sql.dictionary 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.iapi.sql.dictionary.TupleDescriptor
      org.apache.derby.iapi.sql.dictionary.TableDescriptor

TableDescriptor
public class TableDescriptor extends TupleDescriptor implements UniqueSQLObjectDescriptor,Provider(Code)
This class represents a table descriptor. The external interface to this class is:

  1. external interface
  2. public String getSchemaName();
  3. public String getQualifiedName();
  4. public int getTableType();
  5. public long getHeapConglomerateId() throws StandardException;
  6. public int getNumberOfColumns();
  7. public FormatableBitSet getReferencedColumnMap();
  8. public void setReferencedColumnMap(FormatableBitSet referencedColumnMap);
  9. public int getMaxColumnID() throws StandardException;
  10. public void setUUID(UUID uuid);
  11. public char getLockGranularity();
  12. public void setTableName(String newTableName);
  13. public void setLockGranularity(char lockGranularity);
  14. public ExecRow getEmptyExecRow( ContextManager cm) throws StandardException;
  15. public boolean tableNameEquals(String otherSchemaName, String otherTableName);
  16. public ReferencedKeyConstraintDescriptor getPrimaryKey() throws StandardException;
  17. public void removeConglomerateDescriptor(ConglomerateDescriptor cd) throws StandardException;
  18. public void removeConstraintDescriptor(ConstraintDescriptor cd) throws StandardException;
  19. public void getAffectedIndexes(...) throws StandardException;
  20. public void getAllRelevantTriggers(...) throws StandardException;
  21. public void getAllRelevantConstraints(...) throws StandardException
  22. public ColumnDescriptorList getColumnDescriptorList();
  23. public String[] getColumnNamesArray();
  24. public long[] getAutoincIncrementArray();
  25. public ColumnDescriptor getColumnDescriptor(String columnName);
  26. public ColumnDescriptor getColumnDescriptor(int columnNumber);
  27. public ConglomerateDescriptor[] getConglomerateDescriptors() throws StandardException;
  28. public ConglomerateDescriptor getConglomerateDescriptor(long conglomerateNumber) throws StandardException;
  29. public ConglomerateDescriptor getConglomerateDescriptor(UUID conglomerateUUID) throws StandardException;
  30. public IndexLister getIndexLister() throws StandardException;
  31. public ViewDescriptor getViewDescriptor();
  32. public boolean tableHasAutoincrement();
  33. public boolean statisticsExist(ConglomerateDescriptor cd) throws StandardException;
  34. public double selectivityForConglomerate(...)throws StandardException;


author:
   Jeff Lichtman



Field Summary
final public static  intBASE_TABLE_TYPE
    
final public static  charDEFAULT_LOCK_GRANULARITY
    
final public static  intGLOBAL_TEMPORARY_TABLE_TYPE
    
final public static  charROW_LOCK_GRANULARITY
    
final public static  intSYNONYM_TYPE
    
final public static  intSYSTEM_TABLE_TYPE
    
final public static  charTABLE_LOCK_GRANULARITY
    
final public static  intVIEW_TYPE
    
final public static  intVTI_TYPE
    
 ColumnDescriptorListcolumnDescriptorList
    
 ConglomerateDescriptorListconglomerateDescriptorList
    
 ConstraintDescriptorListconstraintDescriptorList
    
 longheapConglomNumber
    
 UUIDoid
    
 FormatableBitSetreferencedColumnMap
    
 SchemaDescriptorschema
    
 StringtableName
    
 inttableType
    
 ViewDescriptorviewDescriptor
    

Constructor Summary
public  TableDescriptor(DataDictionary dataDictionary, String tableName, SchemaDescriptor schema, int tableType, boolean onCommitDeleteRows, boolean onRollbackDeleteRows)
     Constructor for a TableDescriptor (this is for a temporary table).
Parameters:
  dataDictionary - The data dictionary that this descriptor lives in
Parameters:
  tableName - The name of the temporary table
Parameters:
  schema - The schema descriptor for this table.
Parameters:
  tableType - An integer identifier for the type of the table : declared global temporary table
Parameters:
  onCommitDeleteRows - If true, on commit delete rows else on commit preserve rows of temporary table.
Parameters:
  onRollbackDeleteRows - If true, on rollback, delete rows from temp tables which were logically modified.
public  TableDescriptor(DataDictionary dataDictionary, String tableName, SchemaDescriptor schema, int tableType, char lockGranularity)
     Constructor for a TableDescriptor.

Method Summary
public  voidemptyConstraintDescriptorList()
    
public  voidemptyTriggerDescriptorList()
    
public  voidgetAllRelevantConstraints(int statementType, boolean skipCheckConstraints, int[] changedColumnIds, boolean[] needsDeferredProcessing, ConstraintDescriptorList relevantConstraints)
     Gets all of the relevant constraints for a statement, given its statement type and its list of updated columns.
Parameters:
  statementType - As defined in StatementType.
Parameters:
  skipCheckConstraints - Skip check constraints
Parameters:
  changedColumnIds - If null, all columns being changed, otherwise arrayof 1-based column ids for columns being changed
Parameters:
  needsDeferredProcessing - IN/OUT.
public  voidgetAllRelevantTriggers(int statementType, int[] changedColumnIds, GenericDescriptorList relevantTriggers)
     Builds a list of all triggers which are relevant to a given statement type, given a list of updated columns.
Parameters:
  statementType - defined in StatementType
Parameters:
  changedColumnIds - array of changed columns
Parameters:
  relevantTriggers - IN/OUT.
public  long[]getAutoincIncrementArray()
     gets an array of increment values for autoincrement columns in the target table.
public  StringgetClassType()
     Get the provider's type.
public  ColumnDescriptorgetColumnDescriptor(String columnName)
     Get the descriptor for a column in the table, either by the column name or by its ordinal position (column number).
public  ColumnDescriptorgetColumnDescriptor(int columnNumber)
    
public  ColumnDescriptorListgetColumnDescriptorList()
    
public  String[]getColumnNamesArray()
     Gets an array of column names.
public  ConglomerateDescriptorgetConglomerateDescriptor(long conglomerateNumber)
     Gets a conglomerate descriptor for the given table and conglomerate number.
Parameters:
  conglomerateNumber - The conglomerate numberwe're interested in A ConglomerateDescriptor describing the requestedconglomerate.
public  ConglomerateDescriptorgetConglomerateDescriptor(UUID conglomerateUUID)
     Gets a conglomerate descriptor for the given table and conglomerate UUID String.
Parameters:
  conglomerateUUID - The UUID for the conglomeratewe're interested in A ConglomerateDescriptor describing the requestedconglomerate.
public  ConglomerateDescriptorListgetConglomerateDescriptorList()
    
public  ConglomerateDescriptor[]getConglomerateDescriptors()
     Gets a ConglomerateDescriptor[] to loop through all the conglomerate descriptors for the table.
public  ConglomerateDescriptor[]getConglomerateDescriptors(long conglomerateNumber)
     Gets array of conglomerate descriptors for the given table and conglomerate number.
public  ConglomerateDescriptor[]getConglomerateDescriptors(UUID conglomerateUUID)
     Gets array of conglomerate descriptors for the given table and conglomerate UUID.
public  ConstraintDescriptorListgetConstraintDescriptorList()
    
public  DependableFindergetDependableFinder()
    
public  StringgetDescriptorName()
    
public  StringgetDescriptorType()
    
public  ExecRowgetEmptyExecRow(ContextManager cm)
     Gets an ExecRow for rows stored in the table this describes.
public  longgetHeapConglomerateId()
     Gets the id for the heap conglomerate of the table.
public  IndexListergetIndexLister()
     Gets an object which lists out all the index row generators on a table together with their conglomerate ids.
public  chargetLockGranularity()
     Gets the lock granularity for the table.
public  intgetMaxColumnID()
     Gets the highest column id in the table.
public  StringgetName()
     Gets the name of the table.
public  intgetNumberOfColumns()
     Gets the number of columns in the table.
public  UUIDgetObjectID()
    
public  StringgetObjectName()
     Return the name of this Provider.
public  ReferencedKeyConstraintDescriptorgetPrimaryKey()
    
public  StringgetQualifiedName()
     Gets the full, qualified name of the table.
public  FormatableBitSetgetReferencedColumnMap()
     Get the referenced column map of the table.
public  SchemaDescriptorgetSchemaDescriptor()
     Gets the SchemaDescriptor for this TableDescriptor.
public  StringgetSchemaName()
     Gets the name of the schema the table lives in.
public  intgetTableType()
    
public  intgetTotalNumberOfIndexes()
     Gets the number of indexes on the table, including the backing indexes.
public  GenericDescriptorListgetTriggerDescriptorList()
    
public  UUIDgetUUID()
     Gets the UUID of the table.
public  ViewDescriptorgetViewDescriptor()
     Gets the view descriptor for this TableDescriptor.
public  booleanisOnCommitDeleteRows()
     Gets the on commit behavior for the declared global temporary table.
public  booleanisOnRollbackDeleteRows()
     Gets the on rollback behavior for the declared global temporary table.
public  booleanisPersistent()
     Is this provider persistent? A stored dependency will be required if both the dependent and provider are persistent.
public  booleanisSynonymDescriptor()
    
public  voidremoveConglomerateDescriptor(ConglomerateDescriptor cd)
    
public  voidremoveConstraintDescriptor(ConstraintDescriptor cd)
     Remove this descriptor.
public  voidresetHeapConglomNumber()
     Sets the heapConglomNumber to -1 for temporary table since the table was dropped and recreated at the commit time and hence its conglomerate id has changed.
public  doubleselectivityForConglomerate(ConglomerateDescriptor cd, int numKeys)
     For this conglomerate (index), return the selectivity of the first numKeys.
public  voidsetConstraintDescriptorList(ConstraintDescriptorList newCDL)
    
public  voidsetLockGranularity(char lockGranularity)
     Sets the lock granularity for the table to the specified value.
public  voidsetReferencedColumnMap(FormatableBitSet referencedColumnMap)
     Set the referenced column map of the table.
public  voidsetTableName(String newTableName)
     Sets the the table name in case of rename table.
public  voidsetTriggerDescriptorList(GenericDescriptorList newCDL)
    
public  voidsetUUID(UUID oid)
    
public  voidsetViewDescriptor(ViewDescriptor viewDescriptor)
    
public  booleanstatisticsExist(ConglomerateDescriptor cd)
     Are there statistics for this particular conglomerate.
Parameters:
  cd - Conglomerate/Index for which we want to check if statisticsexist.
public  booleantableHasAutoincrement()
    
public  booleantableNameEquals(String otherTableName, String otherSchemaName)
     Compare the tables descriptors based on the names.
public  StringtoString()
    

Field Detail
BASE_TABLE_TYPE
final public static int BASE_TABLE_TYPE(Code)



DEFAULT_LOCK_GRANULARITY
final public static char DEFAULT_LOCK_GRANULARITY(Code)



GLOBAL_TEMPORARY_TABLE_TYPE
final public static int GLOBAL_TEMPORARY_TABLE_TYPE(Code)



ROW_LOCK_GRANULARITY
final public static char ROW_LOCK_GRANULARITY(Code)



SYNONYM_TYPE
final public static int SYNONYM_TYPE(Code)



SYSTEM_TABLE_TYPE
final public static int SYSTEM_TABLE_TYPE(Code)



TABLE_LOCK_GRANULARITY
final public static char TABLE_LOCK_GRANULARITY(Code)



VIEW_TYPE
final public static int VIEW_TYPE(Code)



VTI_TYPE
final public static int VTI_TYPE(Code)



columnDescriptorList
ColumnDescriptorList columnDescriptorList(Code)



conglomerateDescriptorList
ConglomerateDescriptorList conglomerateDescriptorList(Code)



constraintDescriptorList
ConstraintDescriptorList constraintDescriptorList(Code)



heapConglomNumber
long heapConglomNumber(Code)



oid
UUID oid(Code)



referencedColumnMap
FormatableBitSet referencedColumnMap(Code)



schema
SchemaDescriptor schema(Code)



tableName
String tableName(Code)



tableType
int tableType(Code)



viewDescriptor
ViewDescriptor viewDescriptor(Code)




Constructor Detail
TableDescriptor
public TableDescriptor(DataDictionary dataDictionary, String tableName, SchemaDescriptor schema, int tableType, boolean onCommitDeleteRows, boolean onRollbackDeleteRows)(Code)
Constructor for a TableDescriptor (this is for a temporary table).
Parameters:
  dataDictionary - The data dictionary that this descriptor lives in
Parameters:
  tableName - The name of the temporary table
Parameters:
  schema - The schema descriptor for this table.
Parameters:
  tableType - An integer identifier for the type of the table : declared global temporary table
Parameters:
  onCommitDeleteRows - If true, on commit delete rows else on commit preserve rows of temporary table.
Parameters:
  onRollbackDeleteRows - If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported value



TableDescriptor
public TableDescriptor(DataDictionary dataDictionary, String tableName, SchemaDescriptor schema, int tableType, char lockGranularity)(Code)
Constructor for a TableDescriptor.
Parameters:
  dataDictionary - The data dictionary that this descriptor lives in
Parameters:
  tableName - The name of the table
Parameters:
  schema - The schema descriptor for this table.
Parameters:
  tableType - An integer identifier for the type of the table(base table, view, etc.)
Parameters:
  lockGranularity - The lock granularity.




Method Detail
emptyConstraintDescriptorList
public void emptyConstraintDescriptorList() throws StandardException(Code)
Empty the constraint descriptor list
exception:
  StandardException - Thrown on failure



emptyTriggerDescriptorList
public void emptyTriggerDescriptorList() throws StandardException(Code)
Empty the trigger descriptor list
exception:
  StandardException - Thrown on failure



getAllRelevantConstraints
public void getAllRelevantConstraints(int statementType, boolean skipCheckConstraints, int[] changedColumnIds, boolean[] needsDeferredProcessing, ConstraintDescriptorList relevantConstraints) throws StandardException(Code)
Gets all of the relevant constraints for a statement, given its statement type and its list of updated columns.
Parameters:
  statementType - As defined in StatementType.
Parameters:
  skipCheckConstraints - Skip check constraints
Parameters:
  changedColumnIds - If null, all columns being changed, otherwise arrayof 1-based column ids for columns being changed
Parameters:
  needsDeferredProcessing - IN/OUT. true if the statement already needsdeferred processing. set while evaluating thisroutine if a trigger or constraint requiresdeferred processing
Parameters:
  relevantConstraints - IN/OUT. Empty list is passed in. We hang constraints on it as we go.
exception:
  StandardException - Thrown on error



getAllRelevantTriggers
public void getAllRelevantTriggers(int statementType, int[] changedColumnIds, GenericDescriptorList relevantTriggers) throws StandardException(Code)
Builds a list of all triggers which are relevant to a given statement type, given a list of updated columns.
Parameters:
  statementType - defined in StatementType
Parameters:
  changedColumnIds - array of changed columns
Parameters:
  relevantTriggers - IN/OUT. Passed in as an empty list. Filled in as we go.
exception:
  StandardException - Thrown on error



getAutoincIncrementArray
public long[] getAutoincIncrementArray()(Code)
gets an array of increment values for autoincrement columns in the target table. If column is not an autoincrement column, then increment value is 0. If table has no autoincrement columns, returns NULL. array containing the increment values of autoincrementcolumns.



getClassType
public String getClassType()(Code)
Get the provider's type. String The provider's type.



getColumnDescriptor
public ColumnDescriptor getColumnDescriptor(String columnName)(Code)
Get the descriptor for a column in the table, either by the column name or by its ordinal position (column number). Returns NULL for columns that do not exist.
Parameters:
  columnName - A String containing the name of the column A ColumnDescriptor describing the column



getColumnDescriptor
public ColumnDescriptor getColumnDescriptor(int columnNumber)(Code)

Parameters:
  columnNumber - The ordinal position of the column in the table A ColumnDescriptor describing the column



getColumnDescriptorList
public ColumnDescriptorList getColumnDescriptorList()(Code)
Gets the column descriptor list The column descriptor list for this table descriptor



getColumnNamesArray
public String[] getColumnNamesArray()(Code)
Gets an array of column names. An array, filled with the column names in the table.



getConglomerateDescriptor
public ConglomerateDescriptor getConglomerateDescriptor(long conglomerateNumber) throws StandardException(Code)
Gets a conglomerate descriptor for the given table and conglomerate number.
Parameters:
  conglomerateNumber - The conglomerate numberwe're interested in A ConglomerateDescriptor describing the requestedconglomerate. Returns NULL if no such conglomerate.
exception:
  StandardException - Thrown on failure



getConglomerateDescriptor
public ConglomerateDescriptor getConglomerateDescriptor(UUID conglomerateUUID) throws StandardException(Code)
Gets a conglomerate descriptor for the given table and conglomerate UUID String.
Parameters:
  conglomerateUUID - The UUID for the conglomeratewe're interested in A ConglomerateDescriptor describing the requestedconglomerate. Returns NULL if no such conglomerate.
exception:
  StandardException - Thrown on failure



getConglomerateDescriptorList
public ConglomerateDescriptorList getConglomerateDescriptorList()(Code)
Gets the conglomerate descriptor list The conglomerate descriptor list for this table descriptor



getConglomerateDescriptors
public ConglomerateDescriptor[] getConglomerateDescriptors()(Code)
Gets a ConglomerateDescriptor[] to loop through all the conglomerate descriptors for the table. A ConglomerateDescriptor[] for looping through the table's conglomerates
exception:
  StandardException - Thrown on failure



getConglomerateDescriptors
public ConglomerateDescriptor[] getConglomerateDescriptors(long conglomerateNumber) throws StandardException(Code)
Gets array of conglomerate descriptors for the given table and conglomerate number. More than one descriptors if duplicate indexes share one conglomerate.
Parameters:
  conglomerateNumber - The conglomerate numberwe're interested in Array of ConglomerateDescriptors with the requestedconglomerate number. Returns size 0 array if no such conglomerate.
exception:
  StandardException - Thrown on failure



getConglomerateDescriptors
public ConglomerateDescriptor[] getConglomerateDescriptors(UUID conglomerateUUID) throws StandardException(Code)
Gets array of conglomerate descriptors for the given table and conglomerate UUID. More than one descriptors if duplicate indexes share one conglomerate.
Parameters:
  conglomerateUUID - The conglomerate UUIDwe're interested in Array of ConglomerateDescriptors with the requestedconglomerate UUID. Returns size 0 array if no such conglomerate.
exception:
  StandardException - Thrown on failure



getConstraintDescriptorList
public ConstraintDescriptorList getConstraintDescriptorList() throws StandardException(Code)
Gets the constraint descriptor list The constraint descriptor list for this table descriptor
exception:
  StandardException - Thrown on failure



getDependableFinder
public DependableFinder getDependableFinder()(Code)
the stored form of this provider
See Also:   Dependable.getDependableFinder



getDescriptorName
public String getDescriptorName()(Code)

See Also:   TupleDescriptor.getDescriptorName
See Also:   



getDescriptorType
public String getDescriptorType()(Code)

See Also:   TupleDescriptor.getDescriptorType
See Also:   



getEmptyExecRow
public ExecRow getEmptyExecRow(ContextManager cm) throws StandardException(Code)
Gets an ExecRow for rows stored in the table this describes.
Parameters:
  cm - Current ContextManager the row.
exception:
  StandardException - Thrown on failure



getHeapConglomerateId
public long getHeapConglomerateId() throws StandardException(Code)
Gets the id for the heap conglomerate of the table. There may also be keyed conglomerates, these are stored separately in the conglomerates table. the id of the heap conglomerate for the table.
exception:
  StandardException - Thrown on error



getIndexLister
public IndexLister getIndexLister() throws StandardException(Code)
Gets an object which lists out all the index row generators on a table together with their conglomerate ids. An object to list out the index row generators.
exception:
  StandardException - Thrown on failure



getLockGranularity
public char getLockGranularity()(Code)
Gets the lock granularity for the table. A char representing the lock granularity for the table.



getMaxColumnID
public int getMaxColumnID() throws StandardException(Code)
Gets the highest column id in the table. For now this is the same as the number of columns. However, in the future, after we implement ALTER TABLE DROP COLUMN, this correspondence won't hold any longer. the highest column ID in the table
exception:
  StandardException - Thrown on error



getName
public String getName()(Code)
Gets the name of the table. A String containing the name of the table.



getNumberOfColumns
public int getNumberOfColumns()(Code)
Gets the number of columns in the table. the number of columns in the table.



getObjectID
public UUID getObjectID()(Code)
Get the provider's UUID String The provider's UUID



getObjectName
public String getObjectName()(Code)
Return the name of this Provider. (Useful for errors.) String The name of this provider.



getPrimaryKey
public ReferencedKeyConstraintDescriptor getPrimaryKey() throws StandardException(Code)
Gets the primary key, may return null if no primary key The priamry key or null
exception:
  StandardException - Thrown on failure



getQualifiedName
public String getQualifiedName()(Code)
Gets the full, qualified name of the table. A String containing the name of the table.



getReferencedColumnMap
public FormatableBitSet getReferencedColumnMap()(Code)
Get the referenced column map of the table. the referencedColumnMap of the table.



getSchemaDescriptor
public SchemaDescriptor getSchemaDescriptor()(Code)
Gets the SchemaDescriptor for this TableDescriptor. SchemaDescriptor The SchemaDescriptor.



getSchemaName
public String getSchemaName()(Code)
Gets the name of the schema the table lives in. A String containing the name of the schema the tablelives in.



getTableType
public int getTableType()(Code)
Gets an identifier telling what type of table this is (base table, declared global temporary table, view, etc.) An identifier telling what type of table this is.



getTotalNumberOfIndexes
public int getTotalNumberOfIndexes() throws StandardException(Code)
Gets the number of indexes on the table, including the backing indexes. the number of columns in the table.



getTriggerDescriptorList
public GenericDescriptorList getTriggerDescriptorList() throws StandardException(Code)
Gets the trigger descriptor list The trigger descriptor list for this table descriptor
exception:
  StandardException - Thrown on failure



getUUID
public UUID getUUID()(Code)
Gets the UUID of the table. The UUID of the table.



getViewDescriptor
public ViewDescriptor getViewDescriptor()(Code)
Gets the view descriptor for this TableDescriptor. ViewDescriptor The ViewDescriptor, if any.



isOnCommitDeleteRows
public boolean isOnCommitDeleteRows()(Code)
Gets the on commit behavior for the declared global temporary table. A boolean representing the on commit behavior for the declared global temporary table.



isOnRollbackDeleteRows
public boolean isOnRollbackDeleteRows()(Code)
Gets the on rollback behavior for the declared global temporary table. A boolean representing the on rollback behavior for the declared global temporary table.



isPersistent
public boolean isPersistent()(Code)
Is this provider persistent? A stored dependency will be required if both the dependent and provider are persistent. boolean Whether or not this provider is persistent.



isSynonymDescriptor
public boolean isSynonymDescriptor()(Code)
Is this descriptor represents a synonym? boolean Whether or not this represents a synonym



removeConglomerateDescriptor
public void removeConglomerateDescriptor(ConglomerateDescriptor cd) throws StandardException(Code)
Remove this descriptor
Parameters:
  cd - The conglomerate descriptor
exception:
  StandardException - on error



removeConstraintDescriptor
public void removeConstraintDescriptor(ConstraintDescriptor cd) throws StandardException(Code)
Remove this descriptor. Warning, removes by using object reference, not uuid.
Parameters:
  cd - constraint descriptor
exception:
  StandardException - on error



resetHeapConglomNumber
public void resetHeapConglomNumber()(Code)
Sets the heapConglomNumber to -1 for temporary table since the table was dropped and recreated at the commit time and hence its conglomerate id has changed. This is used for temporary table descriptors only



selectivityForConglomerate
public double selectivityForConglomerate(ConglomerateDescriptor cd, int numKeys) throws StandardException(Code)
For this conglomerate (index), return the selectivity of the first numKeys. This basically returns the reciprocal of the number of unique values in the leading numKey columns of the index. It is assumed that statistics exist for the conglomerate if this function is called.
Parameters:
  cd - ConglomerateDescriptor (Index) whosecardinality we are interested in.
Parameters:
  numKeys - Number of leading columns of the index for whichcardinality is desired.



setConstraintDescriptorList
public void setConstraintDescriptorList(ConstraintDescriptorList newCDL)(Code)
Sets the constraint descriptor list
Parameters:
  newCDL - The new constraint descriptor list for this table descriptor



setLockGranularity
public void setLockGranularity(char lockGranularity)(Code)
Sets the lock granularity for the table to the specified value.
Parameters:
  lockGranularity - The new lockGranularity.



setReferencedColumnMap
public void setReferencedColumnMap(FormatableBitSet referencedColumnMap)(Code)
Set the referenced column map of the table.
Parameters:
  referencedColumnMap - FormatableBitSet of referenced columns.



setTableName
public void setTableName(String newTableName)(Code)
Sets the the table name in case of rename table. This is used only by rename table
Parameters:
  newTableName - The new table name.



setTriggerDescriptorList
public void setTriggerDescriptorList(GenericDescriptorList newCDL)(Code)
Sets the trigger descriptor list
Parameters:
  newCDL - The new trigger descriptor list for this table descriptor



setUUID
public void setUUID(UUID oid)(Code)
Sets the UUID of the table
Parameters:
  oid - The UUID of the table to be set in the descriptor



setViewDescriptor
public void setViewDescriptor(ViewDescriptor viewDescriptor)(Code)
Set (cache) the view descriptor for this TableDescriptor
Parameters:
  viewDescriptor - The view descriptor to cache.



statisticsExist
public boolean statisticsExist(ConglomerateDescriptor cd) throws StandardException(Code)
Are there statistics for this particular conglomerate.
Parameters:
  cd - Conglomerate/Index for which we want to check if statisticsexist. cd can be null in which case user wants to know if there are anystatistics at all on the table.



tableHasAutoincrement
public boolean tableHasAutoincrement()(Code)
Does the table have an autoincrement column or not? TRUE if the table has atleast one autoincrement column, falseotherwise



tableNameEquals
public boolean tableNameEquals(String otherTableName, String otherSchemaName)(Code)
Compare the tables descriptors based on the names. Null schema names match.
Parameters:
  otherTableName - the other table name
Parameters:
  otherSchemaName - the other schema name boolean Whether or not the 2 TableNames are equal.



toString
public String toString()(Code)
Prints the contents of the TableDescriptor The contents as a String



Fields inherited from org.apache.derby.iapi.sql.dictionary.TupleDescriptor
final public static int COLUMN_LIST(Code)(Java Doc)
final public static int CONGLOMERATE_LIST(Code)(Java Doc)
final public static int CONSTRAINT_LIST(Code)(Java Doc)
final public static int TRIGGER_LIST(Code)(Java Doc)

Methods inherited from org.apache.derby.iapi.sql.dictionary.TupleDescriptor
DependableFinder getColumnDependableFinder(int formatId, byte[] columnBitMap)(Code)(Java Doc)
protected DataDictionary getDataDictionary() throws StandardException(Code)(Java Doc)
public DependableFinder getDependableFinder(int formatId)(Code)(Java Doc)
public String getDescriptorName()(Code)(Java Doc)
public String getDescriptorType()(Code)(Java Doc)
public boolean isPersistent()(Code)(Java Doc)
protected void setDataDictionary(DataDictionary dd)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.