Package com.oopsclick.silk.dbo
Class DataFieldList
- java.lang.Object
-
- com.oopsclick.silk.dbo.DataFieldList
-
public class DataFieldList extends java.lang.ObjectThe Class DataFieldList stores and manages DataField objects. This provides a series of methods to set and retrieve the stored values.- Author:
- Italo Osorio
-
-
Constructor Summary
Constructors Constructor Description DataFieldList()Instantiates a new data value list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanValues()Clean values from data list.voidclear()Clean list.booleanexist(java.lang.String column)Returns if the Data Value exist base on its columnDataFieldget(int i)Gets the Data Value by index.DataFieldget(java.lang.String column)Gets the Data Value by column.java.lang.StringgetAction()Gets the action.java.lang.StringgetOperation()Gets the operation.voidremove(java.lang.String column)Delete Data Value from list based on it column namevoidset(DataField data)Set the DataField from another DataFieldvoidset(java.lang.String column)Sets the DataField with field and null value.voidset(java.lang.String column, java.lang.Object value)Sets the DataField with column, value, and default type as "S"voidset(java.lang.String column, java.lang.Object value, java.lang.Class<?> type, int secure)Sets the Data Value with column, value, and data type.voidsetAction(java.lang.String action)Sets the action.voidsetOperation(java.lang.String operation)Sets the operation.intsize()Data list size.java.lang.StringtoString()To String.
-
-
-
Method Detail
-
set
public void set(DataField data)
Set the DataField from another DataField- Parameters:
data- the data
-
set
public void set(java.lang.String column)
Sets the DataField with field and null value.- Parameters:
column- the column
-
set
public void set(java.lang.String column, java.lang.Object value)Sets the DataField with column, value, and default type as "S"- Parameters:
column- the columnvalue- the value
-
set
public void set(java.lang.String column, java.lang.Object value, java.lang.Class<?> type, int secure)Sets the Data Value with column, value, and data type. If the column already exist the value gets replace with the new values provided.- Parameters:
column- the columnvalue- the valuetype- the typesecure- the secure
-
get
public DataField get(int i)
Gets the Data Value by index.- Parameters:
i- the i- Returns:
- the parameter
-
get
public DataField get(java.lang.String column)
Gets the Data Value by column.- Parameters:
column- the column- Returns:
- the parameter
-
getAction
public java.lang.String getAction()
Gets the action.- Returns:
- the action
-
setAction
public void setAction(java.lang.String action)
Sets the action.- Parameters:
action- the new action
-
getOperation
public java.lang.String getOperation()
Gets the operation.- Returns:
- the action
-
setOperation
public void setOperation(java.lang.String operation)
Sets the operation.- Parameters:
operation- the new operation
-
remove
public void remove(java.lang.String column)
Delete Data Value from list based on it column name- Parameters:
column- to remove
-
exist
public boolean exist(java.lang.String column)
Returns if the Data Value exist base on its column- Parameters:
column- the column- Returns:
- the boolean
-
size
public int size()
Data list size.- Returns:
- integer
-
clear
public void clear()
Clean list.
-
cleanValues
public void cleanValues()
Clean values from data list.
-
toString
public java.lang.String toString()
To String.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string
-
-