Overview | Package | Class | Tree | Deprecated | Index | Help
| SolarMetric Kodo JDO 3.1.6 generated on August 25 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## kodo.runtime
Interface KodoStateManagerSPI

All Superinterfaces:
  KodoStateManager, PersistenceCapable.ObjectIdFieldConsumer, PersistenceCapable.ObjectIdFieldManager, PersistenceCapable.ObjectIdFieldSupplier, StateManager

public interface KodoStateManagerSPI
extends KodoStateManager

Internal state manager interface.

Method Summary
`boolean` | `beforeRefresh(boolean refreshAll)` Prepare the instance for refresh
`boolean` | `isDependent()` Whether this object currently belongs or belonged on load to a dependent field.
`void` | `referenceDependent(KodoStateManager owner, int field, boolean dependent, boolean store)` Mark this object as referenced by the given field.
`void` | `setRemote(int field, Object value)` Set the given field to the given value.

Methods inherited from interface kodo.runtime.KodoStateManager
`fetch, fetchBoolean, fetchByte, fetchChar, fetchDouble, fetchField, fetchFloat, fetchInitialField, fetchInt, fetchLong, fetchObject, fetchShort, fetchString, getDirty, getFlushed, getImplData, getImplData, getIntermediate, getJDOState, getLoaded, getLock, getMetaData, getObjectId, getOwner, getOwnerField, getPersistenceCapable, getPersistenceManager, getUnloaded, getVersion, initialize, initialize, isDeleted, isDirty, isEmbedded, isFlushed, isImplDataCacheable, isImplDataCacheable, isNew, isPersistent, isTransactional, makeDirty, newFieldProxy, newProxy, removed, setImplData, setImplData, setIntermediate, setLock, setNextVersion, setTransactionalObjectId, setVersion, store, storeBoolean, storeByte, storeChar, storeDouble, storeField, storeFloat, storeInt, storeLong, storeObject, storeShort, storeString`

Methods inherited from interface javax.jdo.spi.StateManager
`getBooleanField, getByteField, getCharField, getDoubleField, getFloatField, getIntField, getLongField, getObjectField, getObjectId, getPersistenceManager, getShortField, getStringField, getTransactionalObjectId, isDeleted, isDirty, isLoaded, isNew, isPersistent, isTransactional, makeDirty, preSerialize, providedBooleanField, providedByteField, providedCharField, providedDoubleField, providedFloatField, providedIntField, providedLongField, providedObjectField, providedShortField, providedStringField, replacingBooleanField, replacingByteField, replacingCharField, replacingDoubleField, replacingFlags, replacingFloatField, replacingIntField, replacingLongField, replacingObjectField, replacingShortField, replacingStateManager, replacingStringField, setBooleanField, setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setObjectField, setShortField, setStringField`

Methods inherited from interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer
`storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringField`

Methods inherited from interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
`fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringField`

Method Detail

### isDependent

    public boolean isDependent()

  Whether this object currently belongs or belonged on load to a dependent field.

### referenceDependent

    public void referenceDependent(KodoStateManager owner,
                                   int field,
                                   boolean dependent,
                                   boolean store)

  Mark this object as referenced by the given field. This process occurs on load and flush. If this object was a dereferenced dependent object, clear the dereferenced flag so it is not deleted.

### beforeRefresh

    public boolean beforeRefresh(boolean refreshAll)

  Prepare the instance for refresh
  Parameters:
    `refreshAll` - true if this instance is one of a collection of objects being refreshed
  Returns:
    true if the object needs a refresh, false otherwise
  See Also:
    `PersistenceManager#refresh`

### setRemote

    public void setRemote(int field,
                          Object value)

  Set the given field to the given value. Make the field dirty as if user code set it. Do not delete dependent objects in the field's current value. This method is invoked by the remote package to synch a server-side state manager with remote changes. We do not need to delete dependent instances because they will have been deleted when the field changed on the client side, and those client-side deletes will be transmitted independently.
  Since:
    3.1

Overview | Package | Class | Tree | Deprecated | Index | Help
| SolarMetric Kodo JDO 3.1.6 generated on August 25 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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