Last update: 2011-06-23

org.proteios.core
Class PeakBatcher

java.lang.Object
  extended by org.proteios.core.AbstractBatcher
      extended by org.proteios.core.BasicBatcher<PeakData>
          extended by org.proteios.core.PeakBatcher
All Implemented Interfaces:
AccessControlled, Batcher

public class PeakBatcher
extends BasicBatcher<PeakData>

Author:
gregory

Method Summary
 Item getType()
          Get the type of item supported by the batcher.
 void insert(Peak peak)
           
 void validate(PeakData data)
          Validate the data, since no validation is possible in set methods of the data object.
 
Methods inherited from class org.proteios.core.BasicBatcher
checkPermission, delete, delete, flush, flushDelete, flushInsert, flushUpdate, getTotalInsertCount, hasPermission, insert, update
 
Methods inherited from class org.proteios.core.AbstractBatcher
close, getBatchSize, getDbControl, getSessionControl, isClosed, setBatchSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public Item getType()
Description copied from class: BasicBatcher
Get the type of item supported by the batcher. The returned value is one of the values defined in the Item enumeration.

Specified by:
getType in class BasicBatcher<PeakData>
Returns:
A value indicating the type of item
See Also:
Item

validate

public void validate(PeakData data)
              throws InvalidDataException
Description copied from class: BasicBatcher
Validate the data, since no validation is possible in set methods of the data object. Ie. this is very similar to case 2 validation for items.

Specified by:
validate in class BasicBatcher<PeakData>
Parameters:
data - Data object to validate
Throws:
InvalidDataException - If the data object is invalid

insert

public void insert(Peak peak)

Last update: 2011-06-23