Package ch.autumo.beetroot.utils.bean
Class BeanField
java.lang.Object
ch.autumo.beetroot.utils.bean.BeanField
Bean field.
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
BeanField
public BeanField(String dbName, String beanName, Class<?> type, boolean isNullable, boolean unique, Method getterMethod, Method setterMethod) Constructor.- Parameters:
dbName- column namebeanName- attribute nametype- Java typeisNullable- is nullable?unique- is unique?getterMethod- getter methodsetterMethod- setter method
-
-
Method Details
-
getGetterMethod
-
getSetterMethod
-
getDbName
-
getBeanName
-
getType
-
isUnique
public boolean isUnique() -
isNullable
public boolean isNullable() -
toString
-
serialize
Serialize this field to JSON.- Parameters:
field- field- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- JSON processing exception
-