public class Type extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoincrement |
protected boolean |
caseSensitive |
static String |
copyright |
protected int |
jdbcType |
protected String |
literalPrefix |
protected String |
literalSuffix |
static org.slf4j.Logger |
logger |
protected Integer |
maximumPrecision |
protected int |
maximumScale |
protected int |
minimumScale |
protected boolean |
nullable |
protected Boolean |
precisionRequired |
protected Boolean |
scaleRequired |
protected boolean |
searchable |
protected String |
typeName |
Constructor and Description |
---|
Type(String typeName,
int jdbcType,
Integer maximumPrecision,
String literalPrefix,
String literalSuffix,
boolean nullable,
boolean caseSensitive,
boolean searchable,
boolean autoincrement,
int minimumScale,
int maximumScale) |
Type(String typeName,
int jdbcType,
Integer maximumPrecision,
String literalPrefix,
String literalSuffix,
boolean nullable,
boolean caseSensitive,
boolean searchable,
boolean autoincrement,
int minimumScale,
int maximumScale,
boolean precisionRequired,
boolean scaleRequired) |
Modifier and Type | Method and Description |
---|---|
Class[] |
getAvailableJavaTypes(Integer length) |
static Class<? extends Number> |
getDefaultIntegerType(Integer precision) |
Class |
getDefaultJavaType() |
static Class |
getDefaultJavaType(int jdbcType,
String databaseType,
Integer precision,
Integer scale) |
int |
getJdbcType() |
String |
getLiteralPrefix() |
String |
getLiteralSuffix() |
Integer |
getMaximumPrecision() |
Integer |
getMaximumScale() |
Integer |
getMinimumScale() |
String |
getTypeName() |
boolean |
isAutoincrement() |
boolean |
isCaseSensitive() |
boolean |
isNullable() |
boolean |
isNumeric() |
boolean |
isPrecisionRequired() |
boolean |
isScaleRequired() |
boolean |
isSearchable() |
String |
toString() |
public static final String copyright
public static final org.slf4j.Logger logger
protected final String typeName
protected final int jdbcType
protected final boolean autoincrement
protected final Integer maximumPrecision
protected final String literalPrefix
protected final String literalSuffix
protected final boolean nullable
protected final boolean caseSensitive
protected final boolean searchable
protected final int minimumScale
protected final int maximumScale
protected final Boolean precisionRequired
protected final Boolean scaleRequired
public Type(String typeName, int jdbcType, Integer maximumPrecision, String literalPrefix, String literalSuffix, boolean nullable, boolean caseSensitive, boolean searchable, boolean autoincrement, int minimumScale, int maximumScale)
public String getTypeName()
public int getJdbcType()
public Class getDefaultJavaType()
@Nullable public static Class getDefaultJavaType(int jdbcType, String databaseType, Integer precision, Integer scale)
public static Class<? extends Number> getDefaultIntegerType(Integer precision)
public boolean isAutoincrement()
public Integer getMaximumPrecision()
public String getLiteralPrefix()
public String getLiteralSuffix()
public boolean isNullable()
public boolean isCaseSensitive()
public boolean isSearchable()
public Integer getMinimumScale()
public Integer getMaximumScale()
public boolean isPrecisionRequired()
public boolean isScaleRequired()
public boolean isNumeric()