public final class DynamicColumnMapping extends Object implements Serializable
Constructor and Description |
---|
DynamicColumnMapping() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Class<?> |
getClz() |
String |
getComment() |
int |
getDecimalDigits() |
int |
getDigits()
the number of fractional digits
|
String |
getField() |
TypeHandler<Object> |
getHandler() |
int |
getJdbcType() |
String |
getName() |
int |
getSize()
For char or date types this is the maximum number of characters, for numeric or decimal types this is precision.
|
boolean |
hasDigits() |
int |
hashCode() |
boolean |
hasJdbcType() |
boolean |
hasSize() |
boolean |
isNullable() |
boolean |
isPk() |
boolean |
isUnique() |
static DynamicColumnMapping |
named(String name)
Creates default column meta data with the given column name, but without
any type or constraint information.
|
DynamicColumnMapping |
setClz(Class<?> clz) |
DynamicColumnMapping |
setComment(String comment) |
DynamicColumnMapping |
setDecimalDigits(int decimalDigits) |
DynamicColumnMapping |
setField(String field) |
void |
setHandler(TypeHandler<Object> handler) |
DynamicColumnMapping |
setJdbcType(Integer jdbcType) |
DynamicColumnMapping |
setName(String name) |
DynamicColumnMapping |
setNullable(boolean nullable) |
DynamicColumnMapping |
setPk(boolean pk) |
DynamicColumnMapping |
setSize(int size) |
DynamicColumnMapping |
setUnique(boolean unique) |
public static DynamicColumnMapping named(String name)
NullPointerException
- if the name is nullpublic String getName()
public int getJdbcType()
public boolean hasJdbcType()
public boolean isNullable()
public int getSize()
public boolean hasSize()
public int getDigits()
public boolean hasDigits()
public DynamicColumnMapping setName(String name)
public DynamicColumnMapping setJdbcType(Integer jdbcType)
public DynamicColumnMapping setNullable(boolean nullable)
public DynamicColumnMapping setSize(int size)
public int getDecimalDigits()
public DynamicColumnMapping setDecimalDigits(int decimalDigits)
public boolean isUnique()
public DynamicColumnMapping setUnique(boolean unique)
public Class<?> getClz()
public DynamicColumnMapping setClz(Class<?> clz)
public String getField()
public DynamicColumnMapping setField(String field)
public boolean isPk()
public DynamicColumnMapping setPk(boolean pk)
public String getComment()
public DynamicColumnMapping setComment(String comment)
public TypeHandler<Object> getHandler()
public void setHandler(TypeHandler<Object> handler)
Copyright © 2020. All rights reserved.