Top Description Fields Constructors Methods
org.apache.derby.impl.sql.catalog

pack-priv Class SystemColumnImpl

extends Object
implements SystemColumn
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.sql.dictionary.SystemColumn
Imports
java.sql.Types, org.apache.derby.iapi.sql.dictionary.SystemColumn, org.apache.derby.iapi.types.DataTypeDescriptor, .TypeId, org.apache.derby.shared.common.error.StandardException

Implements the description of a column in a system table.
Version
0.1

Field Summary

Modifier and TypeField and Description
private final String
private final DataTypeDescriptor
type

Fully described type of the column.

Constructor Summary

AccessConstructor and Description
private
SystemColumnImpl(String name, DataTypeDescriptor type)

Create a SystemColumnImpl representing the given name and type.

Method Summary

Modifier and TypeMethod and Description
pack-priv static SystemColumn
getColumn(String
name of column
name
,
int
JDBC type id from java.sql.Types
jdbcTypeId
,
boolean
Whether or not column accepts nulls.
nullability
)

Create a system column for a builtin type.

pack-priv static SystemColumn
getColumn(String
name of column
name
,
int
JDBC type id from java.sql.Types
jdbcTypeId
,
boolean
Whether or not column accepts nulls.
nullability
,
int maxLength)

Create a system column for a builtin type.

pack-priv static SystemColumn

Returns:

Object representing the column.
getIdentifierColumn
(String
Name of the column.
name
,
boolean
Nullability of the column.
nullability
)

Create a system column for an identifer with consistent type of VARCHAR(128)

pack-priv static SystemColumn

Returns:

Object representing the column.
getIndicatorColumn
(String
Name of the column.
name
)

Create a system column for a character representation of an indicator column with consistent type of CHAR(1) NOT NULL

pack-priv static SystemColumn

Returns:

Object representing the column.
getJavaColumn
(String
Name of the column.
name
,
String javaClassName, boolean
Nullability of the column.
nullability
)

Create a system column for a java column.

public String

Returns:

The column name.
getName
()

Implements org.apache.derby.iapi.sql.dictionary.SystemColumn.getName.

Gets the name of this column.

public DataTypeDescriptor
getType()

Implements org.apache.derby.iapi.sql.dictionary.SystemColumn.getType.

Return the type of this column.

pack-priv static SystemColumn

Returns:

Object representing the column.
getUUIDColumn
(String
Name of the column.
name
,
boolean
Nullability of the column.
nullability
)

Create a system column for a character representation of a UUID with consistent type of CHAR(36)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
typeback to summary
private final DataTypeDescriptor type

Fully described type of the column.

Constructor Detail

SystemColumnImplback to summary
private SystemColumnImpl(String name, DataTypeDescriptor type)

Create a SystemColumnImpl representing the given name and type.

Method Detail

getColumnback to summary
pack-priv static SystemColumn getColumn(String name, int jdbcTypeId, boolean nullability)

Create a system column for a builtin type.

Parameters
name:String

name of column

jdbcTypeId:int

JDBC type id from java.sql.Types

nullability:boolean

Whether or not column accepts nulls.

getColumnback to summary
pack-priv static SystemColumn getColumn(String name, int jdbcTypeId, boolean nullability, int maxLength)

Create a system column for a builtin type.

Parameters
name:String

name of column

jdbcTypeId:int

JDBC type id from java.sql.Types

nullability:boolean

Whether or not column accepts nulls.

getIdentifierColumnback to summary
pack-priv static SystemColumn getIdentifierColumn(String name, boolean nullability)

Create a system column for an identifer with consistent type of VARCHAR(128)

Parameters
name:String

Name of the column.

nullability:boolean

Nullability of the column.

Returns:SystemColumn

Object representing the column.

getIndicatorColumnback to summary
pack-priv 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

Parameters
name:String

Name of the column.

Returns:SystemColumn

Object representing the column.

getJavaColumnback to summary
pack-priv static SystemColumn getJavaColumn(String name, String javaClassName, boolean nullability) throws StandardException

Create a system column for a java column.

Parameters
name:String

Name of the column.

nullability:boolean

Nullability of the column.

Returns:SystemColumn

Object representing the column.

getNameback to summary
public String getName()

Implements org.apache.derby.iapi.sql.dictionary.SystemColumn.getName.

Gets the name of this column.

Returns:String

The column name.

getTypeback to summary
public DataTypeDescriptor getType()

Implements org.apache.derby.iapi.sql.dictionary.SystemColumn.getType.

Return the type of this column.

getUUIDColumnback to summary
pack-priv static SystemColumn getUUIDColumn(String name, boolean nullability)

Create a system column for a character representation of a UUID with consistent type of CHAR(36)

Parameters
name:String

Name of the column.

nullability:boolean

Nullability of the column.

Returns:SystemColumn

Object representing the column.