org.apache.derby.impl.sql.catalog
Class SystemColumnImpl

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

public class SystemColumnImpl
extends java.lang.Object
implements SystemColumn

Implements the description of a column in a system table.

Version:
0.1
Author:
Rick Hillegas

Field Summary
private  boolean builtInType
           
private  java.lang.String dataType
           
private  int id
           
private  int maxLength
           
private  java.lang.String name
           
private  boolean nullability
           
private  int precision
           
private  int scale
           
 
Constructor Summary
SystemColumnImpl(java.lang.String name, int id, boolean nullability)
          Constructor to create a description of a column in a system table.
SystemColumnImpl(java.lang.String name, int id, int precision, int scale, boolean nullability, java.lang.String dataType, boolean builtInType, int maxLength)
          Constructor to create a description of a column in a system table.
 
Method Summary
 boolean builtInType()
          Is it a built-in type?
 java.lang.String getDataType()
          Gets the datatype of this column.
 int getID()
          Gets the id of this column.
 int getMaxLength()
          Gets the maximum length of this column.
 java.lang.String getName()
          Gets the name of this column.
 boolean getNullability()
          Gets the nullability of this column.
 int getPrecision()
          Gets the precision of this column.
 int getScale()
          Gets the scale of this column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

id

private int id

precision

private int precision

scale

private int scale

nullability

private boolean nullability

dataType

private java.lang.String dataType

builtInType

private boolean builtInType

maxLength

private int maxLength
Constructor Detail

SystemColumnImpl

public SystemColumnImpl(java.lang.String name,
                        int id,
                        int precision,
                        int scale,
                        boolean nullability,
                        java.lang.String dataType,
                        boolean builtInType,
                        int maxLength)
Constructor to create a description of a column in a system table.


SystemColumnImpl

public SystemColumnImpl(java.lang.String name,
                        int id,
                        boolean nullability)
Constructor to create a description of a column in a system table. This constructor is used for SQL Identifiers (varchar 128).

Method Detail

getName

public java.lang.String getName()
Gets the name of this column.

Specified by:
getName in interface SystemColumn
Returns:
The column name.

getID

public int getID()
Gets the id of this column.

Specified by:
getID in interface SystemColumn
Returns:
The column id.

getPrecision

public int getPrecision()
Gets the precision of this column.

Specified by:
getPrecision in interface SystemColumn
Returns:
The precision of data stored in this column.

getScale

public int getScale()
Gets the scale of this column.

Specified by:
getScale in interface SystemColumn
Returns:
The scale of data stored in this column.

getNullability

public boolean getNullability()
Gets the nullability of this column.

Specified by:
getNullability in interface SystemColumn
Returns:
True if this column is nullable. False otherwise.

getDataType

public java.lang.String getDataType()
Gets the datatype of this column.

Specified by:
getDataType in interface SystemColumn
Returns:
The datatype of this column.

builtInType

public boolean builtInType()
Is it a built-in type?

Specified by:
builtInType in interface SystemColumn
Returns:
True if it's a built-in type.

getMaxLength

public int getMaxLength()
Gets the maximum length of this column.

Specified by:
getMaxLength in interface SystemColumn
Returns:
The maximum length of data stored in this column.

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.