Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Class CollectionFragment

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.Fragment
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.sql.Fragment
Fragment.State
 
Constructor Summary
CollectionFragment(Row row, Fragment.State state, PersistenceContext context)
          Constructs a CollectionFragment from a Row.
 
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.
 
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
 

Constructor Detail

CollectionFragment

public CollectionFragment(Row row,
                          Fragment.State state,
                          PersistenceContext context)
Constructs a CollectionFragment from a Row.

Parameters:
row - the row
state - the initial state for the fragment
context - the persistence context to which the fragment is tied, or null
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.