| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| private boolean | |
| private long | |
| private long | |
| private long | |
| private DataValueDescriptor | |
| private DefaultInfo | |
| private String | |
| private int | |
| private DataTypeDescriptor | |
| private UUID | |
| private TableDescriptor | |
| private UUID |
| Access | Constructor and Description |
|---|---|
| public | ColumnDescriptor(String
The name of the column columnName, int The ordinal position of the column columnPosition, DataTypeDescriptor A DataTypeDescriptor for the type of
the column columnType, DataValueDescriptor A DataValueDescriptor representing the
default value of the column, if any
(null if no default) columnDefault, DefaultInfo The default info for the column. columnDefaultInfo, TableDescriptor A TableDescriptor for the table the
column is in table, UUID The UUID for the default, if any. defaultUUID, long Start value for an autoincrement column. autoincStart, long Increment for autoincrement column autoincInc, long Adding an autoincrement column OR
changing increment value or start value of
the autoincrement column. userChangedWhat, boolean autoincCycle)Constructor for a ColumnDescriptor when the column involved is an autoincrement column. |
| public | ColumnDescriptor(String
The name of the column columnName, int The ordinal position of the column columnPosition, DataTypeDescriptor A DataTypeDescriptor for the type of
the column columnType, DataValueDescriptor A DataValueDescriptor representing the
default value of the column, if any
(null if no default) columnDefault, DefaultInfo The default info for the column. columnDefaultInfo, TableDescriptor A TableDescriptor for the table the
column is in table, UUID The UUID for the default, if any. defaultUUID, long Start value for an autoincrement column. autoincStart, long Increment for autoincrement column autoincInc, boolean autoincCycle)Constructor for a ColumnDescriptor |
| public | ColumnDescriptor(String
The name of the column columnName, int The ordinal position of the column columnPosition, DataTypeDescriptor A DataTypeDescriptor for the type of
the column columnType, DataValueDescriptor A DataValueDescriptor representing the
default value of the column, if any
(null if no default) columnDefault, DefaultInfo The default info for the column. columnDefaultInfo, UUID A uuid for the object that this column
is in. uuid, UUID The UUID for the default, if any. defaultUUID, long Start value for an autoincrement column. autoincStart, long Increment for autoincrement column autoincInc, long Current value of the autoincrement column autoincValue, boolean autoincCycle)Constructor for a ColumnDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public long | |
| public boolean | |
| public long | Returns: the Increment value for an autoincrement columnGet the Increment value given by the user for an autoincrement column |
| public long | Returns: Get the start value of an autoincrement columnGet the start value of an autoincrement column |
| public long | Returns: the current value for an autoincrement columnGet the current value for an autoincrement column. |
| public String | |
| public DefaultDescriptor | Returns: A DefaultDescriptor if this column has a column default.The DataDictionary. dd)Get a DefaultDescriptor for the default, if any, associated with this column. |
| public DefaultInfo | Returns: The DefaultInfo for this ColumnDescriptor.Get the DefaultInfo for this ColumnDescriptor. |
| public UUID | Returns: The UUID for the column default, if any.Get the UUID for the column default, if any. |
| public DataValueDescriptor | Returns: An object with the value and type of the default value for the column. Returns NULL if there is no default.Get the default value for the column. |
| public String | |
| public String | getDescriptorType()
Overrides org. Each descriptor must identify itself with its type; i.e index, check constraint whatever. |
| public int | Returns: The ordinal position of the column.Get the ordinal position of the column (1 based) |
| public UUID | Returns: The UUID of the table the column is a part of.Get the UUID of the object the column is a part of. |
| public TableDescriptor | Returns: The TableDescriptor of the column's table.Get the TableDescriptor of the column's table. |
| public DataTypeDescriptor | Returns: The TypeDescriptor of the column's datatype.Get the TypeDescriptor of the column's datatype. |
| public boolean | |
| public boolean | Returns: Whether or not there is a non-null default on this column.Return whether or not there is a non-null default on this column. |
| public boolean | |
| public boolean | Returns: Whether or not this is an autoincrement columnIs this column an autoincrement column? |
| public void | |
| public void | setColumnName(String
The new column name. newColumnName)Sets the column name in case of rename column. |
| public void | |
| public void | setTableDescriptor(TableDescriptor
The table descriptor for this column tableDescriptor)Sets the table descriptor for the column. |
| public String | Returns: A String representation of this ColumnDescriptorOverrides java. Convert the ColumnDescriptor to a String. |
| public boolean |
| autoinc_create_or_modify_Start_Increment | back to summary |
|---|---|
| pack-priv long autoinc_create_or_modify_Start_Increment | |
| autoincCycle | back to summary |
|---|---|
| private boolean autoincCycle | |
| autoincInc | back to summary |
|---|---|
| private long autoincInc | |
| autoincStart | back to summary |
|---|---|
| private long autoincStart | |
| autoincValue | back to summary |
|---|---|
| private long autoincValue | |
| columnDefault | back to summary |
|---|---|
| private DataValueDescriptor columnDefault | |
| columnDefaultInfo | back to summary |
|---|---|
| private DefaultInfo columnDefaultInfo | |
| columnName | back to summary |
|---|---|
| private String columnName | |
| columnPosition | back to summary |
|---|---|
| private int columnPosition | |
| columnType | back to summary |
|---|---|
| private DataTypeDescriptor columnType | |
| defaultUUID | back to summary |
|---|---|
| private UUID defaultUUID | |
| table | back to summary |
|---|---|
| private TableDescriptor table | |
| uuid | back to summary |
|---|---|
| private UUID uuid | |
| ColumnDescriptor | back to summary |
|---|---|
| public ColumnDescriptor(String columnName, int columnPosition, DataTypeDescriptor columnType, DataValueDescriptor columnDefault, DefaultInfo columnDefaultInfo, TableDescriptor table, UUID defaultUUID, long autoincStart, long autoincInc, long userChangedWhat, boolean autoincCycle) Constructor for a ColumnDescriptor when the column involved is an autoincrement column. The last parameter to this method indicates if an autoincrement column is getting added or if the autoincrement column is being modified to change the increment value or to change the start value
| |
| ColumnDescriptor | back to summary |
|---|---|
| public ColumnDescriptor(String columnName, int columnPosition, DataTypeDescriptor columnType, DataValueDescriptor columnDefault, DefaultInfo columnDefaultInfo, TableDescriptor table, UUID defaultUUID, long autoincStart, long autoincInc, boolean autoincCycle) Constructor for a ColumnDescriptor
| |
| ColumnDescriptor | back to summary |
|---|---|
| public ColumnDescriptor(String columnName, int columnPosition, DataTypeDescriptor columnType, DataValueDescriptor columnDefault, DefaultInfo columnDefaultInfo, UUID uuid, UUID defaultUUID, long autoincStart, long autoincInc, long autoincValue, boolean autoincCycle) Constructor for a ColumnDescriptor. Used when columnDescriptor doesn't know/care about a table descriptor.
| |
| assertAutoinc | back to summary |
|---|---|
| private static void assertAutoinc(boolean autoinc, long autoincInc, DefaultInfo defaultInfo) | |
| getAutoinc_create_or_modify_Start_Increment | back to summary |
|---|---|
| public long getAutoinc_create_or_modify_Start_Increment() | |
| getAutoincCycle | back to summary |
|---|---|
| public boolean getAutoincCycle() | |
| getAutoincInc | back to summary |
|---|---|
| public long getAutoincInc() Get the Increment value given by the user for an autoincrement column
| |
| getAutoincStart | back to summary |
|---|---|
| public long getAutoincStart() Get the start value of an autoincrement column
| |
| getAutoincValue | back to summary |
|---|---|
| public long getAutoincValue() Get the current value for an autoincrement column. One case in which this is used involves dropping a column from a table. When ALTER TABLE DROP COLUMN runs, it drops the column from SYSCOLUMNS, and then must adjust the column positions of the other subsequent columns in the table to account for the removal of the dropped columns. This involves deleting and re-adding the column descriptors to SYSCOLUMNS, but during that process we must be careful to preserve the current value of any autoincrement column.
| |
| getColumnName | back to summary |
|---|---|
| public String getColumnName() Get the name of the column.
| |
| getDefaultDescriptor | back to summary |
|---|---|
| public DefaultDescriptor getDefaultDescriptor(DataDictionary dd) Get a DefaultDescriptor for the default, if any, associated with this column.
| |
| getDefaultInfo | back to summary |
|---|---|
| public DefaultInfo getDefaultInfo() Get the DefaultInfo for this ColumnDescriptor.
| |
| getDefaultUUID | back to summary |
|---|---|
| public UUID getDefaultUUID() Get the UUID for the column default, if any.
| |
| getDefaultValue | back to summary |
|---|---|
| public DataValueDescriptor getDefaultValue() Get the default value for the column. For columns with primitive types, the object returned will be of the corresponding object type. For example, for a float column, getDefaultValue() will return a Float.
| |
| getDescriptorName | back to summary |
|---|---|
| public String getDescriptorName() Overrides org.
| |
| getDescriptorType | back to summary |
|---|---|
| public String getDescriptorType() Overrides org. Doc from org. Each descriptor must identify itself with its type; i.e index, check constraint whatever.
| |
| getPosition | back to summary |
|---|---|
| public int getPosition() Get the ordinal position of the column (1 based)
| |
| getReferencingUUID | back to summary |
|---|---|
| public UUID getReferencingUUID() Get the UUID of the object the column is a part of.
| |
| getTableDescriptor | back to summary |
|---|---|
| public TableDescriptor getTableDescriptor() Get the TableDescriptor of the column's table.
| |
| getType | back to summary |
|---|---|
| public DataTypeDescriptor getType() Get the TypeDescriptor of the column's datatype.
| |
| hasGenerationClause | back to summary |
|---|---|
| public boolean hasGenerationClause() Is this column a generated column | |
| hasNonNullDefault | back to summary |
|---|---|
| public boolean hasNonNullDefault() Return whether or not there is a non-null default on this column.
| |
| isAutoincAlways | back to summary |
|---|---|
| public boolean isAutoincAlways() Is this column to have autoincremented value always ? | |
| isAutoincrement | back to summary |
|---|---|
| public boolean isAutoincrement() Is this column an autoincrement column?
| |
| setAutoinc_create_or_modify_Start_Increment | back to summary |
|---|---|
| public void setAutoinc_create_or_modify_Start_Increment(int c_or_m) | |
| setColumnName | back to summary |
|---|---|
| public void setColumnName(String newColumnName) Sets the column name in case of rename column.
| |
| setPosition | back to summary |
|---|---|
| public void setPosition(int columnPosition) Set the ordinal position of the column. | |
| setTableDescriptor | back to summary |
|---|---|
| public void setTableDescriptor(TableDescriptor tableDescriptor) Sets the table descriptor for the column.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert the ColumnDescriptor to a String.
| |
| updatableByCursor | back to summary |
|---|---|
| public boolean updatableByCursor() | |