org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced
Class Field
java.lang.Object
org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel
org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Field
- All Implemented Interfaces:
- Comparable<Field>
public class Field
- extends DataModel
- implements Comparable<Field>
| Methods inherited from class org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel |
fromXML, toXML |
VOID
public static final String VOID
- See Also:
- Constant Field Values
Field
public Field()
Field
public Field(String name,
String value)
Field
public Field(String name,
String value,
FieldType type)
Field
public Field(org.gcube_system.namespaces.application.aquamaps.types.Field toLoad)
Field
public Field(JSONObject obj)
throws JSONException
- Throws:
JSONException
getType
public FieldType getType()
setType
public void setType(FieldType type)
getName
public String getName()
setName
public void setName(String name)
getValue
public String getValue()
setValue
public void setValue(String value)
load
public static List<Field> load(org.gcube_system.namespaces.application.aquamaps.types.FieldArray toLoad)
toStubsVersion
public static org.gcube_system.namespaces.application.aquamaps.types.FieldArray toStubsVersion(Collection<Field> collection)
toStubsVersion
public org.gcube_system.namespaces.application.aquamaps.types.Field toStubsVersion()
getOperator
public String getOperator()
loadRow
public static List<Field> loadRow(ResultSet rs)
throws Exception
- Throws:
Exception
getType
public static FieldType getType(int SQLType)
loadResultSet
public static List<List<Field>> loadResultSet(ResultSet rs)
throws SQLException
- Throws:
SQLException
getValueAsDouble
public Double getValueAsDouble()
getValueAsInteger
public Integer getValueAsInteger()
getValueAsLong
public Long getValueAsLong()
getValueAsBoolean
public Boolean getValueAsBoolean()
isNull
public boolean isNull()
validate
public boolean validate()
getValueAsDouble
public Double getValueAsDouble(String defaultValue)
getValueAsInteger
public Integer getValueAsInteger(String defaultValue)
getValueAsLong
public Long getValueAsLong(String defaultValue)
getValueAsBoolean
public Boolean getValueAsBoolean(String defaultValue)
toJSONObject
public JSONObject toJSONObject()
throws JSONException
- Throws:
JSONException
fromJSONArray
public static ArrayList<Field> fromJSONArray(JSONArray array)
throws JSONException
- Throws:
JSONException
toJSONArray
public static JSONArray toJSONArray(List<Field> list)
throws JSONException
- Throws:
JSONException
compareTo
public int compareTo(Field arg0)
- Specified by:
compareTo in interface Comparable<Field>
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.