Methods Summary |
---|
public void | addBatch()
ps.addBatch();
|
public void | addBatch(java.lang.String sql)
ps.addBatch(sql);
|
public void | agedOut()
cached.set(false);
if (inUse.get() == 0)
ps.close();
|
public void | cancel()
ps.cancel();
|
public void | clearBatch()
ps.clearBatch();
|
public void | clearParameters()
ps.clearParameters();
|
public void | clearWarnings()
ps.clearWarnings();
|
public void | close()
inUse.decrement();
if (inUse.get() == 0)
{
if (cached.get() == false)
ps.close();
else
{
// Reset the defaults
if (defaultMaxFieldSize != currentMaxFieldSize)
{
ps.setMaxFieldSize(defaultMaxFieldSize);
currentMaxFieldSize = defaultMaxFieldSize;
}
if (defaultMaxRows != currentMaxRows)
{
ps.setMaxRows(defaultMaxRows);
currentMaxRows = defaultMaxRows;
}
if (defaultQueryTimeout != currentQueryTimeout)
{
ps.setQueryTimeout(defaultQueryTimeout);
currentQueryTimeout = defaultQueryTimeout;
}
if (defaultFetchDirection != currentFetchDirection)
{
ps.setFetchDirection(defaultFetchDirection);
currentFetchDirection = defaultFetchDirection;
}
if (defaultFetchSize != currentFetchSize)
{
ps.setFetchSize(defaultFetchSize);
currentFetchSize = defaultFetchSize;
}
}
}
|
public boolean | execute()
return ps.execute();
|
public boolean | execute(java.lang.String sql)
return ps.execute(sql);
|
public boolean | execute(java.lang.String sql, int autoGeneratedKeys)
return ps.execute(sql, autoGeneratedKeys);
|
public boolean | execute(java.lang.String sql, int[] columnIndexes)
return ps.execute(sql, columnIndexes);
|
public boolean | execute(java.lang.String sql, java.lang.String[] columnNames)
return ps.execute(sql, columnNames);
|
public int[] | executeBatch()
return ps.executeBatch();
|
public java.sql.ResultSet | executeQuery()
return ps.executeQuery();
|
public java.sql.ResultSet | executeQuery(java.lang.String sql)
return ps.executeQuery(sql);
|
public int | executeUpdate()
return ps.executeUpdate();
|
public int | executeUpdate(java.lang.String sql)
return ps.executeUpdate(sql);
|
public int | executeUpdate(java.lang.String sql, int autoGeneratedKeys)
return ps.executeUpdate(sql, autoGeneratedKeys);
|
public int | executeUpdate(java.lang.String sql, int[] columnIndexes)
return ps.executeUpdate(sql, columnIndexes);
|
public int | executeUpdate(java.lang.String sql, java.lang.String[] columnNames)
return ps.executeUpdate(sql, columnNames);
|
public java.sql.Connection | getConnection()
return ps.getConnection();
|
public int | getFetchDirection()
return ps.getFetchDirection();
|
public int | getFetchSize()
return ps.getFetchSize();
|
public java.sql.ResultSet | getGeneratedKeys()
return ps.getGeneratedKeys();
|
public int | getMaxFieldSize()
return ps.getMaxFieldSize();
|
public int | getMaxRows()
return ps.getMaxRows();
|
public java.sql.ResultSetMetaData | getMetaData()
return ps.getMetaData();
|
public boolean | getMoreResults()
return ps.getMoreResults();
|
public boolean | getMoreResults(int current)
return ps.getMoreResults(current);
|
public java.sql.ParameterMetaData | getParameterMetaData()
return ps.getParameterMetaData();
|
public int | getQueryTimeout()
return ps.getQueryTimeout();
|
public java.sql.ResultSet | getResultSet()
return ps.getResultSet();
|
public int | getResultSetConcurrency()
return ps.getResultSetConcurrency();
|
public int | getResultSetHoldability()
return ps.getResultSetHoldability();
|
public int | getResultSetType()
return ps.getResultSetType();
|
public java.sql.PreparedStatement | getUnderlyingPreparedStatement()
return ps;
|
public int | getUpdateCount()
return ps.getUpdateCount();
|
public java.sql.SQLWarning | getWarnings()
return ps.getWarnings();
|
public void | inUse()
inUse.increment();
|
public boolean | isInUse()
return inUse.get() > 0;
|
public void | setArray(int i, java.sql.Array x)
ps.setArray(i, x);
|
public void | setAsciiStream(int parameterIndex, java.io.InputStream x, int length)
ps.setAsciiStream(parameterIndex, x, length);
|
public void | setBigDecimal(int parameterIndex, java.math.BigDecimal x)
ps.setBigDecimal(parameterIndex, x);
|
public void | setBinaryStream(int parameterIndex, java.io.InputStream x, int length)
ps.setBinaryStream(parameterIndex, x, length);
|
public void | setBlob(int i, java.sql.Blob x)
ps.setBlob(i, x);
|
public void | setBoolean(int parameterIndex, boolean x)
ps.setBoolean(parameterIndex, x);
|
public void | setByte(int parameterIndex, byte x)
ps.setByte(parameterIndex, x);
|
public void | setBytes(int parameterIndex, byte[] x)
ps.setBytes(parameterIndex, x);
|
public void | setCharacterStream(int parameterIndex, java.io.Reader reader, int length)
ps.setCharacterStream(parameterIndex, reader, length);
|
public void | setClob(int i, java.sql.Clob x)
ps.setClob(i, x);
|
public void | setCursorName(java.lang.String name)
ps.setCursorName(name);
|
public void | setDate(int parameterIndex, java.sql.Date x)
ps.setDate(parameterIndex, x);
|
public void | setDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal)
ps.setDate(parameterIndex, x, cal);
|
public void | setDouble(int parameterIndex, double x)
ps.setDouble(parameterIndex, x);
|
public void | setEscapeProcessing(boolean enable)
ps.setEscapeProcessing(enable);
|
public void | setFetchDirection(int direction)
ps.setFetchDirection(direction);
currentFetchDirection = direction;
|
public void | setFetchSize(int rows)
ps.setFetchSize(rows);
currentFetchSize = rows;
|
public void | setFloat(int parameterIndex, float x)
ps.setFloat(parameterIndex, x);
|
public void | setInt(int parameterIndex, int x)
ps.setInt(parameterIndex, x);
|
public void | setLong(int parameterIndex, long x)
ps.setLong(parameterIndex, x);
|
public void | setMaxFieldSize(int max)
ps.setMaxFieldSize(max);
currentMaxFieldSize = max;
|
public void | setMaxRows(int max)
ps.setMaxRows(max);
currentMaxRows = max;
|
public void | setNull(int paramIndex, int sqlType, java.lang.String typeName)
ps.setNull(paramIndex, sqlType, typeName);
|
public void | setNull(int parameterIndex, int sqlType)
ps.setNull(parameterIndex, sqlType);
|
public void | setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale)
ps.setObject(parameterIndex, x, targetSqlType, scale);
|
public void | setObject(int parameterIndex, java.lang.Object x, int targetSqlType)
ps.setObject(parameterIndex, x, targetSqlType);
|
public void | setObject(int parameterIndex, java.lang.Object x)
ps.setObject(parameterIndex, x);
|
public void | setQueryTimeout(int seconds)
ps.setQueryTimeout(seconds);
currentQueryTimeout = seconds;
|
public void | setRef(int i, java.sql.Ref x)
ps.setRef(i, x);
|
public void | setShort(int parameterIndex, short x)
ps.setShort(parameterIndex, x);
|
public void | setString(int parameterIndex, java.lang.String x)
ps.setString(parameterIndex, x);
|
public void | setTime(int parameterIndex, java.sql.Time x)
ps.setTime(parameterIndex, x);
|
public void | setTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal)
ps.setTime(parameterIndex, x, cal);
|
public void | setTimestamp(int parameterIndex, java.sql.Timestamp x)
ps.setTimestamp(parameterIndex, x);
|
public void | setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal)
ps.setTimestamp(parameterIndex, x, cal);
|
public void | setURL(int parameterIndex, java.net.URL x)
ps.setURL(parameterIndex, x);
|
public void | setUnicodeStream(int parameterIndex, java.io.InputStream x, int length)
ps.setUnicodeStream(parameterIndex, x, length);
|