public class PropertyMapping
extends java.lang.Object
PropertyMapping
| 构造器和说明 |
|---|
PropertyMapping()
Instantiates a new property mapping.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PropertyMapping |
add(PropertyMapping propertyMapping)
add nested property mapping.
|
int |
getDecimalDigits()
返回decimalDigits.
|
java.lang.String |
getDefaultValue()
返回defaultValue.
|
int |
getIndex()
返回index.
|
PropertyMapping |
getParent()
返回parent.
|
java.lang.String |
getPropertyFullName()
Gets the property full name.
|
PropertyMapping |
getPropertyMapping(java.lang.String propertyName)
返回指定属性名称的属性映射.
|
PropertyMapping |
getPropertyMappingByPersitField(java.lang.String repositoryFiledName)
通过持久化字段(数据库字段)的名称返回指定属性映射.
|
java.util.List<PropertyMapping> |
getPropertyMappings()
返回PropertyMappings.
|
java.lang.String |
getPropertyName()
Gets the property name.
|
java.lang.Class<?> |
getPropertyType()
Gets the property type.
|
java.lang.String |
getRemark()
返回remark.
|
java.lang.String |
getRepositoryFieldName()
Gets the repository field name.
|
int |
getSize()
返回size.
|
boolean |
isAutoincrement()
返回autoincrement.
|
boolean |
isInsertable()
返回insertable.
|
boolean |
isNullable()
返回nullable.
|
boolean |
isPrimaryKey()
Checks if is primary key.
|
boolean |
isUnique()
返回unique.
|
boolean |
isUpdatable()
返回updatable.
|
void |
setAutoincrement(boolean autoincrement)
设置autoincrement.
|
void |
setDecimalDigits(int decimalDigits)
设置decimalDigits.
|
void |
setDefaultValue(java.lang.String defaultValue)
设置defaultValue.
|
void |
setIndex(int index)
设置index.
|
void |
setInsertable(boolean insertable)
设置insertable.
|
void |
setNullable(boolean nullable)
设置nullable.
|
void |
setPrimaryKey(boolean primaryKey)
Sets the primary key.
|
void |
setPropertyName(java.lang.String propertyName)
Sets the property name.
|
void |
setPropertyType(java.lang.Class<?> propertyType)
Sets the property type.
|
void |
setRemark(java.lang.String remark)
设置remark.
|
void |
setRepositoryFieldName(java.lang.String repositoryFieldName)
Sets the repository field name.
|
void |
setSize(int size)
设置size.
|
void |
setUnique(boolean unique)
设置unique.
|
void |
setUpdatable(boolean updatable)
设置updatable.
|
java.lang.String |
toString() |
public int getIndex()
public void setIndex(int index)
index - indexpublic boolean isUnique()
public void setUnique(boolean unique)
unique - uniquepublic int getSize()
public void setSize(int size)
size - sizepublic java.lang.String getRemark()
public void setRemark(java.lang.String remark)
remark - remarkpublic boolean isNullable()
public void setNullable(boolean nullable)
nullable - nullablepublic boolean isInsertable()
public void setInsertable(boolean insertable)
insertable - insertablepublic boolean isUpdatable()
public void setUpdatable(boolean updatable)
updatable - updatablepublic int getDecimalDigits()
public void setDecimalDigits(int decimalDigits)
decimalDigits - decimalDigitspublic boolean isAutoincrement()
public void setAutoincrement(boolean autoincrement)
autoincrement - autoincrementpublic java.lang.Class<?> getPropertyType()
public void setPropertyType(java.lang.Class<?> propertyType)
propertyType - 设置propertyTypepublic boolean isPrimaryKey()
public void setPrimaryKey(boolean primaryKey)
primaryKey - 设置primaryKeypublic java.lang.String getPropertyName()
public java.lang.String getPropertyFullName()
public void setPropertyName(java.lang.String propertyName)
propertyName - 设置propertyNamepublic java.lang.String getRepositoryFieldName()
public void setRepositoryFieldName(java.lang.String repositoryFieldName)
repositoryFieldName - 设置repositoryFieldNamepublic java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue - defaultValuepublic PropertyMapping getParent()
public java.util.List<PropertyMapping> getPropertyMappings()
public PropertyMapping getPropertyMapping(java.lang.String propertyName)
返回指定属性名称的属性映射. 没有找到返回null.
propertyName - 属性名称public PropertyMapping getPropertyMappingByPersitField(java.lang.String repositoryFiledName)
通过持久化字段(数据库字段)的名称返回指定属性映射. 没有找到返回null.
repositoryFiledName - 持久化字段(数据库字段)public PropertyMapping add(PropertyMapping propertyMapping)
propertyMapping - propertyMappingpublic java.lang.String toString()
toString 在类中 java.lang.Object