public class ImplHelper extends Object
Modifier and Type | Field and Description |
---|---|
static Map |
_unenhancedInstanceMap |
Constructor and Description |
---|
ImplHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
close(Object o)
Close the given resource.
|
static Object |
generateFieldValue(StoreContext ctx,
FieldMetaData fmd)
Generate a value for the given metadata, or return null.
|
static Object |
generateIdentityValue(StoreContext ctx,
ClassMetaData meta,
int typeCode)
Generate a value for the given metadata, or return null.
|
static Object |
getManagedInstance(Object o) |
static BitSet |
getUpdateFields(OpenJPAStateManager sm)
Returns the fields of the state that require an update.
|
static boolean |
isAssignable(Class from,
Class to)
Returns true if the referenced "to" class is assignable to the "from"
class.
|
static boolean |
isManageable(Object instance)
Returns true if the specified instance is manageable.
|
static boolean |
isManagedType(OpenJPAConfiguration conf,
Class type)
Returns true if the specified class is a type that can be managed by
OpenJPA.
|
static Collection |
loadAll(Collection sms,
StoreManager store,
PCState state,
int load,
FetchConfiguration fetch,
Object context)
Helper for store manager implementations.
|
static void |
registerPersistenceCapable(ReflectingPersistenceCapable pc) |
static PersistenceCapable |
toPersistenceCapable(Object o,
Object ctx) |
public static final Map _unenhancedInstanceMap
public static Collection loadAll(Collection sms, StoreManager store, PCState state, int load, FetchConfiguration fetch, Object context)
public static Object generateIdentityValue(StoreContext ctx, ClassMetaData meta, int typeCode)
ValueStrategies.SEQUENCE
,
ValueStrategies.UUID_STRING
, ValueStrategies.UUID_HEX
public static Object generateFieldValue(StoreContext ctx, FieldMetaData fmd)
ValueStrategies.SEQUENCE
,
ValueStrategies.UUID_STRING
, ValueStrategies.UUID_HEX
public static BitSet getUpdateFields(OpenJPAStateManager sm)
sm
- the state to checkpublic static void close(Object o)
public static boolean isManagedType(OpenJPAConfiguration conf, Class type)
type
- the class to testpublic static boolean isManageable(Object instance)
instance
- the object to checkpublic static boolean isAssignable(Class from, Class to)
from
- target class instance to be checked for assignabilityto
- second class instance to be checked for assignabilitypublic static PersistenceCapable toPersistenceCapable(Object o, Object ctx)
o
, or null
if o
is not manageable.public static void registerPersistenceCapable(ReflectingPersistenceCapable pc)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.