public class ModelFieldType extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
javaType
The java-type of the Field
|
protected String |
sqlType
The sql-type of the Field
|
protected String |
sqlTypeAlias
The sql-type-alias of the Field, this is optional
|
protected String |
type
The type of the Field
|
protected List<String> |
validators
validators to be called when an update is done
|
| Constructor and Description |
|---|
ModelFieldType()
Default Constructor
|
ModelFieldType(Element fieldTypeElement)
XML Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getJavaType()
The java-type of the Field
|
String |
getSqlType()
The sql-type of the Field
|
String |
getSqlTypeAlias()
The sql-type-alias of the Field
|
String |
getType()
The type of the Field
|
List<String> |
getValidators()
validators to be called when an update is done
|
int |
stringLength()
A simple function to derive the max length of a String created from the field value, based on the sql-type
|
protected String type
protected String javaType
protected String sqlType
protected String sqlTypeAlias
public ModelFieldType()
public ModelFieldType(Element fieldTypeElement)
public String getType()
public String getJavaType()
public String getSqlType()
public String getSqlTypeAlias()
public int stringLength()
Copyright © 2015 Atlassian. All rights reserved.