public class JdbcColumn extends TransferableObject
Constructor and Description |
---|
JdbcColumn(java.lang.String cat,
java.lang.String schema,
java.lang.String tabname,
java.lang.String colname,
int datatype,
java.lang.String typename,
int colsize,
int bufflen,
int digits,
int radix,
int nullable,
java.lang.String remark,
java.lang.String defValue,
int sqltype,
int dtsub,
int octlen,
int order,
java.lang.String nullstr) |
Modifier and Type | Method and Description |
---|---|
void |
applyColumnDefsFrom(DBTypeMapper map) |
java.lang.String |
getColumnName() |
Reference |
getForeignKeyReference() |
java.lang.String |
getFullName() |
java.lang.Class |
getJavaType() |
java.lang.String |
getJavaTypeDefString() |
java.lang.String |
getJavaTypeString() |
static java.lang.String |
getJavaTypeString(java.lang.Class javaClass) |
int |
getJdbcColumnIndex() |
int |
getJdbcColumnSize() |
int |
getJdbcDecimalDigits() |
java.lang.String |
getJdbcDefaultValue() |
int |
getJdbcRadix() |
int |
getJdbcType() |
java.lang.String |
getJdbcTypeString() |
int |
getOriginalJdbcType() |
boolean |
isBooleanCharType() |
static boolean |
isBooleanCharType(int jdbcType) |
boolean |
isBooleanType() |
static boolean |
isBooleanType(int jdbcType) |
boolean |
isCharType() |
static boolean |
isCharType(int jdbcType) |
boolean |
isDecimalType() |
static boolean |
isDecimalType(int jdbcType) |
boolean |
isForeignKey() |
boolean |
isIntegerType() |
static boolean |
isIntegerType(int jdbcType) |
static boolean |
isLongType(int jdbcType) |
boolean |
isNotNull() |
boolean |
isPersistentId() |
boolean |
isPersistentName() |
boolean |
isPrimaryKey() |
boolean |
isTimeType() |
static boolean |
isTimeType(int jdbcType) |
void |
setForeignKeyReference(Reference fkRef) |
void |
setNotNull(boolean isNotNull) |
void |
setPrimaryKey(boolean isPK) |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
static java.lang.String |
toJdbcTypeDefinition(int t)
Returns the Type definition string as defined in java.sql.Types
|
static int |
toJdbcTypeFromJavaType(java.lang.Class javaType) |
java.lang.String |
toString()
Returns a single line String that shows the values of the most important
state variables of this object.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
clone, deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString
public JdbcColumn(java.lang.String cat, java.lang.String schema, java.lang.String tabname, java.lang.String colname, int datatype, java.lang.String typename, int colsize, int bufflen, int digits, int radix, int nullable, java.lang.String remark, java.lang.String defValue, int sqltype, int dtsub, int octlen, int order, java.lang.String nullstr)
public java.lang.String getFullName()
public java.lang.String getColumnName()
public java.lang.String toString()
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public void setForeignKeyReference(Reference fkRef)
public Reference getForeignKeyReference()
public boolean isForeignKey()
public void setPrimaryKey(boolean isPK)
public boolean isPrimaryKey()
public void setNotNull(boolean isNotNull)
public boolean isNotNull()
public java.lang.Class getJavaType()
public java.lang.String getJavaTypeDefString()
public void applyColumnDefsFrom(DBTypeMapper map)
public boolean isIntegerType()
public boolean isDecimalType()
public boolean isTimeType()
public boolean isCharType()
public boolean isBooleanCharType()
public boolean isBooleanType()
public boolean isPersistentName()
public boolean isPersistentId()
public int getOriginalJdbcType()
public int getJdbcType()
public java.lang.String getJdbcTypeString()
public int getJdbcColumnSize()
public int getJdbcDecimalDigits()
public int getJdbcRadix()
public int getJdbcColumnIndex()
public java.lang.String getJdbcDefaultValue()
public java.lang.String getJavaTypeString()
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public static boolean isLongType(int jdbcType)
public static boolean isIntegerType(int jdbcType)
public static boolean isDecimalType(int jdbcType)
public static boolean isTimeType(int jdbcType)
public static boolean isCharType(int jdbcType)
public static boolean isBooleanType(int jdbcType)
public static boolean isBooleanCharType(int jdbcType)
public static java.lang.String getJavaTypeString(java.lang.Class javaClass)
public static java.lang.String toJdbcTypeDefinition(int t)
public static int toJdbcTypeFromJavaType(java.lang.Class javaType)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.