|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.RowId org.nuxeo.ecm.core.storage.sql.Row
public final class Row
The data of a single row in a table (keys/values form a map), or of multiple rows with the same id (values is an array of Serializable).
The id of the row is distinguished internally from other columns. For fragments corresponding to created data, the initial id is a temporary one, and it will be changed after database insert.
Field Summary | |
---|---|
static int |
MAX_ARRAY
|
static int |
MAX_STRING
|
Serializable[] |
values
The row values. |
Fields inherited from class org.nuxeo.ecm.core.storage.sql.RowId |
---|
id, tableName |
Constructor Summary | |
---|---|
Row(String tableName,
Map<String,Serializable> map)
Constructs a new Row from a map. |
|
Row(String tableName,
Serializable id)
Constructs an empty Row for the given table with the given id
(may be null ). |
|
Row(String tableName,
Serializable id,
Serializable[] array)
Constructs a new Row from an array of values. |
Method Summary | |
---|---|
Row |
clone()
|
Serializable |
get(String key)
Gets a value from a key. |
List<String> |
getKeys()
Gets the list of keys. |
List<Serializable> |
getValues()
Gets the list of values. |
boolean |
isCollection()
|
static void |
printValue(Serializable value,
StringBuilder buf)
|
void |
put(String key,
Serializable value)
Puts a key/value. |
void |
putNew(String key,
Serializable value)
Puts a key/value, assuming the key is not already there. |
String |
toString()
|
Methods inherited from class org.nuxeo.ecm.core.storage.sql.RowId |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Serializable[] values
public static final int MAX_STRING
public static final int MAX_ARRAY
Constructor Detail |
---|
public Row(String tableName, Serializable id)
Row
for the given table with the given id
(may be null
).
public Row(String tableName, Map<String,Serializable> map)
Row
from a map.
map
- the initial data to usepublic Row(String tableName, Serializable id, Serializable[] array)
Row
from an array of values.
array
- the initial data to useMethod Detail |
---|
public Row clone()
clone
in class Object
public boolean isCollection()
public void put(String key, Serializable value)
key
- the keyvalue
- the valuepublic void putNew(String key, Serializable value)
key
- the keyvalue
- the valuepublic Serializable get(String key)
key
- the key
public List<String> getKeys()
public List<Serializable> getValues()
public String toString()
toString
in class RowId
public static void printValue(Serializable value, StringBuilder buf)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |