Class SystemColumnImpl
java.lang.Object
org.apache.derby.impl.sql.catalog.SystemColumnImpl
- All Implemented Interfaces:
SystemColumn
Implements the description of a column in a system table.
- Version:
- 0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final DataTypeDescriptor
Fully described type of the column. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SystemColumnImpl
(String name, DataTypeDescriptor type) Create a SystemColumnImpl representing the given name and type. -
Method Summary
Modifier and TypeMethodDescription(package private) static SystemColumn
Create a system column for a builtin type.(package private) static SystemColumn
Create a system column for a builtin type.(package private) static SystemColumn
getIdentifierColumn
(String name, boolean nullability) Create a system column for an identifer with consistent type of VARCHAR(128)(package private) static SystemColumn
getIndicatorColumn
(String name) Create a system column for a character representation of an indicator column with consistent type of CHAR(1) NOT NULL(package private) static SystemColumn
getJavaColumn
(String name, String javaClassName, boolean nullability) Create a system column for a java column.getName()
Gets the name of this column.getType()
Return the type of this column.(package private) static SystemColumn
getUUIDColumn
(String name, boolean nullability) Create a system column for a character representation of a UUID with consistent type of CHAR(36)
-
Field Details
-
name
-
type
Fully described type of the column.
-
-
Constructor Details
-
SystemColumnImpl
Create a SystemColumnImpl representing the given name and type.
-
-
Method Details
-
getColumn
Create a system column for a builtin type.- Parameters:
name
- name of columnjdbcTypeId
- JDBC type id from java.sql.Typesnullability
- Whether or not column accepts nulls.
-
getColumn
Create a system column for a builtin type.- Parameters:
name
- name of columnjdbcTypeId
- JDBC type id from java.sql.Typesnullability
- Whether or not column accepts nulls.
-
getIdentifierColumn
Create a system column for an identifer with consistent type of VARCHAR(128)- Parameters:
name
- Name of the column.nullability
- Nullability of the column.- Returns:
- Object representing the column.
-
getUUIDColumn
Create a system column for a character representation of a UUID with consistent type of CHAR(36)- Parameters:
name
- Name of the column.nullability
- Nullability of the column.- Returns:
- Object representing the column.
-
getIndicatorColumn
Create a system column for a character representation of an indicator column with consistent type of CHAR(1) NOT NULL- Parameters:
name
- Name of the column.- Returns:
- Object representing the column.
-
getJavaColumn
static SystemColumn getJavaColumn(String name, String javaClassName, boolean nullability) throws StandardException Create a system column for a java column.- Parameters:
name
- Name of the column.javaClassName
-nullability
- Nullability of the column.- Returns:
- Object representing the column.
- Throws:
StandardException
-
getName
Gets the name of this column.- Specified by:
getName
in interfaceSystemColumn
- Returns:
- The column name.
-
getType
Return the type of this column.- Specified by:
getType
in interfaceSystemColumn
-