|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.util.ImplHelper
public class ImplHelper
Helper for OpenJPA back-ends.
Constructor Summary | |
---|---|
ImplHelper()
|
Method Summary | |
---|---|
static void |
close(java.lang.Object o)
Close the given resource. |
static java.lang.Object |
generateFieldValue(StoreContext ctx,
FieldMetaData fmd)
Generate a value for the given metadata, or return null. |
static java.lang.Object |
generateIdentityValue(StoreContext ctx,
ClassMetaData meta,
int typeCode)
Generate a value for the given metadata, or return null. |
static java.lang.reflect.Method |
getGetter(java.lang.Class cls,
java.lang.String prop)
Return the getter method matching the given property name. |
static java.lang.reflect.Method |
getSetter(java.lang.Class cls,
java.lang.String prop)
Return the setter method matching the given property name. |
static boolean |
isManageable(java.lang.Object instance)
Returns true if the specified instance is manageable. |
static boolean |
isManagedType(java.lang.Class type)
Returns true if the specified class is a type that can be managed by OpenJPA. |
static java.util.Collection |
loadAll(java.util.Collection sms,
StoreManager store,
PCState state,
int load,
FetchConfiguration fetch,
java.lang.Object context)
Helper for store manager implementations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImplHelper()
Method Detail |
---|
public static java.lang.reflect.Method getGetter(java.lang.Class cls, java.lang.String prop)
public static java.lang.reflect.Method getSetter(java.lang.Class cls, java.lang.String prop)
public static java.util.Collection loadAll(java.util.Collection sms, StoreManager store, PCState state, int load, FetchConfiguration fetch, java.lang.Object context)
StoreManager.loadAll(java.util.Collection, org.apache.openjpa.kernel.PCState, int, org.apache.openjpa.kernel.FetchConfiguration, java.lang.Object)
public static java.lang.Object generateIdentityValue(StoreContext ctx, ClassMetaData meta, int typeCode)
ValueStrategies.SEQUENCE
,
ValueStrategies.UUID_STRING
, ValueStrategies.UUID_HEX
public static java.lang.Object generateFieldValue(StoreContext ctx, FieldMetaData fmd)
ValueStrategies.SEQUENCE
,
ValueStrategies.UUID_STRING
, ValueStrategies.UUID_HEX
public static void close(java.lang.Object o)
public static boolean isManagedType(java.lang.Class type)
type
- the class to test
public static boolean isManageable(java.lang.Object instance)
instance
- the object to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |