| Modifier and Type | Field and Description |
|---|---|
| protected final DataDictionary | |
| private UUIDFactory |
| Access | Constructor and Description |
|---|---|
| public | DataDescriptorGenerator(DataDictionary
the data dictionary that this generator makes objects for dataDictionary)Make a generator. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ModuleFactory | |
| protected UUIDFactory | |
| public CheckConstraintDescriptor | newCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, ReferencedColumns referencedColumns, SchemaDescriptor schemaDesc, boolean isEnabled)
|
| public CheckConstraintDescriptor | newCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, int[] refCols, SchemaDescriptor schemaDesc, boolean isEnabled)
|
| public ColPermsDescriptor | newColPermsDescriptor(TableDescriptor
The descriptor of the table. td, String The action type:
type, FormatableBitSet
the set of columns columns, String grantor)Manufacture a new ColPermsDescriptor. |
| public ConglomerateDescriptor | Returns: A ConglomerateDescriptor describing the conglomerate.The identifier for the conglomerate
we're interested in conglomerateId, String The name of the conglomerate, if any name, boolean TRUE means the conglomerate is indexable,
FALSE means it isn't indexable, IndexRowGenerator The IndexRowGenerator for the conglomerate,
null if it's a heap indexRowGenerator, boolean TRUE means the conglomerate is an index backing
up a constraint, FALSE means it isn't isConstraint, UUID UUID for this conglomerate uuid, UUID UUID for the table that this conglomerate belongs to tableID, UUID UUID for the schema that conglomerate belongs to schemaID)Create a conglomerate descriptor for the given conglomerate id. |
| public FileInfoDescriptor | Returns: the newly created file info descriptorCreate a new |
| 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)
|
| 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)
|
| public PermDescriptor | |
| public ReferencedKeyConstraintDescriptor | newPrimaryKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount)
|
| public RoleGrantDescriptor | newRoleGrantDescriptor(UUID
unique identifier for this role grant descriptor in
time and space uuid, String the name of the role for which a new descriptor
is created roleName, String authorization identifier of grantee grantee, String authorization identifier of grantor grantor, boolean if true, WITH ADMIN OPTION is set for
this descriptor withadminoption, boolean if true, this descriptor represents a role
definition, otherwise it represents a grant. isDef)Create a new role grant descriptor |
| public RoutinePermsDescriptor | newRoutinePermsDescriptor(AliasDescriptor
The routine's alias descriptor ad, String grantor)Create a new routine permissions descriptor |
| public SchemaDescriptor | Returns: The descriptor for the schema.The name of the schema we're interested in.
If the name is NULL, get the descriptor for the
current schema. schemaName, String The authorization ID associated with the schema.
The owner of the schema. aid, UUID The object ID oid)Create a descriptor for the named schema with a null UUID. |
| public SequenceDescriptor | Returns: SequenceDescriptorCreate a new sequence descriptor |
| public TableDescriptor | Returns: The descriptor for the table.The name of the table to get the descriptor for tableName, SchemaDescriptor The descriptor for the schema the table lives in.
If null, use the current (default) schema. schema, int The type of the table: base table or view. tableType, char The lock granularity. lockGranularity)Create a descriptor for the named table within the given schema. |
| public TableDescriptor | Returns: The descriptor for the table.The name of the temporary table to get the descriptor for tableName, SchemaDescriptor The descriptor for the schema the table lives in. schema, int The type of the table: temporary table tableType, boolean If true, on commit delete rows else on commit preserve rows of temporary table. onCommitDeleteRows, boolean If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported value onRollbackDeleteRows)Create a descriptor for the temporary table within the given schema. |
| public TablePermsDescriptor | newTablePermsDescriptor(TableDescriptor td, String selectPerm, String deletePerm, String insertPerm, String updatePerm, String referencesPerm, String triggerPerm, String grantor)
|
| public TriggerDescriptor | Returns: a trigger descriptorthe schema descriptor for this trigger sd, UUID the trigger id uuid, String the trigger name name, int TriggerDescriptor.TRIGGER_EVENT_XXXX eventMask, boolean is this a before (as opposed to after) trigger isBefore, boolean is this a row trigger or statement trigger isRow, boolean is this trigger enabled or disabled isEnabled, TableDescriptor the table upon which this trigger is defined td, UUID the sps id for the when clause (may be null) whenSPSId, UUID the spsid for the trigger action (may be null) actionSPSId, Timestamp when was this trigger created? creationTimestamp, int[] what columns does this trigger reference (may be null) referencedCols, int[] what columns does the trigger
action reference through old/new transition variables
(may be null) referencedColsInTriggerAction, String The original user text of the trigger action triggerDefinition, boolean whether or not OLD appears in REFERENCING clause referencingOld, boolean whether or not NEW appears in REFERENCING clause referencingNew, String old referencing table name, if any, that appears in REFERCING clause oldReferencingName, String new referencing table name, if any, that appears in REFERCING clause newReferencingName, String the SQL text of the WHEN clause (may be null) whenClauseText)Create a new trigger descriptor. |
| public ReferencedKeyConstraintDescriptor | newUniqueConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount)
|
| public UserDescriptor | |
| public ViewDescriptor | Returns: A descriptor for the viewthe UUID for the view. viewID, String the name of the view viewName, String the text of the view's query. viewText, int int for check option type checkOption, UUID the UUID of the schema this was compiled in compSchemaId)Create a viewDescriptor for the view with the given UUID. |
| dataDictionary | back to summary |
|---|---|
| protected final DataDictionary dataDictionary | |
| uuidf | back to summary |
|---|---|
| private UUIDFactory uuidf | |
| DataDescriptorGenerator | back to summary |
|---|---|
| public DataDescriptorGenerator(DataDictionary dataDictionary) Make a generator. Specify the data dictionary that it operates on.
| |
| getMonitor | back to summary |
|---|---|
| pack-priv static ModuleFactory getMonitor() Must be package private so that user code can't call this entry point. | |
| getUUIDFactory | back to summary |
|---|---|
| protected UUIDFactory getUUIDFactory() | |
| newCheckConstraintDescriptor | back to summary |
|---|---|
| public CheckConstraintDescriptor newCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, ReferencedColumns referencedColumns, SchemaDescriptor schemaDesc, boolean isEnabled) | |
| newCheckConstraintDescriptor | back to summary |
|---|---|
| public CheckConstraintDescriptor newCheckConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, String constraintText, int[] refCols, SchemaDescriptor schemaDesc, boolean isEnabled) | |
| newColPermsDescriptor | back to summary |
|---|---|
| public ColPermsDescriptor newColPermsDescriptor(TableDescriptor td, String type, FormatableBitSet columns, String grantor) throws StandardException Manufacture a new ColPermsDescriptor.
| |
| newConglomerateDescriptor | back to summary |
|---|---|
| public ConglomerateDescriptor newConglomerateDescriptor(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.
| |
| newFileInfoDescriptor | back to summary |
|---|---|
| public FileInfoDescriptor newFileInfoDescriptor(UUID id, SchemaDescriptor sd, String sqlName, long generationId) Create a new
| |
| newForeignKeyConstraintDescriptor | back to summary |
|---|---|
| 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) | |
| newForeignKeyConstraintDescriptor | back to summary |
|---|---|
| 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) | |
| newPermDescriptor | back to summary |
|---|---|
| public PermDescriptor newPermDescriptor(UUID uuid, String objectType, UUID permObjectId, String permission, String grantor, String grantee, boolean grantable) | |
| newPrimaryKeyConstraintDescriptor | back to summary |
|---|---|
| public ReferencedKeyConstraintDescriptor newPrimaryKeyConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount) | |
| newRoleGrantDescriptor | back to summary |
|---|---|
| public RoleGrantDescriptor newRoleGrantDescriptor(UUID uuid, String roleName, String grantee, String grantor, boolean withadminoption, boolean isDef) throws StandardException Create a new role grant descriptor
| |
| newRoutinePermsDescriptor | back to summary |
|---|---|
| public RoutinePermsDescriptor newRoutinePermsDescriptor(AliasDescriptor ad, String grantor) throws StandardException Create a new routine permissions descriptor
| |
| newSchemaDescriptor | back to summary |
|---|---|
| public SchemaDescriptor newSchemaDescriptor(String schemaName, String aid, UUID oid) throws StandardException Create a descriptor for the named schema with a null UUID.
| |
| newSequenceDescriptor | back to summary |
|---|---|
| public SequenceDescriptor newSequenceDescriptor(SchemaDescriptor sd, UUID uuid, String sequenceName, DataTypeDescriptor dataType, Long currentValue, long startValue, long minimumValue, long maximumValue, long increment, boolean cycle) Create a new sequence descriptor
| |
| newTableDescriptor | back to summary |
|---|---|
| public TableDescriptor newTableDescriptor(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 | back to summary |
|---|---|
| public TableDescriptor newTableDescriptor(String tableName, SchemaDescriptor schema, int tableType, boolean onCommitDeleteRows, boolean onRollbackDeleteRows) Create a descriptor for the temporary table within the given schema.
| |
| newTablePermsDescriptor | back to summary |
|---|---|
| public TablePermsDescriptor newTablePermsDescriptor(TableDescriptor td, String selectPerm, String deletePerm, String insertPerm, String updatePerm, String referencesPerm, String triggerPerm, String grantor) throws StandardException | |
| newTriggerDescriptor | back to summary |
|---|---|
| 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, int[] referencedColsInTriggerAction, String triggerDefinition, boolean referencingOld, boolean referencingNew, String oldReferencingName, String newReferencingName, String whenClauseText) throws StandardException Create a new trigger descriptor.
| |
| newUniqueConstraintDescriptor | back to summary |
|---|---|
| public ReferencedKeyConstraintDescriptor newUniqueConstraintDescriptor(TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled, int referenceCount) | |
| newUserDescriptor | back to summary |
|---|---|
| public UserDescriptor newUserDescriptor(String userName, String hashingScheme, char[] password, Timestamp lastModified) | |
| newViewDescriptor | back to summary |
|---|---|
| public ViewDescriptor newViewDescriptor(UUID viewID, String viewName, String viewText, int checkOption, UUID compSchemaId) Create a viewDescriptor for the view with the given UUID.
| |