public class DataTableColumnDef extends Object
Modifier and Type | Field and Description |
---|---|
TType |
type
The TType object for this column.
|
Constructor and Description |
---|
DataTableColumnDef()
Constructs the column definition.
|
DataTableColumnDef(DataTableColumnDef column_def)
Creates a copy of the given column definition.
|
Modifier and Type | Method and Description |
---|---|
Class |
classType()
Returns the Class of Java object that represents this column.
|
ColumnDescription |
columnDescriptionValue(String column_name)
Returns this column as a ColumnDescription object and gives the column
description the given name.
|
static DataTableColumnDef |
createBinaryColumn(String name)
Convenience helper - creates a DataTableColumnDef that
holds a binary value.
|
static DataTableColumnDef |
createBooleanColumn(String name)
Convenience helper - creates a DataTableColumnDef that
holds a boolean value.
|
static DataTableColumnDef |
createNumericColumn(String name)
Convenience helper - creates a DataTableColumnDef that
holds a numeric value.
|
static DataTableColumnDef |
createStringColumn(String name)
Convenience helper - creates a DataTableColumnDef that
holds a string value.
|
void |
dump(PrintStream out)
Dumps information about this object to the PrintStream.
|
String |
getClassConstraint()
If this column represents a Java Object, this returns the name of the
class the objects stored in the column must be derived from.
|
Class |
getClassConstraintAsClass()
If this column represents a Java Object, this returns the class object
that is the constraining class for the column.
|
int |
getDBType() |
String |
getDBTypeString()
Returns the type as a String.
|
int |
getDecomposition() |
Expression |
getDefaultExpression(TransactionSystem system) |
String |
getDefaultExpressionString() |
String |
getForeignKey()
Deprecated.
|
String |
getIndexScheme()
Returns the name of the scheme we use to index this column.
|
String |
getLocaleString() |
String |
getName() |
int |
getScale() |
int |
getSize() |
int |
getSQLType() |
String |
getSQLTypeString()
Returns the type as a String.
|
int |
getStrength() |
TType |
getTType()
Returns the TType for this column.
|
void |
initTTypeInfo()
Initializes the TType information for a column.
|
boolean |
isIndexableType()
Returns true if this type of column is able to be indexed.
|
boolean |
isNotNull() |
void |
setClassConstraint(String class_constraint)
If this column represents a Java object, this must be a class the object
is derived from to be added to this column.
|
void |
setDBType(int db_type) |
void |
setDefaultExpression(Expression expression) |
void |
setForeignKey(String foreign_key)
Deprecated.
|
void |
setFromTType(TType type)
Sets this DataTableColumnDef object up from information in the TType
object.
|
void |
setIndexScheme(String index_scheme)
Sets the indexing scheme for this column.
|
void |
setName(String name) |
void |
setNotNull(boolean status) |
void |
setScale(int scale) |
void |
setSize(int size) |
void |
setSQLType(int sql_type) |
void |
setStringLocale(String locale_str,
int strength,
int decomposition) |
static String |
sqlTypeToString(int sql_type)
Returns a string that represents the given SQLType enumeration passed
to it.
|
public TType type
public DataTableColumnDef()
public DataTableColumnDef(DataTableColumnDef column_def)
public void setName(String name)
public void setNotNull(boolean status)
public void setSQLType(int sql_type)
public void setDBType(int db_type)
public void setSize(int size)
public void setScale(int scale)
public void setStringLocale(String locale_str, int strength, int decomposition)
public void setDefaultExpression(Expression expression)
public void setForeignKey(String foreign_key)
public void setIndexScheme(String index_scheme)
public void setClassConstraint(String class_constraint)
public void setFromTType(TType type)
public void initTTypeInfo()
public String getName()
public boolean isNotNull()
public int getSQLType()
public String getSQLTypeString()
public String getDBTypeString()
public Class classType()
public int getDBType()
public int getSize()
public int getScale()
public String getLocaleString()
public int getStrength()
public int getDecomposition()
public Expression getDefaultExpression(TransactionSystem system)
public String getDefaultExpressionString()
public String getForeignKey()
public String getIndexScheme()
public boolean isIndexableType()
public String getClassConstraint()
public Class getClassConstraintAsClass()
public TType getTType()
public ColumnDescription columnDescriptionValue(String column_name)
public void dump(PrintStream out)
public static String sqlTypeToString(int sql_type)
public static DataTableColumnDef createNumericColumn(String name)
public static DataTableColumnDef createBooleanColumn(String name)
public static DataTableColumnDef createStringColumn(String name)
public static DataTableColumnDef createBinaryColumn(String name)
Copyright © 2015. All rights reserved.