public class DataSetRecord
extends Object
implements Serializable
DataSetData
,
DataSet
,
Serialized FormConstructor and Description |
---|
DataSetRecord()
Instantiates a new DataSetRecord.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object value)
Adds the value at the index.
|
void |
add(Object value)
Adds the value.
|
void |
addVersion(int index,
Object value)
Add version to the cell.
|
void |
clear()
Clears.
|
boolean |
contains(int index,
Object value,
boolean ignoreCase,
boolean doTrim)
Checks if any version of the cell contains given value.
|
DataSetRecord |
copy()
Copy.
|
void |
deleteCol(int col)
Deletes column.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
Object |
get(int index)
Gets the value at the index.
|
String |
getCrudAction()
Gets the crud action.
|
Object |
getData()
Gets the data associated with a record.
|
int |
getIndexOfVersion(int index,
Object value,
boolean ignoreCase,
boolean doTrim)
Calculates the index of the version using given value.
|
int |
getNumberOfVersions(int index)
Gets number of versions for the given cell index
|
DataSetRecord |
getParentDataSetRecord()
Gets the parent data set record.
|
String |
getTarget()
Gets the target, typically a designated queue topic.
|
String |
getUniqueId()
Gets the unique id.
|
Object |
getVersion(int index,
int version)
Get version of the cell value
|
void |
normalize(int size)
Normalize record to the given size.
|
void |
removeVersion(int index,
int version)
Removes version of the cell
|
void |
set(int index,
Object value)
Sets the value at the index.
|
void |
setCrudAction(String crudAction)
Sets the crud action.
|
void |
setData(Object data)
Sets the data associated with a record.
|
void |
setParentDataSetRecord(DataSetRecord parentDataSetRecord)
Sets the parent data set record.
|
void |
setTarget(String target)
Sets the target, typically a designated queue topic.
|
void |
setUniqueId(String uniqueId)
Sets the unique id.
|
void |
setVersion(int index,
int version,
Object value)
Sets the value for the version.
|
int |
size()
Gets the number of fields.
|
public void add(int index, Object value)
index
- the indexvalue
- the valuepublic void add(Object value)
value
- the valuepublic void addVersion(int index, Object value)
index
- the column numbervalue
- the value to addpublic void clear()
public boolean contains(int index, Object value, boolean ignoreCase, boolean doTrim)
index
- the column numbervalue
- the value to checkignoreCase
- if true
ignore char case when comparingdoTrim
- if true
trim before comparingtrue
if any version of the cell contains given valuepublic DataSetRecord copy()
public void deleteCol(int col)
col
- the columnpublic boolean equals(Object o)
equals
in class Object
o
- The object to compare withpublic Object get(int index)
index
- the indexpublic Object getData()
public int getIndexOfVersion(int index, Object value, boolean ignoreCase, boolean doTrim)
index
- the columnvalue
- the valueignoreCase
- if true
ignore char case when comparingdoTrim
- if true
trim before comparingpublic int getNumberOfVersions(int index)
index
- the cell indexpublic Object getVersion(int index, int version)
index
- the index of the cellversion
- the version number. Starts from 0.public void normalize(int size)
size
- the sizepublic void removeVersion(int index, int version)
index
- the index of the cellversion
- the versionpublic void set(int index, Object value)
index
- the indexvalue
- the valuepublic void setData(Object data)
data
- the new datapublic void setVersion(int index, int version, Object value)
index
- the columnversion
- the version numbervalue
- the valuepublic int size()
public String getUniqueId()
public void setUniqueId(String uniqueId)
uniqueId
- the new unique idpublic String getCrudAction()
public void setCrudAction(String crudAction)
crudAction
- the new crud actionpublic String getTarget()
public void setTarget(String target)
target
- the new targetpublic DataSetRecord getParentDataSetRecord()
public void setParentDataSetRecord(DataSetRecord parentDataSetRecord)
parentDataSetRecord
- the new parent data set recordCopyright © 2010-2020 Toolsverse. All Rights Reserved.