public class PropertyDefinitionBuilder extends Object
Constructor and Description |
---|
PropertyDefinitionBuilder() |
Modifier and Type | Method and Description |
---|---|
PropertyDefinitionBuilder |
addConstraints(ConstraintDefinition constraintDefinition)
add a new constraint to property.
|
PropertyDefinition |
build()
Build property definition.
|
PropertyDefinitionBuilder |
setColumnName(String columnName) |
PropertyDefinitionBuilder |
setDateFormat(String dateFormat) |
PropertyDefinitionBuilder |
setFieldName(String fieldName) |
PropertyDefinitionBuilder |
setInsertable(boolean insertable) |
PropertyDefinitionBuilder |
setPropertyType(PropertyType propertyType) |
PropertyDefinitionBuilder |
setUpdateable(boolean updateable) |
public PropertyDefinitionBuilder setFieldName(String fieldName)
public PropertyDefinitionBuilder setColumnName(String columnName)
public PropertyDefinitionBuilder setPropertyType(PropertyType propertyType)
public PropertyDefinitionBuilder setDateFormat(String dateFormat)
public PropertyDefinitionBuilder addConstraints(ConstraintDefinition constraintDefinition) throws MappingException
constraintDefinition
- constraintMappingException
- if constraint is already defined.public PropertyDefinitionBuilder setInsertable(boolean insertable)
public PropertyDefinitionBuilder setUpdateable(boolean updateable)
public PropertyDefinition build() throws MappingException
MappingException
- if definition is not valid.Copyright © 2015. All Rights Reserved.