public class JdbcTableColumn extends Bean
| Modifier and Type | Field and Description |
|---|---|
static Comparator<JdbcTableColumn> |
NAME_COMPARATOR |
SERIALIZED_CLASS_NAME, TYPEXML_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 |
getDefaultValueAsJavaString()
Converts the default value to a Java string literal suitable for code generation.
|
FieldType |
getFieldType()
Returns the
FieldType corresponding to this column's Java type. |
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 |
isEmptyDefaultValue()
Returns
true if the default value is an empty string or the string "''". |
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 |
isNullDefaultValue()
Returns
true if the default value is null or the string "NULL". |
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, 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, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionProperties, exception, exception, exceptionpublic 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()
Typespublic JdbcTableColumn setSqlTypeIndex(int sqlTypeIndex)
Typespublic 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 boolean isNullDefaultValue()
true if the default value is null or the string "NULL".true if the default value is null or "NULL", false otherwisepublic boolean isEmptyDefaultValue()
true if the default value is an empty string or the string "''".true if the default value is empty or "''", false otherwisepublic String getDefaultValueAsJavaString()
Returns null if the default value is null or "NULL", returns "" for empty strings,
properly escapes text SQL types, and returns the default value as-is for primitive types.
For non-primitive and non-string types, returns null.
null if not convertiblepublic 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 FieldType getFieldType()
FieldType corresponding to this column's Java type.
If the Java type cannot be mapped to a FieldType, returns FieldType.UNDEFINED.
FieldType.UNDEFINED if not mappablepublic 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 RecordSerializabletoRecord in class Beanpublic JdbcTableColumn fromRecord(Record source)
RecordSerializablethis (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 RecordSerializablefromRecord in class BeanCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.