org.jpox
Class JPOXHelper

java.lang.Object
  extended byjavax.jdo.JDOHelper
      extended byorg.jpox.JPOXHelper

public class JPOXHelper
extends javax.jdo.JDOHelper

Helper for persistence operations with JPOX. Extends JDOHelper so that people can use JPOXHelper if they wish.

Version:
$Revision: 1.1 $

Field Summary
protected static Localiser LOCALISER
          Localisation utility for output messages
 
Constructor Summary
JPOXHelper()
           
 
Method Summary
static java.lang.String[] getDetachedObjectDirtyFields(java.lang.Object obj, javax.jdo.PersistenceManager pm)
          Method to return the names of all fields that are currently dirty in the passed detached object.
static java.lang.String[] getDetachedObjectLoadedFields(java.lang.Object obj, javax.jdo.PersistenceManager pm)
          Method to return the names of all fields that are currently loaded in the passed detached object.
 
Methods inherited from class javax.jdo.JDOHelper
getObjectId, getObjectIds, getObjectIds, getPersistenceManager, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getPersistenceManagerFactory, getTransactionalObjectId, getVersion, isDeleted, isDetached, isDirty, isNew, isPersistent, isTransactional, makeDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Localisation utility for output messages

Constructor Detail

JPOXHelper

public JPOXHelper()
Method Detail

getDetachedObjectDirtyFields

public static java.lang.String[] getDetachedObjectDirtyFields(java.lang.Object obj,
                                                              javax.jdo.PersistenceManager pm)
Method to return the names of all fields that are currently dirty in the passed detached object. TODO Try to remove the need for the PM. We currently use it to generate the temporary StateManager

Parameters:
obj - The PersistenceCapable (detached)
pm - PersistenceManager to use
Returns:
Names of the fields that are dirty
Throws:
javax.jdo.JDOUserException - Thrown if the object is not detached

getDetachedObjectLoadedFields

public static java.lang.String[] getDetachedObjectLoadedFields(java.lang.Object obj,
                                                               javax.jdo.PersistenceManager pm)
Method to return the names of all fields that are currently loaded in the passed detached object. TODO Try to remove the need for the PM. We currently use it to generate the temporary StateManager

Parameters:
obj - The PersistenceCapable (detached)
pm - PersistenceManager to use
Returns:
Names of the fields that are loaded
Throws:
javax.jdo.JDOUserException - Thrown if the object is not detached


Copyright © -2007 . All Rights Reserved.