Class SystemColumnImpl

java.lang.Object
org.apache.derby.impl.sql.catalog.SystemColumnImpl
All Implemented Interfaces:
SystemColumn

class SystemColumnImpl extends Object implements SystemColumn
Implements the description of a column in a system table.
Version:
0.1
  • Field Details

  • Constructor Details

    • SystemColumnImpl

      private SystemColumnImpl(String name, DataTypeDescriptor type)
      Create a SystemColumnImpl representing the given name and type.
  • Method Details

    • getColumn

      static SystemColumn getColumn(String name, int jdbcTypeId, boolean nullability)
      Create a system column for a builtin type.
      Parameters:
      name - name of column
      jdbcTypeId - JDBC type id from java.sql.Types
      nullability - Whether or not column accepts nulls.
    • getColumn

      static SystemColumn getColumn(String name, int jdbcTypeId, boolean nullability, int maxLength)
      Create a system column for a builtin type.
      Parameters:
      name - name of column
      jdbcTypeId - JDBC type id from java.sql.Types
      nullability - Whether or not column accepts nulls.
    • getIdentifierColumn

      static SystemColumn getIdentifierColumn(String name, boolean nullability)
      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

      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 - Name of the column.
      nullability - Nullability of the column.
      Returns:
      Object representing the column.
    • getIndicatorColumn

      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 - 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

      public String getName()
      Gets the name of this column.
      Specified by:
      getName in interface SystemColumn
      Returns:
      The column name.
    • getType

      public DataTypeDescriptor getType()
      Return the type of this column.
      Specified by:
      getType in interface SystemColumn