public abstract class FieldType extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Field |
f
For xref purposes we sometimes need a handle of the field this type was defined as part of.
|
| Constructor and Description |
|---|
FieldType() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
convert(Object value) |
boolean |
equals(Object o) |
List<String> |
getAllowedOperators() |
abstract String |
getCppJavaPropertyType() |
abstract String |
getCppPropertyType()
Product the Java type of this field type.
|
Entity |
getEntityByName(String name)
Get an entity from the field type (only works if the field type is linked to a Field instance).
|
abstract MolgenisFieldTypes.FieldTypeEnum |
getEnumType() |
FieldType |
getFieldType(Field f)
Get the field type from a field.
|
abstract String |
getFormatString()
Get the format string, e.g.
|
abstract String |
getHsqlType()
Produce a valid hsql snippet indicating the mysql type.
|
abstract String |
getJavaAssignment(String value)
Produce a valid Java snippet to set a value for field.
|
abstract String |
getJavaPropertyDefault()
Produce a valid Java snippet to set the default of a field, using the 'getDefault' function of that field.
|
abstract String |
getJavaPropertyType()
Product the Java type of this field type.
|
String |
getJavaSetterType() |
abstract Class<?> |
getJavaType()
Produce the Java class corresponding to the value
|
abstract Long |
getMaxLength()
Returns the maximum number of characters for this field type or null if not applicable
|
abstract String |
getMysqlType()
Produce a valid mysql snippet indicating the mysql type.
|
abstract String |
getOracleType() |
abstract Object |
getTypedValue(String value) |
abstract String |
getXsdType()
Produce valid XSD type
|
int |
hashCode() |
void |
setField(Field f) |
String |
toCsv(List<String> elements)
Convert a list of string to comma separated values.
|
String |
toString()
The string value of this type, e.g.
|
protected Field f
public FieldType getFieldType(Field f) throws MolgenisModelException
f - MolgenisModelExceptionpublic Entity getEntityByName(String name)
name - public String getJavaSetterType() throws MolgenisModelException
MolgenisModelExceptionpublic abstract Long getMaxLength()
public abstract String getJavaPropertyType() throws MolgenisModelException
MolgenisModelExceptionpublic abstract String getCppPropertyType() throws MolgenisModelException
MolgenisModelExceptionpublic abstract String getJavaPropertyDefault() throws MolgenisModelException
MolgenisModelExceptionpublic abstract String getJavaAssignment(String value) throws MolgenisModelException
MolgenisModelExceptionpublic abstract Class<?> getJavaType() throws MolgenisModelException
MolgenisModelExceptionpublic abstract String getMysqlType() throws MolgenisModelException
MolgenisModelExceptionpublic abstract String getXsdType() throws MolgenisModelException
MolgenisModelExceptionpublic String toCsv(List<String> elements)
elements - public abstract String getHsqlType() throws MolgenisModelException
MolgenisModelExceptionpublic void setField(Field f)
public abstract String getFormatString()
public String toString()
public abstract String getCppJavaPropertyType() throws MolgenisModelException
MolgenisModelExceptionpublic abstract String getOracleType() throws MolgenisModelException
MolgenisModelExceptionpublic abstract Object getTypedValue(String value) throws ParseException
ParseExceptionpublic abstract MolgenisFieldTypes.FieldTypeEnum getEnumType()
Copyright © 2015. All Rights Reserved.