fr.ifremer.allegro.data.batch.generic.service
Class RemoteBatchFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.data.batch.generic.service.RemoteBatchFullServiceBase
All Implemented Interfaces:
RemoteBatchFullService
Direct Known Subclasses:
RemoteBatchFullServiceImpl

public abstract class RemoteBatchFullServiceBase
extends java.lang.Object
implements RemoteBatchFullService

Spring Service base class for fr.ifremer.allegro.data.batch.generic.service.RemoteBatchFullService, provides access to all services and entities referenced by this service.

See Also:
RemoteBatchFullService

Constructor Summary
RemoteBatchFullServiceBase()
           
 
Method Summary
 RemoteBatchFullVO[] getAllBatch()
           
 RemoteBatchFullVO getBatchById(java.lang.Integer id)
           
 RemoteBatchFullVO[] getBatchByIds(java.lang.Integer[] id)
           
 RemoteBatchFullVO getBatchByNaturalId(RemoteBatchNaturalId batchNaturalId)
           
 RemoteBatchFullVO[] getBatchByParentBatchId(java.lang.Integer id)
           
protected  BatchDao getBatchDao()
          Gets the reference to batch's DAO.
 RemoteBatchNaturalId getBatchNaturalIdById(java.lang.Integer id)
           
 RemoteBatchNaturalId[] getBatchNaturalIds()
           
 ClusterBatch getClusterBatchByIdentifiers(java.lang.Integer id)
           
protected  java.lang.String getMessage(java.lang.String key)
          Gets the message having the given key in the underlying message bundle.
protected  java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments)
          Gets the message having the given key and arguments in the underlying message bundle.
protected  java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments, java.util.Locale locale)
          Gets the message having the given key using the given arguments for the given locale.
protected  org.springframework.context.MessageSource getMessages()
          Gets the message source available to this service.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  ProduceDao getProduceDao()
          Gets the reference to produce's DAO.
protected  QuantificationMeasurementDao getQuantificationMeasurementDao()
          Gets the reference to quantificationMeasurement's DAO.
protected abstract  RemoteBatchFullVO[] handleGetAllBatch()
          Performs the core logic for getAllBatch()
protected abstract  RemoteBatchFullVO handleGetBatchById(java.lang.Integer id)
          Performs the core logic for getBatchById(java.lang.Integer)
protected abstract  RemoteBatchFullVO[] handleGetBatchByIds(java.lang.Integer[] id)
          Performs the core logic for getBatchByIds(java.lang.Integer[])
protected abstract  RemoteBatchFullVO handleGetBatchByNaturalId(RemoteBatchNaturalId batchNaturalId)
          Performs the core logic for getBatchByNaturalId(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId)
protected abstract  RemoteBatchFullVO[] handleGetBatchByParentBatchId(java.lang.Integer id)
          Performs the core logic for getBatchByParentBatchId(java.lang.Integer)
protected abstract  RemoteBatchNaturalId handleGetBatchNaturalIdById(java.lang.Integer id)
          Performs the core logic for getBatchNaturalIdById(java.lang.Integer)
protected abstract  RemoteBatchNaturalId[] handleGetBatchNaturalIds()
          Performs the core logic for getBatchNaturalIds()
protected abstract  ClusterBatch handleGetClusterBatchByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterBatchByIdentifiers(java.lang.Integer)
protected abstract  boolean handleRemoteBatchFullVOsAreEqual(RemoteBatchFullVO remoteBatchFullVOFirst, RemoteBatchFullVO remoteBatchFullVOSecond)
          Performs the core logic for remoteBatchFullVOsAreEqual(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)
protected abstract  boolean handleRemoteBatchFullVOsAreEqualOnIdentifiers(RemoteBatchFullVO remoteBatchFullVOFirst, RemoteBatchFullVO remoteBatchFullVOSecond)
          Performs the core logic for remoteBatchFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)
