public class Field extends DataModel implements Comparable<Field>
Constructor and Description |
---|
Field() |
Field(org.json.JSONObject obj) |
Field(String name,
String value) |
Field(String name,
String value,
FieldType type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Field arg0) |
static ArrayList<Field> |
fromJSONArray(org.json.JSONArray array) |
String |
getOperator() |
static FieldType |
getType(int SQLType) |
Boolean |
getValueAsBoolean() |
Boolean |
getValueAsBoolean(String defaultValue) |
Double |
getValueAsDouble() |
Double |
getValueAsDouble(String defaultValue) |
Integer |
getValueAsInteger() |
Integer |
getValueAsInteger(String defaultValue) |
Long |
getValueAsLong() |
Long |
getValueAsLong(String defaultValue) |
boolean |
isNull() |
static List<List<Field>> |
loadResultSet(ResultSet rs) |
static List<Field> |
loadRow(ResultSet rs) |
String |
name() |
void |
name(String name) |
static org.json.JSONArray |
toJSONArray(List<Field> list) |
org.json.JSONObject |
toJSONObject() |
String |
toString() |
FieldType |
type() |
void |
type(FieldType type) |
boolean |
validate() |
String |
value() |
void |
value(String value) |
public static final String VOID
public Field()
public Field(org.json.JSONObject obj) throws org.json.JSONException
org.json.JSONException
public FieldType type()
public void type(FieldType type)
public String name()
public void name(String name)
public String value()
public void value(String value)
public String getOperator()
public static FieldType getType(int SQLType)
public static List<List<Field>> loadResultSet(ResultSet rs) throws SQLException
SQLException
public Double getValueAsDouble()
public Integer getValueAsInteger()
public Long getValueAsLong()
public Boolean getValueAsBoolean()
public boolean isNull()
public boolean validate()
public org.json.JSONObject toJSONObject() throws org.json.JSONException
org.json.JSONException
public static ArrayList<Field> fromJSONArray(org.json.JSONArray array) throws org.json.JSONException
org.json.JSONException
public static org.json.JSONArray toJSONArray(List<Field> list) throws org.json.JSONException
org.json.JSONException
public int compareTo(Field arg0)
compareTo
in interface Comparable<Field>
Copyright © 2017. All Rights Reserved.