Package com.oopsclick.silk.dbo
Class DataFieldList
- java.lang.Object
-
- com.oopsclick.silk.dbo.DataFieldList
-
public class DataFieldList extends java.lang.Object
The 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 void
cleanValues()
Clean values from data list.void
clear()
Clean list.boolean
exist(java.lang.String column)
Returns if the Data Value exist base on its columnDataField
get(int i)
Gets the Data Value by index.DataField
get(java.lang.String column)
Gets the Data Value by column.java.lang.String
getAction()
Gets the action.java.lang.String
getOperation()
Gets the operation.void
remove(java.lang.String column)
Delete Data Value from list based on it column namevoid
set(DataField data)
Set the DataField from another DataFieldvoid
set(java.lang.String column)
Sets the DataField with field and null value.void
set(java.lang.String column, java.lang.Object value)
Sets the DataField with column, value, and default type as "S"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.void
setAction(java.lang.String action)
Sets the action.void
setOperation(java.lang.String operation)
Sets the operation.int
size()
Data list size.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- the string
-
-