public interface BetterPreparedStatement
extends java.sql.PreparedStatement
| Modifier and Type | Method and Description |
|---|---|
static BetterPreparedStatement |
create(java.sql.Connection connection,
java.lang.String statement)
use this factory method in order to use :named parameters.
|
static BetterPreparedStatement |
create(java.sql.Connection connection,
java.lang.String statement,
boolean returnGeneratedKeys,
boolean simulatedIn)
use this factory method in order to use :named parameters.
|
java.sql.Array |
createArray(java.util.Collection<?> elements) |
java.sql.Array |
createArray(java.lang.Object[] elements) |
java.sql.Array |
createArrayOf(java.lang.String typeName,
java.lang.Object[] elements) |
java.sql.Blob |
createBlob() |
java.sql.Clob |
createClob() |
java.sql.NClob |
createNClob() |
java.sql.SQLXML |
createSQLXML() |
void |
setArray(int parameterIndex,
java.util.Collection<?> x) |
void |
setArray(int parameterIndex,
java.lang.Object[] x) |
void |
setArray(java.lang.String namedParameter,
java.sql.Array x) |
void |
setArray(java.lang.String namedParameter,
java.util.Collection<?> x) |
void |
setArray(java.lang.String namedParameter,
java.lang.Object[] x) |
void |
setAsciiStream(java.lang.String namedParameter,
java.io.InputStream x) |
void |
setAsciiStream(java.lang.String namedParameter,
java.io.InputStream x,
int length) |
void |
setAsciiStream(java.lang.String namedParameter,
java.io.InputStream x,
long length) |
void |
setBigDecimal(java.lang.String namedParameter,
java.math.BigDecimal x) |
void |
setBinaryStream(java.lang.String namedParameter,
java.io.InputStream x) |
void |
setBinaryStream(java.lang.String namedParameter,
java.io.InputStream x,
int length) |
void |
setBinaryStream(java.lang.String namedParameter,
java.io.InputStream x,
long length) |
void |
setBlob(java.lang.String namedParameter,
java.sql.Blob x) |
void |
setBlob(java.lang.String namedParameter,
java.io.InputStream inputStream) |
void |
setBlob(java.lang.String namedParameter,
java.io.InputStream inputStream,
long length) |
void |
setBoolean(java.lang.String namedParameter,
boolean x) |
void |
setBooleanNullable(int parameterIndex,
java.lang.Boolean x) |
void |
setBooleanNullable(java.lang.String namedParameter,
java.lang.Boolean x) |
void |
setByte(java.lang.String namedParameter,
byte x) |
void |
setByteNullable(int parameterIndex,
java.lang.Byte x) |
void |
setByteNullable(java.lang.String namedParameter,
java.lang.Byte x) |
void |
setBytes(java.lang.String namedParameter,
byte[] x) |
void |
setCharacterStream(java.lang.String namedParameter,
java.io.Reader reader) |
void |
setCharacterStream(java.lang.String namedParameter,
java.io.Reader reader,
int length) |
void |
setCharacterStream(java.lang.String namedParameter,
java.io.Reader reader,
long length) |
void |
setClob(java.lang.String namedParameter,
java.sql.Clob x) |
void |
setClob(java.lang.String namedParameter,
java.io.Reader reader) |
void |
setClob(java.lang.String namedParameter,
java.io.Reader reader,
long length) |
void |
setDate(int parameterIndex,
java.time.LocalDate x) |
void |
setDate(java.lang.String namedParameter,
java.sql.Date x) |
void |
setDate(java.lang.String namedParameter,
java.sql.Date x,
java.util.Calendar cal) |
void |
setDate(java.lang.String namedParameter,
java.time.LocalDate x) |
void |
setDouble(java.lang.String namedParameter,
double x) |
void |
setDoubleNullable(int parameterIndex,
java.lang.Double x) |
void |
setDoubleNullable(java.lang.String namedParameter,
java.lang.Double x) |
void |
setFloat(java.lang.String namedParameter,
float x) |
void |
setFloatNullable(int parameterIndex,
java.lang.Float x) |
void |
setFloatNullable(java.lang.String namedParameter,
java.lang.Float x) |
void |
setInt(java.lang.String namedParameter,
int x) |
void |
setIntNullable(int parameterIndex,
java.lang.Integer x) |
void |
setIntNullable(java.lang.String namedParameter,
java.lang.Integer x) |
void |
setLong(java.lang.String namedParameter,
long x) |
void |
setLongNullable(int parameterIndex,
java.lang.Long x) |
void |
setLongNullable(java.lang.String namedParameter,
java.lang.Long x) |
void |
setNCharacterStream(java.lang.String namedParameter,
java.io.Reader value) |
void |
setNCharacterStream(java.lang.String namedParameter,
java.io.Reader value,
long length) |
void |
setNClob(java.lang.String namedParameter,
java.sql.NClob value) |
void |
setNClob(java.lang.String namedParameter,
java.io.Reader reader) |
void |
setNClob(java.lang.String namedParameter,
java.io.Reader reader,
long length) |
void |
setNString(java.lang.String namedParameter,
java.lang.String value) |
void |
setNull(java.lang.String namedParameter,
int sqlType) |
void |
setNull(java.lang.String namedParameter,
int sqlType,
java.lang.String typeName) |
void |
setObject(java.lang.String namedParameter,
java.lang.Object x) |
void |
setObject(java.lang.String namedParameter,
java.lang.Object x,
int targetSqlType) |
void |
setObject(java.lang.String namedParameter,
java.lang.Object x,
int targetSqlType,
int scaleOrLength) |
void |
setObject(java.lang.String namedParameter,
java.lang.Object x,
java.sql.SQLType targetSqlType) |
void |
setObject(java.lang.String namedParameter,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength) |
void |
setRef(java.lang.String namedParameter,
java.sql.Ref x) |
void |
setRowId(java.lang.String namedParameter,
java.sql.RowId x) |
void |
setShort(java.lang.String namedParameter,
short x) |
void |
setShortNullable(int parameterIndex,
java.lang.Short x) |
void |
setShortNullable(java.lang.String namedParameter,
java.lang.Short x) |
void |
setSQLXML(java.lang.String namedParameter,
java.sql.SQLXML xmlObject) |
void |
setString(java.lang.String namedParameter,
java.lang.String x) |
void |
setTime(int parameterIndex,
java.time.LocalTime x) |
void |
setTime(java.lang.String namedParameter,
java.time.LocalTime x) |
void |
setTime(java.lang.String namedParameter,
java.sql.Time x) |
void |
setTime(java.lang.String namedParameter,
java.sql.Time x,
java.util.Calendar cal) |
void |
setTimestamp(int parameterIndex,
java.time.Instant x) |
void |
setTimestamp(int parameterIndex,
java.time.LocalDateTime x) |
void |
setTimestamp(int parameterIndex,
java.time.OffsetDateTime x) |
void |
setTimestamp(java.lang.String namedParameter,
java.time.Instant x) |
void |
setTimestamp(java.lang.String namedParameter,
java.time.LocalDateTime x) |
void |
setTimestamp(java.lang.String namedParameter,
java.time.OffsetDateTime x) |
void |
setTimestamp(java.lang.String namedParameter,
java.sql.Timestamp x) |
void |
setTimestamp(java.lang.String namedParameter,
java.sql.Timestamp x,
java.util.Calendar cal) |
void |
setURL(java.lang.String namedParameter,
java.net.URL x) |
addBatch, clearParameters, execute, executeLargeUpdate, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLaddBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutstatic BetterPreparedStatement create(java.sql.Connection connection, java.lang.String statement) throws java.sql.SQLException
connection - close this yourself.statement - your sql statementjava.sql.SQLException - from JDBCstatic BetterPreparedStatement create(java.sql.Connection connection, java.lang.String statement, boolean returnGeneratedKeys, boolean simulatedIn) throws java.sql.SQLException
connection - close this yourself.statement - your sql statementreturnGeneratedKeys - true if you want to return generated keyssimulatedIn - true if you want IN clause array simulationjava.sql.SQLException - from JDBCjava.sql.Blob createBlob()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.Clob createClob()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.NClob createNClob()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.SQLXML createSQLXML()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.Array createArrayOf(java.lang.String typeName,
java.lang.Object[] elements)
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.Array createArray(java.lang.Object[] elements)
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.Array createArray(java.util.Collection<?> elements)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setArray(int parameterIndex,
java.util.Collection<?> x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setArray(java.lang.String namedParameter,
java.util.Collection<?> x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setArray(int parameterIndex,
java.lang.Object[] x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setArray(java.lang.String namedParameter,
java.lang.Object[] x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTime(int parameterIndex,
java.time.LocalTime x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTime(java.lang.String namedParameter,
java.time.LocalTime x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDate(int parameterIndex,
java.time.LocalDate x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDate(java.lang.String namedParameter,
java.time.LocalDate x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(int parameterIndex,
java.time.LocalDateTime x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(java.lang.String namedParameter,
java.time.LocalDateTime x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(int parameterIndex,
java.time.OffsetDateTime x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(java.lang.String namedParameter,
java.time.OffsetDateTime x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(int parameterIndex,
java.time.Instant x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(java.lang.String namedParameter,
java.time.Instant x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNull(java.lang.String namedParameter,
int sqlType)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBoolean(java.lang.String namedParameter,
boolean x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setByte(java.lang.String namedParameter,
byte x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setShort(java.lang.String namedParameter,
short x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setInt(java.lang.String namedParameter,
int x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setLong(java.lang.String namedParameter,
long x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setFloat(java.lang.String namedParameter,
float x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDouble(java.lang.String namedParameter,
double x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBigDecimal(java.lang.String namedParameter,
java.math.BigDecimal x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setString(java.lang.String namedParameter,
java.lang.String x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBytes(java.lang.String namedParameter,
byte[] x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDate(java.lang.String namedParameter,
java.sql.Date x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTime(java.lang.String namedParameter,
java.sql.Time x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(java.lang.String namedParameter,
java.sql.Timestamp x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setAsciiStream(java.lang.String namedParameter,
java.io.InputStream x,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBinaryStream(java.lang.String namedParameter,
java.io.InputStream x,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setObject(java.lang.String namedParameter,
java.lang.Object x,
int targetSqlType)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setObject(java.lang.String namedParameter,
java.lang.Object x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setCharacterStream(java.lang.String namedParameter,
java.io.Reader reader,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setRef(java.lang.String namedParameter,
java.sql.Ref x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBlob(java.lang.String namedParameter,
java.sql.Blob x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setClob(java.lang.String namedParameter,
java.sql.Clob x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setArray(java.lang.String namedParameter,
java.sql.Array x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDate(java.lang.String namedParameter,
java.sql.Date x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTime(java.lang.String namedParameter,
java.sql.Time x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTimestamp(java.lang.String namedParameter,
java.sql.Timestamp x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNull(java.lang.String namedParameter,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setURL(java.lang.String namedParameter,
java.net.URL x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setRowId(java.lang.String namedParameter,
java.sql.RowId x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNString(java.lang.String namedParameter,
java.lang.String value)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNCharacterStream(java.lang.String namedParameter,
java.io.Reader value,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNClob(java.lang.String namedParameter,
java.sql.NClob value)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setClob(java.lang.String namedParameter,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBlob(java.lang.String namedParameter,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNClob(java.lang.String namedParameter,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setSQLXML(java.lang.String namedParameter,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setObject(java.lang.String namedParameter,
java.lang.Object x,
int targetSqlType,
int scaleOrLength)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setAsciiStream(java.lang.String namedParameter,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBinaryStream(java.lang.String namedParameter,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setCharacterStream(java.lang.String namedParameter,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setAsciiStream(java.lang.String namedParameter,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBinaryStream(java.lang.String namedParameter,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setCharacterStream(java.lang.String namedParameter,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNCharacterStream(java.lang.String namedParameter,
java.io.Reader value)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setClob(java.lang.String namedParameter,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBlob(java.lang.String namedParameter,
java.io.InputStream inputStream)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNClob(java.lang.String namedParameter,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setObject(java.lang.String namedParameter,
java.lang.Object x,
java.sql.SQLType targetSqlType,
int scaleOrLength)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setObject(java.lang.String namedParameter,
java.lang.Object x,
java.sql.SQLType targetSqlType)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBooleanNullable(java.lang.String namedParameter,
java.lang.Boolean x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setByteNullable(java.lang.String namedParameter,
java.lang.Byte x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setShortNullable(java.lang.String namedParameter,
java.lang.Short x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setIntNullable(java.lang.String namedParameter,
java.lang.Integer x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setLongNullable(java.lang.String namedParameter,
java.lang.Long x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setFloatNullable(java.lang.String namedParameter,
java.lang.Float x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDoubleNullable(java.lang.String namedParameter,
java.lang.Double x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBooleanNullable(int parameterIndex,
java.lang.Boolean x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setByteNullable(int parameterIndex,
java.lang.Byte x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setShortNullable(int parameterIndex,
java.lang.Short x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setIntNullable(int parameterIndex,
java.lang.Integer x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setLongNullable(int parameterIndex,
java.lang.Long x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setFloatNullable(int parameterIndex,
java.lang.Float x)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDoubleNullable(int parameterIndex,
java.lang.Double x)
throws java.sql.SQLException
java.sql.SQLException