An extension of the OjbGpsDevice that utilizes Spring ojb
features. Uses Spring PersistenceBrokerTemplate and
OjbFactoryUtils to get the current
PersistenceBroker for batch indexing (the index()
operation).
You can provide the PersistenceBrokerTemplate, though it is
not required since it is created the same way the
PersistenceBrokerDaoSupport does.
Can be used with
SpringOjbGpsDeviceInterceptor to
provide real-time data mirroring without the need to write any code.
author: kimchy
setPersistenceBrokerTemplate(PersistenceBrokerTemplate persistenceBrokerTemplate) Sets Spring's
PersistenceBrokerTemplate to be used to fetch OJB
PersistenceBroker for batch indexing (the index() operation).
Uses Spring PersistenceBrokerTemplate and OjbFactoryUtils
to get OJB PersistenceBroker
getPersistenceBrokerTemplate
public PersistenceBrokerTemplate getPersistenceBrokerTemplate()(Code)
Returns the Spring's PersistenceBrokerTemplate.
setPersistenceBrokerTemplate
public void setPersistenceBrokerTemplate(PersistenceBrokerTemplate persistenceBrokerTemplate)(Code)
Sets Spring's
PersistenceBrokerTemplate to be used to fetch OJB
PersistenceBroker for batch indexing (the index() operation).
This is an optional parameter, since the PersistenceBrokerTemplate can be automatically created.
Parameters: persistenceBrokerTemplate -
Fields inherited from org.compass.gps.device.ojb.OjbGpsDevice