Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » kernel » [javadoc | source]
org.apache.openjpa.kernel
class: SingleFieldManager [javadoc | source]
java.lang.Object
   org.apache.openjpa.kernel.TransferFieldManager
      org.apache.openjpa.kernel.SingleFieldManager

All Implemented Interfaces:
    Serializable, FieldManager

FieldManager type used to hold onto a single field value and then dispense it via the fetch methods. The manager can also perform actions on the held field.
Fields inherited from org.apache.openjpa.kernel.TransferFieldManager:
dblval,  longval,  objval,  field
Constructor:
 public SingleFieldManager(StateManagerImpl sm,
    BrokerImpl broker) 
Method from org.apache.openjpa.kernel.SingleFieldManager Summary:
delete,   delete,   dereferenceDependent,   dereferenceDependent,   gatherCascadeRefresh,   isDefaultValue,   persist,   preFlush,   proxy,   releaseEmbedded,   serialize,   unproxy
Methods from org.apache.openjpa.kernel.TransferFieldManager:
clear,   fetchBooleanField,   fetchByteField,   fetchCharField,   fetchDoubleField,   fetchFloatField,   fetchIntField,   fetchLongField,   fetchObjectField,   fetchShortField,   fetchStringField,   storeBooleanField,   storeByteField,   storeCharField,   storeDoubleField,   storeFloatField,   storeIntField,   storeLongField,   storeObjectField,   storeShortField,   storeStringField
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.kernel.SingleFieldManager Detail:
 public  void delete(OpCallbacks call) 
    Delete and/or dereference field values.
  void delete(ValueMetaData vmd,
    Object obj,
    OpCallbacks call) 
    Delete an object embedded in the given value.
 public  void dereferenceDependent() 
    Dereference field values.
  void dereferenceDependent(Object obj) 
    Dereference the given object.
 public  void gatherCascadeRefresh(OpCallbacks call) 
    Recursively invoke the broker to gather cascade-refresh objects in the current field into the given set. This method is only called for fields that we know have cascade-refresh settings.
 public boolean isDefaultValue() 
    Return true if the last-provided field has a default value.
 public  void persist(OpCallbacks call) 
    Persist the stored field safely, preventing infinite recursion using the given set of already-persisted objects. This method is only called for fields that we know have cascade-immediate settings.
 public boolean preFlush(boolean logical,
    OpCallbacks call) 
    Perform pre-flush tasks on the current field. This includes checking for nulls, persisting pcs, embedding embedded fields, and ref'ing pc fields. Return true if the field needs to be replaced with the new value.
 public boolean proxy(boolean reset,
    boolean replaceNull) 
    Proxy the held field if needed. Return true if the field needs to be replaced with the now-proxied instance.
 public  void releaseEmbedded() 
    Release the currently embedded field (make it transient).
 public  void serialize(ObjectOutput out,
    boolean def) throws IOException 
    Write the stored field or its default value to the given stream.
 public  void unproxy() 
    Unproxies the current field if needed.