public class OAConnection extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
bAvailable |
protected boolean |
bGettingStatement |
protected Connection |
connection |
protected Vector<com.viaoa.ds.jdbc.connection.OAConnection.Pool> |
vecStatement |
protected Vector<PreparedStatement> |
vecUsedPreparedStatement |
Constructor and Description |
---|
OAConnection(Connection con) |
Modifier and Type | Method and Description |
---|---|
protected int |
getCurrentlyUsedStatementCount() |
void |
getInfo(Vector vec) |
PreparedStatement |
getPreparedStatement(String sql,
boolean bHasAutoGenerated) |
Statement |
getStatement(String message) |
int |
getTotalPreparedStatements() |
int |
getTotalUsed() |
boolean |
releasePreparedStatement(PreparedStatement ps,
boolean bCanBeReused) |
boolean |
releaseStatement(Statement statement)
returns true if found
|
protected Connection connection
protected Vector<com.viaoa.ds.jdbc.connection.OAConnection.Pool> vecStatement
protected Vector<PreparedStatement> vecUsedPreparedStatement
protected volatile boolean bAvailable
protected volatile boolean bGettingStatement
public OAConnection(Connection con)
public Statement getStatement(String message) throws SQLException
SQLException
public boolean releaseStatement(Statement statement)
public PreparedStatement getPreparedStatement(String sql, boolean bHasAutoGenerated) throws SQLException
SQLException
public boolean releasePreparedStatement(PreparedStatement ps, boolean bCanBeReused)
public int getTotalUsed()
protected int getCurrentlyUsedStatementCount()
public void getInfo(Vector vec)
public int getTotalPreparedStatements()
Copyright © 1999–2019 ViaOA. All rights reserved.