Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » util » [javadoc | source]
org.apache.openjpa.util
public class: ImplHelper [javadoc | source]
java.lang.Object
   org.apache.openjpa.util.ImplHelper
Helper for OpenJPA back-ends.
Field Summary
public static final  Map _unenhancedInstanceMap     
Method from org.apache.openjpa.util.ImplHelper Summary:
close,   generateFieldValue,   generateIdentityValue,   getManagedInstance,   getUpdateFields,   isAssignable,   isManageable,   isManagedType,   loadAll,   registerPersistenceCapable,   toPersistenceCapable
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.util.ImplHelper Detail:
 public static  void close(Object o) 
    Close the given resource. The resource can be an extent iterator, query result, large result set relation, or any closeable OpenJPA component.
 public static Object generateFieldValue(StoreContext ctx,
    FieldMetaData fmd) 
 public static Object generateIdentityValue(StoreContext ctx,
    ClassMetaData meta,
    int typeCode) 
 public static Object getManagedInstance(Object o) 
 public static BitSet getUpdateFields(OpenJPAStateManager sm) 
    Returns the fields of the state that require an update.
 public static boolean isAssignable(Class from,
    Class to) 
    Returns true if the referenced "to" class is assignable to the "from" class. This helper method utilizes a cache to help avoid the overhead of the Class.isAssignableFrom() method.
 public static boolean isManageable(Object instance) 
    Returns true if the specified instance is manageable.
 public static boolean isManagedType(OpenJPAConfiguration conf,
    Class type) 
    Returns true if the specified class is a type that can be managed by OpenJPA.
 public static Collection loadAll(Collection sms,
    StoreManager store,
    PCState state,
    int load,
    FetchConfiguration fetch,
    Object context) 
    Helper for store manager implementations. This method simply delegates to the proper singular method for each state manager.
 public static  void registerPersistenceCapable(ReflectingPersistenceCapable pc) 
 public static PersistenceCapable toPersistenceCapable(Object o,
    Object ctx)