Java Doc for DataDescriptorGenerator.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.DataDescriptorGenerator

DataDescriptorGenerator
public class DataDescriptorGenerator (Code)
This is an implementation of the DataDescriptorGenerator interface that lives in the DataDictionary protocol. See that interface for a description of what this class is supposed to do.
version:
   0.1
author:
   Jeff Lichtman


Field Summary
final protected  DataDictionarydataDictionary
    

Constructor Summary
public  DataDescriptorGenerator(DataDictionary dataDictionary)
     Make a generator.

Method Summary
protected  UUIDFactorygetUUIDFactory()
    
public  CheckConstraintDescriptornewCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, ReferencedColumns referencedColumns, SchemaDescriptor schemaDesc, boolean isEnabled)
    
public  CheckConstraintDescriptornewCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, int[] refCols, SchemaDescriptor schemaDesc, boolean isEnabled)
    
public  ColPermsDescriptornewColPermsDescriptor(TableDescriptor td, String type, FormatableBitSet columns, String grantor)
     Manufacture a new ColPermsDescriptor.
public  ConglomerateDescriptornewConglomerateDescriptor(long conglomerateId, String name, boolean indexable, IndexRowGenerator indexRowGenerator, boolean isConstraint, UUID uuid, UUID tableID, UUID schemaID)
     Create a conglomerate descriptor for the given conglomerate id.
Parameters:
  conglomerateId - The identifier for the conglomeratewe're interested in
Parameters:
  name - The name of the conglomerate, if any
Parameters:
  indexable - TRUE means the conglomerate is indexable,FALSE means it isn't
Parameters:
  indexRowGenerator - The IndexRowGenerator for the conglomerate,null if it's a heap
Parameters:
  isConstraint - TRUE means the conglomerate is an index backing up a constraint, FALSE means it isn't
Parameters:
  uuid - UUID for this conglomerate
Parameters:
  tableID - UUID for the table that this conglomerate belongs to
Parameters:
  schemaID - UUID for the schema that conglomerate belongs to A ConglomerateDescriptor describing the conglomerate.
public  FileInfoDescriptornewFileInfoDescriptor(UUID id, SchemaDescriptor sd, String SQLName, long generationId)
    
public  ForeignKeyConstraintDescriptornewForeignKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] fkColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, ReferencedKeyConstraintDescriptor referencedConstraintDescriptor, boolean isEnabled, int raDeleteRule, int raUpdateRule)
    
public  ForeignKeyConstraintDescriptornewForeignKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] fkColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, UUID referencedConstraintId, boolean isEnabled, int raDeleteRule, int raUpdateRule)
    
public  ReferencedKeyConstraintDescriptornewPrimaryKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount)
    
public  RoutinePermsDescriptornewRoutinePermsDescriptor(AliasDescriptor ad, String grantor)
    
public  SchemaDescriptornewSchemaDescriptor(String schemaName, String aid, UUID oid)
     Create a descriptor for the named schema with a null UUID.
public  TableDescriptornewTableDescriptor(String tableName, SchemaDescriptor schema, int tableType, char lockGranularity)
     Create a descriptor for the named table within the given schema.
public  TableDescriptornewTableDescriptor(String tableName, SchemaDescriptor schema, int tableType, boolean onCommitDeleteRows, boolean onRollbackDeleteRows)
     Create a descriptor for the temporary table within the given schema.
Parameters:
  tableName - The name of the temporary table to get the descriptor for
Parameters:
  schema - The descriptor for the schema the table lives in.
Parameters:
  tableType - The type of the table: 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  TablePermsDescriptornewTablePermsDescriptor(TableDescriptor td, String selectPerm, String deletePerm, String insertPerm, String updatePerm, String referencesPerm, String triggerPerm, String grantor)
    
public  TriggerDescriptornewTriggerDescriptor(SchemaDescriptor sd, UUID uuid, String name, int eventMask, boolean isBefore, boolean isRow, boolean isEnabled, TableDescriptor td, UUID whenSPSId, UUID actionSPSId, Timestamp creationTimestamp, int[] referencedCols, String triggerDefinition, boolean referencingOld, boolean referencingNew, String oldReferencingName, String newReferencingName)
     Create a new trigger descriptor.
public  ReferencedKeyConstraintDescriptornewUniqueConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount)
    
public  ViewDescriptornewViewDescriptor(UUID viewID, String viewName, String viewText, int checkOption, UUID compSchemaId)
     Create a viewDescriptor for the view with the given UUID.

Field Detail
dataDictionary
final protected DataDictionary dataDictionary(Code)




Constructor Detail
DataDescriptorGenerator
public DataDescriptorGenerator(DataDictionary dataDictionary)(Code)
Make a generator. Specify the data dictionary that it operates on.
Parameters:
  dataDictionary - the data dictionary that this generator makes objects for




Method Detail
getUUIDFactory
protected UUIDFactory getUUIDFactory()(Code)



newCheckConstraintDescriptor
public CheckConstraintDescriptor newCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, ReferencedColumns referencedColumns, SchemaDescriptor schemaDesc, boolean isEnabled)(Code)

See Also:   DataDescriptorGenerator.newCheckConstraintDescriptor



newCheckConstraintDescriptor
public CheckConstraintDescriptor newCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, int[] refCols, SchemaDescriptor schemaDesc, boolean isEnabled)(Code)



newColPermsDescriptor
public ColPermsDescriptor newColPermsDescriptor(TableDescriptor td, String type, FormatableBitSet columns, String grantor) throws StandardException(Code)
Manufacture a new ColPermsDescriptor.
Parameters:
  td - The descriptor of the table.
Parameters:
  type - The action type:
  1. "s" - select without grant
  2. "S" - select with grant
  3. "u" - update without grant
  4. "U" - update with grant
  5. "r" - references without grant
  6. "R" - references with grant

Parameters:
  columns - the set of columns



newConglomerateDescriptor
public ConglomerateDescriptor newConglomerateDescriptor(long conglomerateId, String name, boolean indexable, IndexRowGenerator indexRowGenerator, boolean isConstraint, UUID uuid, UUID tableID, UUID schemaID)(Code)
Create a conglomerate descriptor for the given conglomerate id.
Parameters:
  conglomerateId - The identifier for the conglomeratewe're interested in
Parameters:
  name - The name of the conglomerate, if any
Parameters:
  indexable - TRUE means the conglomerate is indexable,FALSE means it isn't
Parameters:
  indexRowGenerator - The IndexRowGenerator for the conglomerate,null if it's a heap
Parameters:
  isConstraint - TRUE means the conglomerate is an index backing up a constraint, FALSE means it isn't
Parameters:
  uuid - UUID for this conglomerate
Parameters:
  tableID - UUID for the table that this conglomerate belongs to
Parameters:
  schemaID - UUID for the schema that conglomerate belongs to A ConglomerateDescriptor describing the conglomerate.



newFileInfoDescriptor
public FileInfoDescriptor newFileInfoDescriptor(UUID id, SchemaDescriptor sd, String SQLName, long generationId)(Code)

See Also:   DataDescriptorGenerator.newFileInfoDescriptor



newForeignKeyConstraintDescriptor
public ForeignKeyConstraintDescriptor newForeignKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] fkColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, ReferencedKeyConstraintDescriptor referencedConstraintDescriptor, boolean isEnabled, int raDeleteRule, int raUpdateRule)(Code)

See Also:   DataDescriptorGenerator.newForeignKeyConstraintDescriptor



newForeignKeyConstraintDescriptor
public ForeignKeyConstraintDescriptor newForeignKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] fkColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, UUID referencedConstraintId, boolean isEnabled, int raDeleteRule, int raUpdateRule)(Code)

See Also:   DataDescriptorGenerator.newForeignKeyConstraintDescriptor



newPrimaryKeyConstraintDescriptor
public ReferencedKeyConstraintDescriptor newPrimaryKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount)(Code)

See Also:   DataDescriptorGenerator.newPrimaryKeyConstraintDescriptor



newRoutinePermsDescriptor
public RoutinePermsDescriptor newRoutinePermsDescriptor(AliasDescriptor ad, String grantor) throws StandardException(Code)
Create a new routine permissions descriptor
Parameters:
  ad - The routine's alias descriptor
Parameters:
  grantor -



