org.compass.gps.device.ojb
Class OjbGpsDeviceUtils

java.lang.Object
  extended by org.compass.gps.device.ojb.OjbGpsDeviceUtils

public abstract class OjbGpsDeviceUtils
extends Object

Sets of utilies to hadle the persistence broker and ojb device.

Author:
kimchy

Constructor Summary
OjbGpsDeviceUtils()
           
 
Method Summary
static void attachPersistenceBrokerForIndex(CompassGpsDevice device, org.apache.ojb.broker.PersistenceBroker persistenceBroker)
          Attach the ojb device as a lifecycle listener to the persistence broker.
static void attachPersistenceBrokerForMirror(CompassGpsDevice device, org.apache.ojb.broker.PersistenceBroker persistenceBroker)
          Attaches the persistence broker for batch indexing operation to the device.
static void removePersistenceBrokerForMirror(CompassGpsDevice device, org.apache.ojb.broker.PersistenceBroker persistenceBroker)
          Removes the ojb device as a lifecycle listener from the persistence broker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OjbGpsDeviceUtils

public OjbGpsDeviceUtils()
Method Detail

attachPersistenceBrokerForMirror

public static void attachPersistenceBrokerForMirror(CompassGpsDevice device,
                                                    org.apache.ojb.broker.PersistenceBroker persistenceBroker)
                                             throws NonOjbDeviceException
Attaches the persistence broker for batch indexing operation to the device.

Throws:
NonOjbDeviceException

removePersistenceBrokerForMirror

public static void removePersistenceBrokerForMirror(CompassGpsDevice device,
                                                    org.apache.ojb.broker.PersistenceBroker persistenceBroker)
                                             throws NonOjbDeviceException
Removes the ojb device as a lifecycle listener from the persistence broker.

Throws:
NonOjbDeviceException

attachPersistenceBrokerForIndex

public static void attachPersistenceBrokerForIndex(CompassGpsDevice device,
                                                   org.apache.ojb.broker.PersistenceBroker persistenceBroker)
                                            throws NonOjbDeviceException
Attach the ojb device as a lifecycle listener to the persistence broker.

Throws:
NonOjbDeviceException


Copyright (c) 2004-2008 The Compass Project.