Overview | Package | Class | Tree | Deprecated | Index | Help
| SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.solarmetric.rd.kodo.runtime.rop
Class ROPStoreManager

    java.lang.Object
      |
      +--com.solarmetric.rd.kodo.runtime.DelegatingStoreManager
            |
            +--com.solarmetric.rd.kodo.runtime.rop.ROPStoreManager

All Implemented Interfaces:
  StoreManager

public class ROPStoreManager
extends DelegatingStoreManager

Wraps the native store manager to handle calls using custom `PCResultObjectProvider`s.

Constructor Summary
`ROPStoreManager(com.solarmetric.rd.kodo.runtime.StoreManager delegate)`

Method Summary
`boolean` | `initialize(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm, com.solarmetric.rd.kodo.runtime.JDOState state, java.lang.Object connection)` Initialize the given StateManager.
`void` | `load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm, int field, java.lang.Object connection)` Load the given StateManager.
`boolean` | `synchVersion(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm, java.lang.Object connection)` Update the version information in the given state manager to the version stored in the data store.

Methods inherited from class com.solarmetric.rd.kodo.runtime.DelegatingStoreManager
`begin, beginOptimistic, commit, copyDataStoreId, equals, exists, flush, getDataStoreIdClass, getDelegate, getInnermostDelegate, hashCode, newDataStoreId, newDataStoreId, newExtent, newQuery, rollback, setPersistenceManager`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ROPStoreManager

    public ROPStoreManager(com.solarmetric.rd.kodo.runtime.StoreManager delegate)

Method Detail

### initialize

    public boolean initialize(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
                              com.solarmetric.rd.kodo.runtime.JDOState state,
                              java.lang.Object connection)

  Description copied from interface: `StoreManager`
  Initialize the given StateManager. The `oid` of the StateManager will be set, and the `meta` field of the StateManager will be set to the class of the instance to load, or possibly one of its superclasses. Initialization involves first calling the `StateManagerImpl.initialize(javax.jdo.spi.PersistenceCapable, com.solarmetric.rd.kodo.runtime.JDOState)` method with a new instance of the correct type constructed with the `JDOImplHelper#newInstance(Class,StateManager,Object)` method (this will reset the `meta` field of the StateManager if the actual type was a subclass), then possibly loading fields if if desired. If this method is called during a data store transaction, the instance's database record should be locked. Version information can be loaded if desired through the `StateManagerImpl.setVersion(java.lang.Object)` method.

  Specified by:
    `initialize` in interface `StoreManager`
  Overrides:
    `initialize` in class `DelegatingStoreManager`
  Parameters:
    `sm` - the instance to initialize
    `state` - the lifecycle state to initialize the state manager with
    `connection` - the current connection information, or null if not given to the calling method of the persistence manager
  Returns:
    true if the matching instance exists in the data store, false otherwise

### synchVersion

    public boolean synchVersion(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
                                java.lang.Object connection)

  Description copied from interface: `StoreManager`
  Update the version information in the given state manager to the version stored in the data store.

  Specified by:
    `synchVersion` in interface `StoreManager`
  Overrides:
    `synchVersion` in class `DelegatingStoreManager`
  Parameters:
    `sm` - the instance to check
    `connection` - the current connection information, or null if not given to the calling method of the persistence manager
  Returns:
    true if the instance is up-to-date, false otherwise

### load

    public void load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
                     int field,
                     java.lang.Object connection)

  Description copied from interface: `StoreManager`
  Load the given StateManager. Note that any collection or map types loaded into the StateManager will be proxied with the correct type; therefore the StoreManager does not have to load the same concrete collection/map types as the instance declares. However, array types must be consistent with the array type stored by the PersistenceCapable instance. If this method is called during a data store transaction, the instance should be locked. If the given state manager does not have its version set already, version information can be loaded if desired through the `StateManagerImpl.setVersion(java.lang.Object)` method.

  Specified by:
    `load` in interface `StoreManager`
  Overrides:
    `load` in class `DelegatingStoreManager`
  Parameters:
    `sm` - the instance to load
    `field` - the field to load; the field corrsponding to the metadata field at the given absolute index should be loaded; additional fields can be loaded if desired; attempting to load an additional field that has been dirtied will cause the load to be ignored
    `connection` - the current connection information, or null if not given to the calling method of the persistence manager

Overview | Package | Class | Tree | Deprecated | Index | Help
| SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.