newSchemaDescriptor
public SchemaDescriptor newSchemaDescriptor(String schemaName, String aid, UUID oid) throws StandardException(Code)
Create a descriptor for the named schema with a null UUID.
Parameters:
  schemaName - The name of the schema we're interested in.If the name is NULL, get the descriptor for thecurrent schema.
Parameters:
  aid - The authorization ID associated with the schema.The owner of the schema.
Parameters:
  oid - The object ID The descriptor for the schema.
exception:
  StandardException - Thrown on failure



newTableDescriptor
public TableDescriptor newTableDescriptor(String tableName, SchemaDescriptor schema, int tableType, char lockGranularity)(Code)
Create a descriptor for the named table within the given schema. If the schema parameter is NULL, it creates a schema descriptor using the current default schema.
Parameters:
  tableName - The name of the table to get the descriptor for
Parameters:
  schema - The descriptor for the schema the table lives in.If null, use the current (default) schema.
Parameters:
  tableType - The type of the table: base table or view.
Parameters:
  lockGranularity - The lock granularity. The descriptor for the table.



newTableDescriptor
public TableDescriptor newTableDescriptor(String tableName, SchemaDescriptor schema, int tableType, boolean onCommitDeleteRows, boolean onRollbackDeleteRows)(Code)
Create a descriptor for the temporary table within the given schema.
Parameters:
  tableName - The name of the temporary table to get the descriptor for
Parameters:
  schema - The descriptor for the schema the table lives in.
Parameters:
  tableType - The type of the table: 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 The descriptor for the table.



newTablePermsDescriptor
public TablePermsDescriptor newTablePermsDescriptor(TableDescriptor td, String selectPerm, String deletePerm, String insertPerm, String updatePerm, String referencesPerm, String triggerPerm, String grantor) throws StandardException(Code)



newTriggerDescriptor
public TriggerDescriptor newTriggerDescriptor(SchemaDescriptor sd, UUID uuid, String name, int eventMask, boolean isBefore, boolean isRow, boolean isEnabled, TableDescriptor td, UUID whenSPSId, UUID actionSPSId, Timestamp creationTimestamp, int[] referencedCols, String triggerDefinition, boolean referencingOld, boolean referencingNew, String oldReferencingName, String newReferencingName) throws StandardException(Code)
Create a new trigger descriptor.
Parameters:
  sd - the schema descriptor for this trigger
Parameters:
  uuid - the trigger id
Parameters:
  name - the trigger name
Parameters:
  eventMask - TriggerDescriptor.TRIGGER_EVENT_XXXX
Parameters:
  isBefore - is this a before (as opposed to after) trigger
Parameters:
  isRow - is this a row trigger or statement trigger
Parameters:
  isEnabled - is this trigger enabled or disabled
Parameters:
  td - the table upon which this trigger is defined
Parameters:
  whenSPSId - the sps id for the when clause (may be null)
Parameters:
  actionSPSId - the spsid for the trigger action (may be null)
Parameters:
  creationTimestamp - when was this trigger created?
Parameters:
  referencedCols - what columns does this trigger reference (may be null)
Parameters:
  triggerDefinition - The original user text of the trigger action
Parameters:
  referencingOld - whether or not OLD appears in REFERENCING clause
Parameters:
  referencingNew - whether or not NEW appears in REFERENCING clause
Parameters:
  oldReferencingName - old referencing table name, if any, that appears in REFERCING clause
Parameters:
  newReferencingName - new referencing table name, if any, that appears in REFERCING clause
exception:
  StandardException - on error



newUniqueConstraintDescriptor
public ReferencedKeyConstraintDescriptor newUniqueConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount)(Code)

See Also:   DataDescriptorGenerator.newUniqueConstraintDescriptor



newViewDescriptor
public ViewDescriptor newViewDescriptor(UUID viewID, String viewName, String viewText, int checkOption, UUID compSchemaId)(Code)
Create a viewDescriptor for the view with the given UUID.
Parameters:
  viewID - the UUID for the view.
Parameters:
  viewName - the name of the view
Parameters:
  viewText - the text of the view's query.
Parameters:
  checkOption - int for check option type
Parameters:
  compSchemaId - the UUID of the schema this was compiled in A descriptor for the view



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.