org.apache.openjpa.jdbc.kernel
Class PreparedStatementManagerImpl

java.lang.Object
  extended by org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl
All Implemented Interfaces:
PreparedStatementManager

public class PreparedStatementManagerImpl
extends Object
implements PreparedStatementManager

Basic prepared statement manager implementation.

Author:
Abe White

Field Summary
protected  Connection _conn
           
protected  DBDictionary _dict
           
protected  Collection _exceptions
           
protected  JDBCStore _store
           
 
Constructor Summary
PreparedStatementManagerImpl(JDBCStore store, Connection conn)
          Constructor.
 
Method Summary
 void flush()
          This method must be called after the last row has been flushed, to flush any remaining statements.
 void flush(RowImpl row)
          Flush the given row.
protected  void flushInternal(RowImpl row)
          Flush the given row.
 Collection getExceptions()
          Return the exceptions encountered during all flushes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_store

protected final JDBCStore _store

_conn

protected final Connection _conn

_dict

protected final DBDictionary _dict

_exceptions

protected final Collection _exceptions
Constructor Detail

PreparedStatementManagerImpl

public PreparedStatementManagerImpl(JDBCStore store,
                                    Connection conn)
Constructor. Supply connection.

Method Detail

getExceptions

public Collection getExceptions()
Description copied from interface: PreparedStatementManager
Return the exceptions encountered during all flushes.

Specified by:
getExceptions in interface PreparedStatementManager

flush

public void flush(RowImpl row)
Description copied from interface: PreparedStatementManager
Flush the given row.

Specified by:
flush in interface PreparedStatementManager

flushInternal

protected void flushInternal(RowImpl row)
                      throws SQLException
Flush the given row.

Throws:
SQLException

flush

public void flush()
Description copied from interface: PreparedStatementManager
This method must be called after the last row has been flushed, to flush any remaining statements.

Specified by:
flush in interface PreparedStatementManager


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.