org.nuxeo.ecm.core.storage.sql
Class CollectionFragment
java.lang.Object
org.nuxeo.ecm.core.storage.sql.Fragment
org.nuxeo.ecm.core.storage.sql.CollectionFragment
- All Implemented Interfaces:
- Serializable
public class CollectionFragment
- extends Fragment
A type of fragment corresponding to several rows with the same id.
- See Also:
- Serialized Form
Method Summary |
Serializable[] |
get()
Gets the collection value. |
boolean |
isDirty()
Checks if the array is dirty (values changed since last clear). |
void |
set(Serializable[] value)
Sets a collection value. |
CollectionFragment
public CollectionFragment(Row row,
Fragment.State state,
PersistenceContext context)
- Constructs a
CollectionFragment
from a Row
.
- Parameters:
row
- the rowstate
- the initial state for the fragmentcontext
- the persistence context to which the fragment is tied, or
null
set
public void set(Serializable[] value)
throws StorageException
- Sets a collection value.
- Parameters:
value
- the value
- Throws:
StorageException
get
public Serializable[] get()
throws StorageException
- Gets the collection value.
- Returns:
- the value
- Throws:
StorageException
isDirty
public boolean isDirty()
- Checks if the array is dirty (values changed since last clear).
- Returns:
true
if the array changed
Copyright © 2011 Nuxeo SAS. All Rights Reserved.