org.rimudb
Class BatchEntry

java.lang.Object
  extended by org.rimudb.BatchEntry

public class BatchEntry
extends java.lang.Object

Author:
Simon Ritchie

Constructor Summary
BatchEntry()
           
 
Method Summary
protected  void addDataObject(DataObject dataObject)
          Add a data object to the batch
 DataObject getDataObject(int index)
          Return the DataObject at index.
 java.util.List<DataObject> getDataObjectList()
           
 java.sql.PreparedStatement getPreparedStatement()
           
 Record[] getRecords()
          Return the records from the list of DataObjects.
 int getSize()
           
 Table getTable()
           
 int getType()
           
 boolean isMatchingEntry(Table table, int batchType)
          Return true if this batch entry matches the dataObjectClass and the batch type
 void setPreparedStatement(java.sql.PreparedStatement preparedStatement)
           
 void setTable(Table table)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchEntry

public BatchEntry()
Method Detail

getSize

public int getSize()

setType

public void setType(int type)

getType

public int getType()

setPreparedStatement

public void setPreparedStatement(java.sql.PreparedStatement preparedStatement)

getPreparedStatement

public java.sql.PreparedStatement getPreparedStatement()

addDataObject

protected void addDataObject(DataObject dataObject)
Add a data object to the batch


isMatchingEntry

public boolean isMatchingEntry(Table table,
                               int batchType)
Return true if this batch entry matches the dataObjectClass and the batch type

Parameters:
table - Table
batchType - int
Returns:
boolean

getDataObjectList

public java.util.List<DataObject> getDataObjectList()
Returns:
List

setTable

public void setTable(Table table)

getTable

public Table getTable()

getRecords

public Record[] getRecords()
Return the records from the list of DataObjects.

Returns:
Record[]

getDataObject

public DataObject getDataObject(int index)
Return the DataObject at index.

Parameters:
index - int
Returns:
DataObject


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.