public class CollectionFragment extends Fragment
Fragment.State| Constructor and Description |
|---|
CollectionFragment(Row row,
Fragment.State state,
PersistenceContext context)
Constructs a
CollectionFragment from a Row. |
| Modifier and Type | Method and Description |
|---|---|
Serializable[] |
get()
Gets the collection value.
|
RowMapper.RowUpdate |
getRowUpdate()
Returns the row update to do in the database to write this value.
|
boolean |
isDirty()
Checks if the array is dirty (values changed since last clear).
|
static boolean |
isPrefix(Serializable[] left,
Serializable[] right)
Checks if the left array is a strict prefix of the right one.
|
protected Fragment.State |
refetch()
Refetches this fragment from the database.
|
protected Fragment.State |
refetchDeleted()
Resets the data for a fragment that was invalidated by deletion.
|
void |
set(Serializable[] value)
Sets a collection value.
|
accessed, clearDirty, getId, getState, markModified, setDeleted, setDetached, setId, setInvalidatedDeleted, setInvalidatedModified, setPristine, toStringpublic CollectionFragment(Row row, Fragment.State state, PersistenceContext context)
CollectionFragment from a Row.row - the rowstate - the initial state for the fragmentcontext - the persistence context to which the fragment is tied, or nullpublic void set(Serializable[] value)
value - the valuepublic Serializable[] get()
public boolean isDirty()
true if the array changedpublic RowMapper.RowUpdate getRowUpdate()
FragmentgetRowUpdate in class Fragmentnull if the value is unchanged since last clearpublic static boolean isPrefix(Serializable[] left, Serializable[] right)
protected Fragment.State refetch()
Fragmentrefetch in class FragmentFragment.State.PRISTINE or Fragment.State.ABSENTprotected Fragment.State refetchDeleted()
FragmentrefetchDeleted in class FragmentFragment.State.PRISTINE or Fragment.State.ABSENTCopyright © 2019 Nuxeo. All rights reserved.