Class ObjectIdStateManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accessingField​(int idx)
      Field access callback.
      boolean assignObjectId​(boolean flush)
      Ask the store manager to assign a permanent oid to this new instance.
      boolean beforeRefresh​(boolean all)
      Prepare the instance for refresh
      void dirty​(int field)
      Mark the given field as dirty.
      void dirty​(java.lang.String field)
      Make named field dirty.
      java.lang.Object fetch​(int field)
      Return the externalized value of the field with the given index as an object.
      boolean fetchBoolean​(int field)
      Return the external value of the given field.
      boolean fetchBooleanField​(int field)
      Return the value of the given field.
      byte fetchByte​(int field)
      Return the external value of the given field.
      byte fetchByteField​(int field)
      Return the value of the given field.
      char fetchChar​(int field)
      Return the external value of the given field.
      char fetchCharField​(int field)
      Return the value of the given field.
      double fetchDouble​(int field)
      Return the external value of the given field.
      double fetchDoubleField​(int field)
      Return the value of the given field.
      java.lang.Object fetchField​(int field, boolean transitions)
      Return the value of the field with the given index as an object.
      float fetchFloat​(int field)
      Return the external value of the given field.
      float fetchFloatField​(int field)
      Return the value of the given field.
      java.lang.Object fetchInitialField​(int field)
      Return the value of the field at the specified index as of the beginning of the transaction.
      int fetchInt​(int field)
      Return the external value of the given field.
      int fetchIntField​(int field)
      Return the value of the given field.
      long fetchLong​(int field)
      Return the external value of the given field.
      long fetchLongField​(int field)
      Return the value of the given field.
      java.lang.Object fetchObject​(int field)
      Return the external value of the given field.
      java.lang.Object fetchObjectField​(int field)
      Fetch an object field by index.
      java.lang.Object fetchObjectId()
      Return the object id, assigning it if necessary.
      short fetchShort​(int field)
      Return the external value of the given field.
      short fetchShortField​(int field)
      Return the value of the given field.
      java.lang.String fetchString​(int field)
      Return the external value of the given field.
      java.lang.String fetchStringField​(int field)
      Return the value of the given field.
      StoreContext getContext()
      Return the managing context.
      java.util.BitSet getDirty()
      Return a read-only mask of the indexes of all dirty fields.
      java.util.BitSet getFlushed()
      Return a read-only mask of the indexes of all fields that have been flushed since they were last changed.
      java.lang.Object getGenericContext()
      Persistence context.
      java.lang.Object getId()
      Return the identifier for this state manager.
      java.lang.Object getImplData()
      An object that concrete back ends can associate with each instance.
      java.lang.Object getImplData​(int field)
      Field-level impl data.
      java.lang.Object getIntermediate​(int field)
      Use intermediate field data to store intermediate information that might be available before the field is fully loaded.
      java.util.BitSet getLoaded()
      Return a read-only mask of the indexes of all loaded fields.
      java.lang.Object getLock()
      The lock object set for this instance.
      java.lang.Object getManagedInstance()
      Return the managed instance.
      ClassMetaData getMetaData()
      Get the metadata for this instance.
      java.lang.Object getObjectId()
      Return the instance's object id.
      OpenJPAStateManager getOwner()
      Return the owning state if this is an embedded instance.
      int getOwnerIndex()
      Return the owning value's field index
      java.lang.Object getPCPrimaryKey​(java.lang.Object oid, int field)
      Return the persistence-capable primary key object by extracting the identity value of the related instance stored in the given field from the given object id.
      PCState getPCState()
      Return the state that this object is in.
      PersistenceCapable getPersistenceCapable()
      Return the PersistenceCapable instance that provides access to the instance managed by this state manager.
      java.util.BitSet getUnloaded​(FetchConfiguration fetch)
      Return a mutable mask of the unloaded fields that need loading based on the given fetch configuration.
      java.lang.Object getVersion()
      Return the current version indicator for this instance.
      void initialize​(java.lang.Class forType, PCState state)
      Initialize the state manager with a new instance of the given persistence capable type and the proper lifecycle state.
      boolean isDefaultValue​(int field)
      Return true if the given field has a default value.
      boolean isDelayed​(int field)
      Some field types (collection proxies) support delayed loading.
      boolean isDeleted()
      Whether the instance is deleted in this transaction.
      boolean isDetached()
      Whether the instance is detached (i.e. this manager is a detached state manager)
      boolean isDirty()
      Whether the instance has been modified in this transaction.
      boolean isEmbedded()
      Return true if this instance has an owner, meaning it is an embedded value.
      boolean isFlushed()
      Return whether this object has been flushed to the datastore in this transaction.
      boolean isFlushedDirty()
      Return whether this object has been flushed, then dirtied again.
      boolean isImplDataCacheable()
      Whether the instance-level impl data can be shared among instances in different contexts if L2 caching is enabled.
      boolean isImplDataCacheable​(int field)
      Whether the field's impl data is loaded and can be shared among instances in different contexts if L2 caching is enabled.
      boolean isNew()
      Whether the instance is newly-persisted in this transaction.
      boolean isPersistent()
      Whether the instance is persistent.
      boolean isProvisional()
      Return whether this object is provisionally persistent.
      boolean isTransactional()
      Whether the instance is transactional.
      boolean isVersionCheckRequired()
      Returns true if this state needs to issue a version check at flush time.
      boolean isVersionUpdateRequired()
      Returns true if this state needs to issue a version update, possibly as a result of being locked.
      void load​(FetchConfiguration fetch)
      Load fetch group fields.
      void loadDelayedField​(int field)
      If a field was marked delayed in a previous load operation this method can be used to load the field.
      void lock()  
      java.lang.Object newFieldProxy​(int field)
      Create a new hollow proxy instance for the given field.
      java.lang.Object newProxy​(int field)
      Create a new hollow proxy instance for the given field.
      void providedBooleanField​(PersistenceCapable pc, int idx, boolean cur)
      Provide state callback.
      void providedByteField​(PersistenceCapable pc, int idx, byte cur)
      Provide state callback.
      void providedCharField​(PersistenceCapable pc, int idx, char cur)
      Provide state callback.
      void providedDoubleField​(PersistenceCapable pc, int idx, double cur)
      Provide state callback.
      void providedFloatField​(PersistenceCapable pc, int idx, float cur)
      Provide state callback.
      void providedIntField​(PersistenceCapable pc, int idx, int cur)
      Provide state callback.
      void providedLongField​(PersistenceCapable pc, int idx, long cur)
      Provide state callback.
      void providedObjectField​(PersistenceCapable pc, int idx, java.lang.Object cur)
      Provide state callback.
      void providedShortField​(PersistenceCapable pc, int idx, short cur)
      Provide state callback.
      void providedStringField​(PersistenceCapable pc, int idx, java.lang.String cur)
      Provide state callback.
      void proxyDetachedDeserialized​(int idx)
      Proxy the given detached field after deserialization.
      void removed​(int field, java.lang.Object removed, boolean key)
      Notification that an element has been removed from the given field.
      boolean replaceBooleanField​(PersistenceCapable pc, int idx)
      Replace state callback.
      byte replaceByteField​(PersistenceCapable pc, int idx)
      Replace state callback.
      char replaceCharField​(PersistenceCapable pc, int idx)
      Replace state callback.
      double replaceDoubleField​(PersistenceCapable pc, int idx)
      Replace state callback.
      float replaceFloatField​(PersistenceCapable pc, int idx)
      Replace state callback.
      int replaceIntField​(PersistenceCapable pc, int idx)
      Replace state callback.
      long replaceLongField​(PersistenceCapable pc, int idx)
      Replace state callback.
      java.lang.Object replaceObjectField​(PersistenceCapable pc, int idx)
      Replace state callback.
      short replaceShortField​(PersistenceCapable pc, int idx)
      Replace state callback.
      StateManager replaceStateManager​(StateManager sm)
      Change state manager.
      java.lang.String replaceStringField​(PersistenceCapable pc, int idx)
      Replace state callback.
      boolean serializing()
      Callback to prepare instance for serialization.
      void setDelayed​(int field, boolean delay)
      Some field types (collection proxies) support delayed loading.
      java.lang.Object setImplData​(int field, java.lang.Object data)
      Field-level impl data.
      java.lang.Object setImplData​(java.lang.Object data, boolean cacheable)
      An object that concrete back ends can associate with each instance.
      void setIntermediate​(int field, java.lang.Object data)
      Use intermediate field data to store intermediate information that might be available before the field is fully loaded.
      void setLock​(java.lang.Object lock)
      The lock object set for this instance.
      void setNextVersion​(java.lang.Object version)
      Set the next version indicator in the datastore pending a successful flush.
      void setObjectId​(java.lang.Object oid)
      Set the object id for the managed instance.
      void setRemote​(int field, java.lang.Object value)
      Set the given field to the given value.
      void settingBooleanField​(PersistenceCapable pc, int idx, boolean cur, boolean next, int set)
      Setting state callback.
      void settingByteField​(PersistenceCapable pc, int idx, byte cur, byte next, int set)
      Setting state callback.
      void settingCharField​(PersistenceCapable pc, int idx, char cur, char next, int set)
      Setting state callback.
      void settingDoubleField​(PersistenceCapable pc, int idx, double cur, double next, int set)
      Setting state callback.
      void settingFloatField​(PersistenceCapable pc, int idx, float cur, float next, int set)
      Setting state callback.
      void settingIntField​(PersistenceCapable pc, int idx, int cur, int next, int set)
      Setting state callback.
      void settingLongField​(PersistenceCapable pc, int idx, long cur, long next, int set)
      Setting state callback.
      void settingObjectField​(PersistenceCapable pc, int idx, java.lang.Object cur, java.lang.Object next, int set)
      Setting state callback.
      void settingShortField​(PersistenceCapable pc, int idx, short cur, short next, int set)
      Setting state callback.
      void settingStringField​(PersistenceCapable pc, int idx, java.lang.String cur, java.lang.String next, int set)
      Setting state callback.
      void setVersion​(java.lang.Object version)
      Set the version indicator for this instance, as loaded from the data store.
      void store​(int field, java.lang.Object extVal)
      Set the value of the field with the given index as from the external object value.
      void storeBoolean​(int field, boolean extVal)
      Set the given external value back into the given field.
      void storeBooleanField​(int field, boolean extVal)
      Set the value of the given field.
      void storeByte​(int field, byte extVal)
      Set the given external value back into the given field.
      void storeByteField​(int field, byte extVal)
      Set the value of the given field.
      void storeChar​(int field, char extVal)
      Set the given external value back into the given field.
      void storeCharField​(int field, char extVal)
      Set the value of the given field.
      void storeDouble​(int field, double extVal)
      Set the given external value back into the given field.
      void storeDoubleField​(int field, double extVal)
      Set the value of the given field.
      void storeField​(int field, java.lang.Object value)
      Set the value of the field with the given index as an object.
      void storeFloat​(int field, float extVal)
      Set the given external value back into the given field.
      void storeFloatField​(int field, float extVal)
      Set the value of the given field.
      void storeInt​(int field, int extVal)
      Set the given external value back into the given field.
      void storeIntField​(int field, int extVal)
      Set the value of the given field.
      void storeLong​(int field, long extVal)
      Set the given external value back into the given field.
      void storeLongField​(int field, long extVal)
      Set the value of the given field.
      void storeObject​(int field, java.lang.Object extVal)
      Set the given external value back into the given field.
      void storeObjectField​(int field, java.lang.Object extVal)
      Set the value of the given field.
      void storeShort​(int field, short extVal)
      Set the given external value back into the given field.
      void storeShortField​(int field, short extVal)
      Set the value of the given field.
      void storeString​(int field, java.lang.String extVal)
      Set the given external value back into the given field.
      void storeStringField​(int field, java.lang.String extVal)
      Set the value of the given field.
      void unlock()  
      boolean writeDetached​(java.io.ObjectOutput out)
      Write detached state object and detached state manager to the given stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait