org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced
Class Field

java.lang.Object
  extended by org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel
      extended by org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Field
All Implemented Interfaces:
Comparable<Field>

public class Field
extends DataModel
implements Comparable<Field>


Field Summary
static String VOID
           
 
Constructor Summary
Field()
           
Field(org.gcube_system.namespaces.application.aquamaps.types.Field toLoad)
           
Field(JSONObject obj)
           
Field(String name, String value)
           
Field(String name, String value, FieldType type)
           
 
Method Summary
 int compareTo(Field arg0)
           
static ArrayList<Field> fromJSONArray(JSONArray array)
           
 String getName()
           
 String getOperator()
           
 FieldType getType()
           
static FieldType getType(int SQLType)
           
 String getValue()
           
 Boolean getValueAsBoolean()
           
 Boolean getValueAsBoolean(String defaultValue)
           
 Double getValueAsDouble()
           
 Double getValueAsDouble(String defaultValue)
           
 Integer getValueAsInteger()
           
 Integer getValueAsInteger(String defaultValue)
           
 Long getValueAsLong()
           
 Long getValueAsLong(String defaultValue)
           
static List<Field> load(org.gcube_system.namespaces.application.aquamaps.types.FieldArray toLoad)
           
static List<List<Field>> loadResultSet(ResultSet rs)
           
static List<Field> loadRow(ResultSet rs)
           
 void setName(String name)
           
 void setType(FieldType type)
           
 void setValue(String value)
           
static JSONArray toJSONArray(List<Field> list)
           
 JSONObject toJSONObject()
           
 org.gcube_system.namespaces.application.aquamaps.types.Field toStubsVersion()
           
static org.gcube_system.namespaces.application.aquamaps.types.FieldArray toStubsVersion(Collection<Field> collection)
           
 
Methods inherited from class org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel
fromXML, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VOID

public static final String VOID
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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()

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>


Copyright © 2013. All Rights Reserved.