Nuxeo Enterprise Platform 5.4

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

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.Fragment
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CollectionFragment, SimpleFragment

public abstract class Fragment
extends java.lang.Object
implements java.io.Serializable

A rich value corresponding to one row or a collection of rows in a table.

In addition to the basic Row, this holds the old values (to check dirty state), the state and a reference to the session.

This class has two kinds of state-changing methods:

Author:
Florent Guillaume
See Also:
Serialized Form

Nested Class Summary
static class Fragment.State
          The possible states of a fragment.
 
Method Summary
 void clearDirty()
          Clears the dirty state.
 java.io.Serializable getId()
          Gets the id.
 Fragment.State getState()
          Gets the state.
 void setId(java.io.Serializable id)
          Sets the id.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getState

public Fragment.State getState()
Gets the state.

Returns:
the state

setId

public void setId(java.io.Serializable id)
Sets the id. This only used at most once to change a temporary id to the persistent one.

Parameters:
id - the new persistent id

getId

public java.io.Serializable getId()
Gets the id.

Returns:
the id

clearDirty

public void clearDirty()
Clears the dirty state.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.