protected abstract  void handleRemoveBatch(RemoteBatchFullVO batch)
          Performs the core logic for removeBatch(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)
 boolean remoteBatchFullVOsAreEqual(RemoteBatchFullVO remoteBatchFullVOFirst, RemoteBatchFullVO remoteBatchFullVOSecond)
           
 boolean remoteBatchFullVOsAreEqualOnIdentifiers(RemoteBatchFullVO remoteBatchFullVOFirst, RemoteBatchFullVO remoteBatchFullVOSecond)
           
 void removeBatch(RemoteBatchFullVO batch)
           
 void setBatchDao(BatchDao batchDao)
          Sets the reference to batch's DAO.
 void setProduceDao(ProduceDao produceDao)
          Sets the reference to produce's DAO.
 void setQuantificationMeasurementDao(QuantificationMeasurementDao quantificationMeasurementDao)
          Sets the reference to quantificationMeasurement's DAO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBatchFullServiceBase

public RemoteBatchFullServiceBase()
Method Detail

setBatchDao

public void setBatchDao(BatchDao batchDao)
Sets the reference to batch's DAO.


getBatchDao

protected BatchDao getBatchDao()
Gets the reference to batch's DAO.


setQuantificationMeasurementDao

public void setQuantificationMeasurementDao(QuantificationMeasurementDao quantificationMeasurementDao)
Sets the reference to quantificationMeasurement's DAO.


getQuantificationMeasurementDao

protected QuantificationMeasurementDao getQuantificationMeasurementDao()
Gets the reference to quantificationMeasurement's DAO.


setProduceDao

public void setProduceDao(ProduceDao produceDao)
Sets the reference to produce's DAO.


getProduceDao

protected ProduceDao getProduceDao()
Gets the reference to produce's DAO.


removeBatch

