public final class SimpleFragment extends Fragment
Modifier and Type | Class and Description |
---|---|
static class |
SimpleFragment.FieldComparator
Comparator of
SimpleFragment s according to a field. |
Fragment.State
Modifier and Type | Field and Description |
---|---|
static SimpleFragment |
UNKNOWN |
Constructor and Description |
---|
SimpleFragment(Row row,
Fragment.State state,
PersistenceContext context)
Constructs a
SimpleFragment from a Row . |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final SimpleFragment UNKNOWN
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
public Serializable get(String key) throws StorageException
key
- the keyStorageException
public void put(String key, Serializable value) throws StorageException
key
- the keyvalue
- the valueStorageException
public String getString(String key) throws StorageException
String
value.key
- the keyString
ClassCastException
- if the value is not a String
StorageException
Copyright © 2015 Nuxeo SA. All rights reserved.