org.openrdf.sail.rdbms.schema
Class Batch

java.lang.Object
  extended by org.openrdf.sail.rdbms.schema.Batch
Direct Known Subclasses:
TripleBatch, ValueBatch

public class Batch
extends Object

Author:
James Leigh

Field Summary
static Batch CLOSED_SIGNAL
           
 
Constructor Summary
Batch()
           
 
Method Summary
 void addBatch()
           
 int flush()
           
 int getMaxBatchSize()
           
 boolean isFull()
           
 boolean isReady()
           
 void setBatchStatement(PreparedStatement insert)
           
 void setInsertStatement(PreparedStatement insert)
           
 void setMaxBatchSize(int batchSize)
           
 void setObject(int parameterIndex, Object x)
           
 void setString(int parameterIndex, String x)
           
 void setTemporary(RdbmsTable temporary)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSED_SIGNAL

public static Batch CLOSED_SIGNAL
Constructor Detail

Batch

public Batch()
Method Detail

getMaxBatchSize

public int getMaxBatchSize()

setMaxBatchSize

public void setMaxBatchSize(int batchSize)

setTemporary

public void setTemporary(RdbmsTable temporary)

setBatchStatement

public void setBatchStatement(PreparedStatement insert)

setInsertStatement

public void setInsertStatement(PreparedStatement insert)

size

public int size()

isFull

public boolean isFull()

isReady

public boolean isReady()

setObject

public void setObject(int parameterIndex,
                      Object x)
               throws SQLException
Throws:
SQLException

setString

public void setString(int parameterIndex,
                      String x)
               throws SQLException
Throws:
SQLException

addBatch

public void addBatch()
              throws SQLException
Throws:
SQLException

flush

public int flush()
          throws SQLException
Returns:
-1 if already flushed
Throws:
SQLException


Copyright © 2001-2008 Aduna. All Rights Reserved.