public void removeBatch(RemoteBatchFullVO batch)
Specified by:
removeBatch in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.removeBatch(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

handleRemoveBatch

protected abstract void handleRemoveBatch(RemoteBatchFullVO batch)
                                   throws java.lang.Exception
Performs the core logic for removeBatch(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

Throws:
java.lang.Exception

getAllBatch

public RemoteBatchFullVO[] getAllBatch()
Specified by:
getAllBatch in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getAllBatch()

handleGetAllBatch

protected abstract RemoteBatchFullVO[] handleGetAllBatch()
                                                  throws java.lang.Exception
Performs the core logic for getAllBatch()

Throws:
java.lang.Exception

getBatchById

public RemoteBatchFullVO getBatchById(java.lang.Integer id)
Specified by:
getBatchById in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getBatchById(java.lang.Integer)

handleGetBatchById

protected abstract RemoteBatchFullVO handleGetBatchById(java.lang.Integer id)
                                                 throws java.lang.Exception
Performs the core logic for getBatchById(java.lang.Integer)

Throws:
java.lang.Exception

getBatchByIds

public RemoteBatchFullVO[] getBatchByIds(java.lang.Integer[] id)
Specified by:
getBatchByIds in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getBatchByIds(java.lang.Integer[])

handleGetBatchByIds

protected abstract RemoteBatchFullVO[] handleGetBatchByIds(java.lang.Integer[] id)
                                                    throws java.lang.Exception
Performs the core logic for getBatchByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getBatchByParentBatchId

public RemoteBatchFullVO[] getBatchByParentBatchId(java.lang.Integer id)
Specified by:
getBatchByParentBatchId in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getBatchByParentBatchId(java.lang.Integer)

handleGetBatchByParentBatchId

protected abstract RemoteBatchFullVO[] handleGetBatchByParentBatchId(java.lang.Integer id)
                                                              throws java.lang.Exception
Performs the core logic for getBatchByParentBatchId(java.lang.Integer)

Throws:
java.lang.Exception

remoteBatchFullVOsAreEqualOnIdentifiers

public boolean remoteBatchFullVOsAreEqualOnIdentifiers(RemoteBatchFullVO remoteBatchFullVOFirst,
                                                       RemoteBatchFullVO remoteBatchFullVOSecond)
Specified by:
remoteBatchFullVOsAreEqualOnIdentifiers in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.remoteBatchFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

handleRemoteBatchFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteBatchFullVOsAreEqualOnIdentifiers(RemoteBatchFullVO remoteBatchFullVOFirst,
                                                                         RemoteBatchFullVO remoteBatchFullVOSecond)
                                                                  throws java.lang.Exception
Performs the core logic for remoteBatchFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

Throws:
java.lang.Exception

remoteBatchFullVOsAreEqual

public boolean remoteBatchFullVOsAreEqual(RemoteBatchFullVO remoteBatchFullVOFirst,
                                          RemoteBatchFullVO remoteBatchFullVOSecond)
Specified by:
remoteBatchFullVOsAreEqual in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.remoteBatchFullVOsAreEqual(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

handleRemoteBatchFullVOsAreEqual

protected abstract boolean handleRemoteBatchFullVOsAreEqual(RemoteBatchFullVO remoteBatchFullVOFirst,
                                                            RemoteBatchFullVO remoteBatchFullVOSecond)
                                                     throws java.lang.Exception
Performs the core logic for remoteBatchFullVOsAreEqual(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

Throws:
java.lang.Exception

getBatchNaturalIds

public RemoteBatchNaturalId[] getBatchNaturalIds()
Specified by:
getBatchNaturalIds in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getBatchNaturalIds()

handleGetBatchNaturalIds

protected abstract RemoteBatchNaturalId[] handleGetBatchNaturalIds()
                                                            throws java.lang.Exception
Performs the core logic for getBatchNaturalIds()

Throws:
java.lang.Exception

getBatchByNaturalId

public RemoteBatchFullVO getBatchByNaturalId(RemoteBatchNaturalId batchNaturalId)
Specified by:
getBatchByNaturalId in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getBatchByNaturalId(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId)

handleGetBatchByNaturalId

protected abstract RemoteBatchFullVO handleGetBatchByNaturalId(RemoteBatchNaturalId batchNaturalId)
                                                        throws java.lang.Exception
Performs the core logic for getBatchByNaturalId(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId)

Throws:
java.lang.Exception

getBatchNaturalIdById

public RemoteBatchNaturalId getBatchNaturalIdById(java.lang.Integer id)
Specified by:
getBatchNaturalIdById in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getBatchNaturalIdById(java.lang.Integer)

handleGetBatchNaturalIdById

protected abstract RemoteBatchNaturalId handleGetBatchNaturalIdById(java.lang.Integer id)
                                                             throws java.lang.Exception
Performs the core logic for getBatchNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

getClusterBatchByIdentifiers

public ClusterBatch getClusterBatchByIdentifiers(java.lang.Integer id)
Specified by:
getClusterBatchByIdentifiers in interface RemoteBatchFullService
See Also:
RemoteBatchFullService.getClusterBatchByIdentifiers(java.lang.Integer)

handleGetClusterBatchByIdentifiers

protected abstract ClusterBatch handleGetClusterBatchByIdentifiers(java.lang.Integer id)
                                                            throws java.lang.Exception
Performs the core logic for getClusterBatchByIdentifiers(java.lang.Integer)

Throws:
java.lang.Exception

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

getMessages

protected org.springframework.context.MessageSource getMessages()
Gets the message source available to this service.


getMessage

protected java.lang.String getMessage(java.lang.String key)
Gets the message having the given key in the underlying message bundle.

Parameters:
key - the key of the message in the messages.properties message bundle.

getMessage

protected java.lang.String getMessage(java.lang.String key,
                                      java.lang.Object[] arguments)
Gets the message having the given key and arguments in the underlying message bundle.

Parameters:
key - the key of the message in the messages.properties message bundle.
arguments - any arguments to substitute when resolving the message.

getMessage

protected java.lang.String getMessage(java.lang.String key,
                                      java.lang.Object[] arguments,
                                      java.util.Locale locale)
Gets the message having the given key using the given arguments for the given locale.

Parameters:
key - the key of the message in the messages.properties message bundle.
arguments - any arguments to substitute when resolving the message.
locale - the locale of the messages to retrieve.


Copyright © 2008-2010 IFREMER. All Rights Reserved.