P - the generic typepublic class PropertyMapping<P extends PropertyMapping<P>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyMapping.Mode
The Enum Mode.
|
| Constructor and Description |
|---|
PropertyMapping()
Instantiates a new property mapping.
|
| Modifier and Type | Method and Description |
|---|---|
P |
add(P propertyMapping)
add nested property mapping.
|
int |
getDecimalDigits()
返回decimalDigits.
|
java.lang.String |
getDefaultValue()
返回defaultValue.
|
java.util.function.Function<java.lang.Object,java.io.Serializable> |
getGetter()
get getter value.
|
int |
getIndex()
返回index.
|
PropertyMapping.Mode |
getMode()
get mode value.
|
P |
getParent()
返回parent.
|
PrimaryKey |
getPrimaryKey()
Gets the primary key.
|
cn.featherfly.common.bean.Property<java.lang.Object,java.io.Serializable> |
getProperty()
Gets the property.
|
java.lang.String |
getPropertyFullName()
Gets the property full name.
|
int |
getPropertyIndex()
Gets the property index.
|
int[] |
getPropertyIndexes()
Gets the property full name.
|
P |
getPropertyMapping(java.lang.String propertyName)
返回指定属性名称的属性映射.
|
P |
getPropertyMappingByPersitField(java.lang.String repositoryFiledName)
通过持久化字段(数据库字段)的名称返回指定属性映射.
|
java.util.List<P> |
getPropertyMappings()
返回PropertyMappings.
|
java.lang.String |
getPropertyName()
Gets the property name.
|
java.lang.String[] |
getPropertyNames()
Gets the property full name.
|
java.lang.Class<? extends java.io.Serializable> |
getPropertyType()
Gets the property type.
|
java.lang.String |
getRemark()
返回remark.
|
java.lang.String |
getRepositoryFieldName()
Gets the repository field name.
|
java.util.function.BiConsumer<java.lang.Object,java.io.Serializable> |
getSetter()
get setter value.
|
int |
getSize()
返回size.
|
boolean |
isAutoincrement()
返回autoincrement.
|
boolean |
isIgnoreAtInsert()
Checks if is ignore at insert.
|
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 |
setGetter(java.util.function.Function<java.lang.Object,java.io.Serializable> getter)
set getter value.
|
void |
setIgnoreAtInsert(boolean ignoreAtInsert)
Sets the ignore at insert.
|
void |
setIndex(int index)
设置index.
|
void |
setInsertable(boolean insertable)
设置insertable.
|
void |
setMode(PropertyMapping.Mode mode)
set mode value.
|
void |
setNullable(boolean nullable)
设置nullable.
|
void |
setPrimaryKey(PrimaryKey primaryKey)
Sets the primary key.
|
void |
setProperty(cn.featherfly.common.bean.Property<java.lang.Object,java.io.Serializable> property)
Sets the property.
|
void |
setPropertyIndex(int propertyIndex)
Sets the property index.
|
void |
setPropertyName(java.lang.String propertyName)
Sets the property name.
|
void |
setPropertyType(java.lang.Class<? extends java.io.Serializable> propertyType)
Sets the property type.
|
void |
setRemark(java.lang.String remark)
设置remark.
|
void |
setRepositoryFieldName(java.lang.String repositoryFieldName)
Sets the repository field name.
|
void |
setSetter(java.util.function.BiConsumer<java.lang.Object,java.io.Serializable> setter)
set setter value.
|
void |
setSize(int size)
设置size.
|
void |
setUnique(boolean unique)
设置unique.
|
void |
setUpdatable(boolean updatable)
设置updatable.
|
java.lang.String |
toString() |
protected P extends PropertyMapping<P> parent
public void setPropertyIndex(int propertyIndex)
propertyIndex - the new property indexpublic int getPropertyIndex()
public int[] getPropertyIndexes()
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.util.function.Function<java.lang.Object,java.io.Serializable> getGetter()
public void setGetter(java.util.function.Function<java.lang.Object,java.io.Serializable> getter)
getter - getterpublic java.util.function.BiConsumer<java.lang.Object,java.io.Serializable> getSetter()
public void setSetter(java.util.function.BiConsumer<java.lang.Object,java.io.Serializable> setter)
setter - setterpublic java.lang.Class<? extends java.io.Serializable> getPropertyType()
public void setPropertyType(java.lang.Class<? extends java.io.Serializable> propertyType)
propertyType - 设置propertyTypepublic boolean isPrimaryKey()
public void setPrimaryKey(PrimaryKey primaryKey)
primaryKey - 设置primaryKeypublic PrimaryKey getPrimaryKey()
public java.lang.String getPropertyName()
public java.lang.String[] getPropertyNames()
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 PropertyMapping.Mode getMode()
public void setMode(PropertyMapping.Mode mode)
mode - modepublic java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue - defaultValuepublic P getParent()
public java.util.List<P> getPropertyMappings()
public P getPropertyMapping(java.lang.String propertyName)
返回指定属性名称的属性映射. 没有找到返回null.
propertyName - 属性名称public P getPropertyMappingByPersitField(java.lang.String repositoryFiledName)
通过持久化字段(数据库字段)的名称返回指定属性映射. 没有找到返回null.
repositoryFiledName - 持久化字段(数据库字段)public P add(P propertyMapping)
propertyMapping - propertyMappingpublic boolean isIgnoreAtInsert()
public void setIgnoreAtInsert(boolean ignoreAtInsert)
ignoreAtInsert - the new ignore at insertpublic cn.featherfly.common.bean.Property<java.lang.Object,java.io.Serializable> getProperty()
public void setProperty(cn.featherfly.common.bean.Property<java.lang.Object,java.io.Serializable> property)
property - the propertypublic java.lang.String toString()
toString in class java.lang.Object