|
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.Fragment org.nuxeo.ecm.core.storage.sql.SimpleFragment
public final class SimpleFragment
A type of fragment corresponding to a single row in a table and its associated in-memory information (state, dirty fields, attached context).
Nested Class Summary | |
---|---|
static class |
SimpleFragment.FieldComparator
Comparator of SimpleFragment s according to a field. |
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.sql.Fragment |
---|
Fragment.State |
Field Summary | |
---|---|
static SimpleFragment |
UNKNOWN
|
Constructor Summary | |
---|---|
SimpleFragment(Row row,
Fragment.State state,
PersistenceContext context)
Constructs a SimpleFragment from a Row . |
Method Summary | |
---|---|
Serializable |
get(String key)
Gets a value by key. |
List<String> |
getDirtyKeys()
Gets the dirty keys (keys of values changed since last clear). |
String |
getString(String key)
Returns a String value. |
void |
put(String key,
Serializable value)
Puts a value by key. |
Methods inherited from class org.nuxeo.ecm.core.storage.sql.Fragment |
---|
clearDirty, getId, getState, setId, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SimpleFragment UNKNOWN
Constructor Detail |
---|
public SimpleFragment(Row row, Fragment.State state, PersistenceContext context)
SimpleFragment
from a Row
.
row
- the row, or null
state
- the initial state for the fragmentcontext
- the persistence context to which the fragment is tied, or
null
Method Detail |
---|
public Serializable get(String key) throws StorageException
key
- the key
StorageException
public void put(String key, Serializable value) throws StorageException
key
- the keyvalue
- the value
StorageException
public String getString(String key) throws StorageException
String
value.
key
- the key
String
ClassCastException
- if the value is not a String
StorageException
public List<String> getDirtyKeys()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |