org.apache.openjpa.slice.jdbc
public abstract class DistributedPreparedStatement extends DistributedTemplate<java.sql.PreparedStatement> implements java.sql.PreparedStatement
con, master, stmts
Constructor and Description |
---|
DistributedPreparedStatement(DistributedConnection c) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
clearParameters() |
boolean |
execute() |
java.sql.ResultSet |
executeQuery() |
int |
executeUpdate() |
java.sql.ResultSetMetaData |
getMetaData() |
java.sql.ParameterMetaData |
getParameterMetaData() |
static DistributedPreparedStatement |
newInstance(DistributedConnection conn) |
void |
setArray(int i,
java.sql.Array x) |
void |
setAsciiStream(int arg0,
java.io.InputStream arg1,
int arg2) |
void |
setBigDecimal(int arg0,
java.math.BigDecimal arg1) |
void |
setBinaryStream(int arg0,
java.io.InputStream arg1,
int arg2) |
void |
setBlob(int arg0,
java.sql.Blob arg1) |
void |
setBoolean(int arg0,
boolean arg1) |
void |
setByte(int arg0,
byte arg1) |
void |
setBytes(int arg0,
byte[] arg1) |
void |
setCharacterStream(int arg0,
java.io.Reader arg1,
int arg2) |
void |
setClob(int arg0,
java.sql.Clob arg1) |
void |
setDate(int arg0,
java.sql.Date arg1) |
void |
setDate(int arg0,
java.sql.Date arg1,
java.util.Calendar arg2) |
void |
setDouble(int arg0,
double arg1) |
void |
setFloat(int arg0,
float arg1) |
void |
setInt(int arg0,
int arg1) |
void |
setLong(int arg0,
long arg1) |
void |
setNull(int arg0,
int arg1) |
void |
setNull(int arg0,
int arg1,
java.lang.String arg2) |
void |
setObject(int arg0,
java.lang.Object arg1) |
void |
setObject(int arg0,
java.lang.Object arg1,
int arg2) |
void |
setObject(int arg0,
java.lang.Object arg1,
int arg2,
int arg3) |
void |
setRef(int arg0,
java.sql.Ref arg1) |
void |
setShort(int arg0,
short arg1) |
void |
setString(int arg0,
java.lang.String arg1) |
void |
setTime(int arg0,
java.sql.Time arg1) |
void |
setTime(int arg0,
java.sql.Time arg1,
java.util.Calendar arg2) |
void |
setTimestamp(int arg0,
java.sql.Timestamp arg1) |
void |
setTimestamp(int arg0,
java.sql.Timestamp arg1,
java.util.Calendar arg2) |
void |
setUnicodeStream(int arg0,
java.io.InputStream arg1,
int arg2) |
void |
setURL(int arg0,
java.net.URL arg1) |
add, addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, iterator, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
public DistributedPreparedStatement(DistributedConnection c)
public static DistributedPreparedStatement newInstance(DistributedConnection conn)
public void clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
public boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
executeQuery
in class DistributedTemplate<java.sql.PreparedStatement>
java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setArray(int i, java.sql.Array x) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int arg0, java.io.InputStream arg1, int arg2) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBigDecimal(int arg0, java.math.BigDecimal arg1) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int arg0, java.io.InputStream arg1, int arg2) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int arg0, java.sql.Blob arg1) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBoolean(int arg0, boolean arg1) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setByte(int arg0, byte arg1) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBytes(int arg0, byte[] arg1) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int arg0, java.io.Reader arg1, int arg2) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int arg0, java.sql.Clob arg1) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int arg0, java.sql.Date arg1) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int arg0, java.sql.Date arg1, java.util.Calendar arg2) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDouble(int arg0, double arg1) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setFloat(int arg0, float arg1) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setInt(int arg0, int arg1) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setLong(int arg0, long arg1) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int arg0, int arg1) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int arg0, int arg1, java.lang.String arg2) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int arg0, java.lang.Object arg1) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int arg0, java.lang.Object arg1, int arg2) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int arg0, java.lang.Object arg1, int arg2, int arg3) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRef(int arg0, java.sql.Ref arg1) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setShort(int arg0, short arg1) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setString(int arg0, java.lang.String arg1) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int arg0, java.sql.Time arg1) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int arg0, java.sql.Time arg1, java.util.Calendar arg2) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int arg0, java.sql.Timestamp arg1) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int arg0, java.sql.Timestamp arg1, java.util.Calendar arg2) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setURL(int arg0, java.net.URL arg1) throws java.sql.SQLException
setURL
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setUnicodeStream(int arg0, java.io.InputStream arg1, int arg2) throws java.sql.SQLException
setUnicodeStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException