|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl
public class PreparedStatementManagerImpl
Basic prepared statement manager implementation.
Field Summary | |
---|---|
protected java.sql.Connection |
_conn
|
protected DBDictionary |
_dict
|
protected java.util.Collection |
_exceptions
|
protected JDBCStore |
_store
|
Constructor Summary | |
---|---|
PreparedStatementManagerImpl(JDBCStore store,
java.sql.Connection conn)
Constructor. |
Method Summary | |
---|---|
protected int |
executeUpdate(java.sql.PreparedStatement stmnt,
java.lang.String sql,
RowImpl row)
This method is to provide override for non-JDBC or JDBC-like implementation of executing update. |
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 |
flushAndUpdate(RowImpl row)
Flush the given row immediately. |
protected void |
flushInternal(RowImpl row)
Flush the given row. |
java.util.Collection |
getExceptions()
Return the exceptions encountered during all flushes. |
protected java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
This method is to provide override for non-JDBC or JDBC-like implementation of preparing statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final JDBCStore _store
protected final java.sql.Connection _conn
protected final DBDictionary _dict
protected final java.util.Collection _exceptions
Constructor Detail |
---|
public PreparedStatementManagerImpl(JDBCStore store, java.sql.Connection conn)
Method Detail |
---|
public java.util.Collection getExceptions()
PreparedStatementManager
getExceptions
in interface PreparedStatementManager
public void flush(RowImpl row)
PreparedStatementManager
flush
in interface PreparedStatementManager
protected void flushInternal(RowImpl row) throws java.sql.SQLException
java.sql.SQLException
protected void flushAndUpdate(RowImpl row) throws java.sql.SQLException
java.sql.SQLException
public void flush()
PreparedStatementManager
flush
in interface PreparedStatementManager
protected int executeUpdate(java.sql.PreparedStatement stmnt, java.lang.String sql, RowImpl row) throws java.sql.SQLException
java.sql.SQLException
protected java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |