public interface PCData extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getCache()
Get the name of the cache where this data is stored.
|
Object |
getData(int i)
Return the data stored in the given field index.
|
Object |
getId()
Return the id of this instance.
|
Object |
getImplData()
Returns the instance-level impl data, or null if none.
|
Class |
getType()
Return the type of this instance.
|
Object |
getVersion()
Returns the current version object that this data was loaded from.
|
boolean |
isLoaded(int i)
Whether the given field index has stored data.
|
void |
load(OpenJPAStateManager sm,
BitSet fields,
FetchConfiguration fetch,
Object context)
Loads some or all of the marked fields from the cache into the
given state manager.
|
void |
load(OpenJPAStateManager sm,
FetchConfiguration fetch,
Object context)
Loads all fields that are currently stored in the cache
into the given state manager.
|
void |
setImplData(Object val)
Sets the stored instance-level impl data.
|
void |
setVersion(Object version)
Sets the current version object that this data was loaded from.
|
void |
store(OpenJPAStateManager sm)
Store all loaded fields of the state manager.
|
void |
store(OpenJPAStateManager sm,
BitSet fields)
Store the given fields from the state manager.
|
Object getId()
Class getType()
Object getImplData()
void setImplData(Object val)
Object getVersion()
void setVersion(Object version)
void load(OpenJPAStateManager sm, FetchConfiguration fetch, Object context)
sm
- the state manager to loadfetch
- the fetch configuration to use for loading related objectscontext
- current context informationvoid load(OpenJPAStateManager sm, BitSet fields, FetchConfiguration fetch, Object context)
sm
- the state manager to loadfields
- the fields to load; clear the bits for the fields
that are successfully loadedfetch
- the fetch configuration to use for loading related objectscontext
- current context informationvoid store(OpenJPAStateManager sm)
void store(OpenJPAStateManager sm, BitSet fields)
Object getData(int i)
boolean isLoaded(int i)
String getCache()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.