public class OAConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bAvailable |
protected boolean |
bGettingStatement |
protected Connection |
connection |
protected Vector<com.viaoa.datasource.jdbc.connection.OAConnection.Pool> |
vecStatement |
protected Vector<PreparedStatement> |
vecUsedBatchPreparedStatement |
protected Vector<PreparedStatement> |
vecUsedPreparedStatement |
| Constructor and Description |
|---|
OAConnection(Connection con) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearOpenBatches() |
protected void |
executeOpenBatches() |
PreparedStatement |
getBatchPreparedStatement(String sql)
Must be in an OATransaction that has allowBatch=true
|
Statement |
getBatchStatement(String message)
Must be in an OATransaction that has allowBatch=true
|
Connection |
getConnection() |
protected int |
getCurrentlyUsedStatementCount() |
void |
getInfo(Vector vec) |
PreparedStatement |
getPreparedStatement(String sql,
boolean bHasAutoGenerated) |
Statement |
getStatement(String message) |
int |
getTotalPreparedStatements() |
int |
getTotalUsed() |
boolean |
isAllowingBatch() |
boolean |
releasePreparedStatement(PreparedStatement ps,
boolean bCanBeReused) |
boolean |
releaseStatement(Statement statement)
returns true if found
|
protected final Connection connection
protected final Vector<com.viaoa.datasource.jdbc.connection.OAConnection.Pool> vecStatement
protected final Vector<PreparedStatement> vecUsedPreparedStatement
protected final Vector<PreparedStatement> vecUsedBatchPreparedStatement
protected volatile boolean bAvailable
protected volatile boolean bGettingStatement
public OAConnection(Connection con)
public boolean isAllowingBatch()
public Connection getConnection()
public Statement getBatchStatement(String message) throws SQLException
SQLExceptionpublic Statement getStatement(String message) throws SQLException
SQLExceptionpublic boolean releaseStatement(Statement statement)
protected void executeOpenBatches()
throws SQLException
SQLExceptionprotected void clearOpenBatches()
throws SQLException
SQLExceptionpublic PreparedStatement getBatchPreparedStatement(String sql) throws SQLException
SQLExceptionpublic PreparedStatement getPreparedStatement(String sql, boolean bHasAutoGenerated) throws SQLException
SQLExceptionpublic boolean releasePreparedStatement(PreparedStatement ps, boolean bCanBeReused)
public int getTotalUsed()
protected int getCurrentlyUsedStatementCount()
public void getInfo(Vector vec)
public int getTotalPreparedStatements()
Copyright © 1999–2025 ViaOA. All rights reserved.