class VersionAttachStrategy extends AttachStrategy implements DetachState
dblval, field, longval, objvalDETACH_ALL, DETACH_FETCH_GROUPS, DETACH_FGS, DETACH_LOADED| Constructor and Description |
|---|
VersionAttachStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Object |
attach(AttachManager manager,
Object toAttach,
ClassMetaData meta,
PersistenceCapable into,
OpenJPAStateManager owner,
ValueMetaData ownerMeta,
boolean explicit)
Attach.
|
protected PersistenceCapable |
findFromDatabase(AttachManager manager,
Object pc)
Find a PersistenceCapable instance of an Object if it exists in the
database.
|
protected Object |
getDetachedObjectId(AttachManager manager,
Object toAttach)
Return the identity of the given detached instance.
|
protected void |
provideField(Object toAttach,
StateManagerImpl sm,
int field)
Provide the given field into this field manager.
|
attachCollection, attachField, attachMap, getReference, persistclear, fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringField, storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringFieldprotected Object getDetachedObjectId(AttachManager manager, Object toAttach)
AttachStrategygetDetachedObjectId in class AttachStrategyprotected void provideField(Object toAttach, StateManagerImpl sm, int field)
AttachStrategyprovideField in class AttachStrategypublic Object attach(AttachManager manager, Object toAttach, ClassMetaData meta, PersistenceCapable into, OpenJPAStateManager owner, ValueMetaData ownerMeta, boolean explicit)
AttachStrategyattach in class AttachStrategymanager - manager holding cache of attached instancestoAttach - detached instancemeta - metadata for the instance being attachedinto - instance we're attaching intoowner - state manager for intoownerMeta - field we traversed to find toAttachexplicit - whether to make new instances explicitly persistentprotected PersistenceCapable findFromDatabase(AttachManager manager, Object pc)
pc - An object which will be attached into the current context. The
object may or may not correspond to a row in the database.Copyright © 2006–2015 Apache Software Foundation. All rights reserved.