java.lang.Object
org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator
- public class DataDescriptorGenerator
- extends java.lang.Object
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
|
Method Summary |
protected org.apache.derby.iapi.services.uuid.UUIDFactory |
getUUIDFactory()
|
CheckConstraintDescriptor |
newCheckConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
org.apache.derby.catalog.UUID constraintId,
java.lang.String constraintText,
int[] refCols,
SchemaDescriptor schemaDesc,
boolean isEnabled)
|
CheckConstraintDescriptor |
newCheckConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
org.apache.derby.catalog.UUID constraintId,
java.lang.String constraintText,
org.apache.derby.catalog.ReferencedColumns referencedColumns,
SchemaDescriptor schemaDesc,
boolean isEnabled)
|
ConglomerateDescriptor |
newConglomerateDescriptor(long conglomerateId,
java.lang.String name,
boolean indexable,
IndexRowGenerator indexRowGenerator,
boolean isConstraint,
org.apache.derby.catalog.UUID uuid,
org.apache.derby.catalog.UUID tableID,
org.apache.derby.catalog.UUID schemaID)
Create a conglomerate descriptor for the given conglomerate id. |
FileInfoDescriptor |
newFileInfoDescriptor(org.apache.derby.catalog.UUID id,
SchemaDescriptor sd,
java.lang.String SQLName,
long generationId)
|
ForeignKeyConstraintDescriptor |
newForeignKeyConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] fkColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
ReferencedKeyConstraintDescriptor referencedConstraintDescriptor,
boolean isEnabled,
int raDeleteRule,
int raUpdateRule)
|
ForeignKeyConstraintDescriptor |
newForeignKeyConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] fkColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
org.apache.derby.catalog.UUID referencedConstraintId,
boolean isEnabled,
int raDeleteRule,
int raUpdateRule)
|
ReferencedKeyConstraintDescriptor |
newPrimaryKeyConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] referencedColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
boolean isEnabled,
int referenceCount)
|
SchemaDescriptor |
newSchemaDescriptor(java.lang.String schemaName,
java.lang.String aid,
org.apache.derby.catalog.UUID oid)
Create a descriptor for the named schema with a null UUID. |
TableDescriptor |
newTableDescriptor(java.lang.String tableName,
SchemaDescriptor schema,
int tableType,
boolean onCommitDeleteRows,
boolean onRollbackDeleteRows)
Create a descriptor for the temporary table within the given schema. |
TableDescriptor |
newTableDescriptor(java.lang.String tableName,
SchemaDescriptor schema,
int tableType,
char lockGranularity)
Create a descriptor for the named table within the given schema. |
TriggerDescriptor |
newTriggerDescriptor(SchemaDescriptor sd,
org.apache.derby.catalog.UUID uuid,
java.lang.String name,
int eventMask,
boolean isBefore,
boolean isRow,
boolean isEnabled,
TableDescriptor td,
org.apache.derby.catalog.UUID whenSPSId,
org.apache.derby.catalog.UUID actionSPSId,
java.sql.Timestamp creationTimestamp,
int[] referencedCols,
java.lang.String triggerDefinition,
boolean referencingOld,
boolean referencingNew,
java.lang.String oldReferencingName,
java.lang.String newReferencingName)
Create a new trigger descriptor. |
ReferencedKeyConstraintDescriptor |
newUniqueConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] referencedColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
boolean isEnabled,
int referenceCount)
|
ViewDescriptor |
newViewDescriptor(org.apache.derby.catalog.UUID viewID,
java.lang.String viewName,
java.lang.String viewText,
int checkOption,
org.apache.derby.catalog.UUID compSchemaId)
Create a viewDescriptor for the view with the given UUID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uuidf
private org.apache.derby.iapi.services.uuid.UUIDFactory uuidf
dataDictionary
protected final DataDictionary dataDictionary
DataDescriptorGenerator
public DataDescriptorGenerator(DataDictionary dataDictionary)
- Make a generator. Specify the data dictionary that it operates on.
newSchemaDescriptor
public SchemaDescriptor newSchemaDescriptor(java.lang.String schemaName,
java.lang.String aid,
org.apache.derby.catalog.UUID oid)
throws org.apache.derby.iapi.error.StandardException
- Create a descriptor for the named schema with a null UUID.
newTableDescriptor
public TableDescriptor newTableDescriptor(java.lang.String tableName,
SchemaDescriptor schema,
int tableType,
char lockGranularity)
- 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.
newTableDescriptor
public TableDescriptor newTableDescriptor(java.lang.String tableName,
SchemaDescriptor schema,
int tableType,
boolean onCommitDeleteRows,
boolean onRollbackDeleteRows)
- Create a descriptor for the temporary table within the given schema.
newViewDescriptor
public ViewDescriptor newViewDescriptor(org.apache.derby.catalog.UUID viewID,
java.lang.String viewName,
java.lang.String viewText,
int checkOption,
org.apache.derby.catalog.UUID compSchemaId)
- Create a viewDescriptor for the view with the given UUID.
newUniqueConstraintDescriptor
public ReferencedKeyConstraintDescriptor newUniqueConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] referencedColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
boolean isEnabled,
int referenceCount)
newPrimaryKeyConstraintDescriptor
public ReferencedKeyConstraintDescriptor newPrimaryKeyConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] referencedColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
boolean isEnabled,
int referenceCount)
newForeignKeyConstraintDescriptor
public ForeignKeyConstraintDescriptor newForeignKeyConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] fkColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
ReferencedKeyConstraintDescriptor referencedConstraintDescriptor,
boolean isEnabled,
int raDeleteRule,
int raUpdateRule)
newForeignKeyConstraintDescriptor
public ForeignKeyConstraintDescriptor newForeignKeyConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] fkColumns,
org.apache.derby.catalog.UUID constraintId,
org.apache.derby.catalog.UUID indexId,
SchemaDescriptor schemaDesc,
org.apache.derby.catalog.UUID referencedConstraintId,
boolean isEnabled,
int raDeleteRule,
int raUpdateRule)
newCheckConstraintDescriptor
public CheckConstraintDescriptor newCheckConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
org.apache.derby.catalog.UUID constraintId,
java.lang.String constraintText,
org.apache.derby.catalog.ReferencedColumns referencedColumns,
SchemaDescriptor schemaDesc,
boolean isEnabled)
newCheckConstraintDescriptor
public CheckConstraintDescriptor newCheckConstraintDescriptor(TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
org.apache.derby.catalog.UUID constraintId,
java.lang.String constraintText,
int[] refCols,
SchemaDescriptor schemaDesc,
boolean isEnabled)
newConglomerateDescriptor
public ConglomerateDescriptor newConglomerateDescriptor(long conglomerateId,
java.lang.String name,
boolean indexable,
IndexRowGenerator indexRowGenerator,
boolean isConstraint,
org.apache.derby.catalog.UUID uuid,
org.apache.derby.catalog.UUID tableID,
org.apache.derby.catalog.UUID schemaID)
- Create a conglomerate descriptor for the given conglomerate id.
newTriggerDescriptor
public TriggerDescriptor newTriggerDescriptor(SchemaDescriptor sd,
org.apache.derby.catalog.UUID uuid,
java.lang.String name,
int eventMask,
boolean isBefore,
boolean isRow,
boolean isEnabled,
TableDescriptor td,
org.apache.derby.catalog.UUID whenSPSId,
org.apache.derby.catalog.UUID actionSPSId,
java.sql.Timestamp creationTimestamp,
int[] referencedCols,
java.lang.String triggerDefinition,
boolean referencingOld,
boolean referencingNew,
java.lang.String oldReferencingName,
java.lang.String newReferencingName)
throws org.apache.derby.iapi.error.StandardException
- Create a new trigger descriptor.
getUUIDFactory
protected org.apache.derby.iapi.services.uuid.UUIDFactory getUUIDFactory()
newFileInfoDescriptor
public FileInfoDescriptor newFileInfoDescriptor(org.apache.derby.catalog.UUID id,
SchemaDescriptor sd,
java.lang.String SQLName,
long generationId)