public class JdbcTableColumn extends Bean
Modifier and Type | Field and Description |
---|---|
static Comparator<JdbcTableColumn> |
NAME_COMPARATOR |
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
JdbcTableColumn() |
Modifier and Type | Method and Description |
---|---|
JdbcTableColumn |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
int |
getByteCount() |
String |
getClassName() |
String |
getDatabaseTypeName() |
int |
getDecimals() |
String |
getDefaultValue() |
String |
getGetterMethod() |
int |
getIndex()
Index of column in table (starting at 1).
|
Class<?> |
getJavaType() |
String |
getMethodSuffix() |
String |
getName() |
String |
getNameAsJavaClassName() |
String |
getNameAsJavaIdentifier() |
Integer |
getPrimaryKeySequence()
Starting at 1.
|
int |
getRadix() |
String |
getRemarks() |
Integer |
getRowIdentifierSequence() |
String |
getSetterMethod() |
int |
getSize() |
int |
getSqlTypeIndex()
SQL type from
Types |
JdbcTable |
getTable() |
boolean |
isApproximateNumber()
Returns
true if values of this type are numbers that do not contain exact quantities (DOUBLE, FLOAT, or REAL). |
boolean |
isAutoIncrement() |
boolean |
isBinarySqlType() |
boolean |
isBooleanSqlType() |
boolean |
isExactNumber()
Returns
true if values of this type are numbers that contain exact quantities (BIGINT, DECIMAL, INTEGER, NUMERIC, SMALLINT, TINYINT, SMALLINT). |
boolean |
isGenerated() |
boolean |
isIntegerNumber()
Returns
true if columns of this type are numbers that cannot contain fractions (byte, short, int, etc.). |
boolean |
isNullable() |
boolean |
isNumericSqlType() |
boolean |
isPrimaryKey() |
boolean |
isPseudo() |
boolean |
isRealNumber()
Returns
true if columns of this type are numbers that can contain fractions. |
boolean |
isRowIdentifier() |
boolean |
isSigned() |
boolean |
isTemporalSqlType() |
boolean |
isTextSqlType() |
JdbcTableColumn |
setAutoIncrement(boolean autoIncrement) |
JdbcTableColumn |
setByteCount(int byteCount) |
JdbcTableColumn |
setClassName(String className) |
JdbcTableColumn |
setDatabaseTypeName(String databaseTypeName) |
JdbcTableColumn |
setDecimals(int decimals) |
JdbcTableColumn |
setDefaultValue(String defaultValue) |
JdbcTableColumn |
setGenerated(boolean generated) |
JdbcTableColumn |
setIndex(int index)
Index of column in table (starting at 1).
|
JdbcTableColumn |
setJavaType(Class<?> javaType) |
JdbcTableColumn |
setName(String name) |
JdbcTableColumn |
setNullable(boolean nullable) |
JdbcTableColumn |
setPrimaryKeySequence(Integer primaryKeySequence) |
JdbcTableColumn |
setPseudo(boolean pseudo) |
JdbcTableColumn |
setRadix(int radix) |
JdbcTableColumn |
setRemarks(String remarks) |
JdbcTableColumn |
setRowIdentifierSequence(Integer rowIdentifierSequence) |
JdbcTableColumn |
setSigned(boolean signed) |
JdbcTableColumn |
setSize(int size) |
JdbcTableColumn |
setSqlTypeIndex(int sqlTypeIndex)
SQL type from
Types |
protected JdbcTableColumn |
setTable(JdbcTable table) |
Record |
toRecord() |
addExceptionProperties, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, fromXmlElement, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, toXmlElement, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties, exception, exception, exception
public static final Comparator<JdbcTableColumn> NAME_COMPARATOR
public JdbcTable getTable()
protected JdbcTableColumn setTable(JdbcTable table)
public String getName()
public JdbcTableColumn setName(String name)
public String getNameAsJavaClassName()
public String getNameAsJavaIdentifier()
public int getSqlTypeIndex()
Types
public JdbcTableColumn setSqlTypeIndex(int sqlTypeIndex)
Types
public boolean isBinarySqlType()
public boolean isTextSqlType()
public boolean isNumericSqlType()
public boolean isBooleanSqlType()
public boolean isTemporalSqlType()
public boolean isRealNumber()
true
if columns of this type are numbers that can contain fractions.public boolean isIntegerNumber()
true
if columns of this type are numbers that cannot contain fractions (byte, short, int, etc.).public boolean isExactNumber()
true
if values of this type are numbers that contain exact quantities (BIGINT, DECIMAL, INTEGER, NUMERIC, SMALLINT, TINYINT, SMALLINT).public boolean isApproximateNumber()
true
if values of this type are numbers that do not contain exact quantities (DOUBLE, FLOAT, or REAL).public String getDatabaseTypeName()
public JdbcTableColumn setDatabaseTypeName(String databaseTypeName)
public int getSize()
public JdbcTableColumn setSize(int size)
public int getDecimals()
public JdbcTableColumn setDecimals(int decimals)
public int getRadix()
public JdbcTableColumn setRadix(int radix)
public boolean isNullable()
public JdbcTableColumn setNullable(boolean nullable)
public String getRemarks()
public JdbcTableColumn setRemarks(String remarks)
public String getDefaultValue()
public JdbcTableColumn setDefaultValue(String defaultValue)
public int getByteCount()
public JdbcTableColumn setByteCount(int byteCount)
public int getIndex()
public JdbcTableColumn setIndex(int index)
public boolean isAutoIncrement()
public JdbcTableColumn setAutoIncrement(boolean autoIncrement)
public boolean isGenerated()
public JdbcTableColumn setGenerated(boolean generated)
public boolean isPseudo()
public JdbcTableColumn setPseudo(boolean pseudo)
public Class<?> getJavaType()
public JdbcTableColumn setJavaType(Class<?> javaType)
public String getMethodSuffix()
public String getGetterMethod()
public String getSetterMethod()
public Integer getPrimaryKeySequence()
public JdbcTableColumn setPrimaryKeySequence(Integer primaryKeySequence)
public boolean isPrimaryKey()
public Integer getRowIdentifierSequence()
public JdbcTableColumn setRowIdentifierSequence(Integer rowIdentifierSequence)
public boolean isRowIdentifier()
public String getClassName()
public JdbcTableColumn setClassName(String className)
public boolean isSigned()
public JdbcTableColumn setSigned(boolean signed)
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public JdbcTableColumn fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.