Package org.apache.openjpa.slice.jdbc
Class DistributedPreparedStatement
java.lang.Object
org.apache.openjpa.slice.jdbc.DistributedTemplate<PreparedStatement>
org.apache.openjpa.slice.jdbc.DistributedPreparedStatement
- All Implemented Interfaces:
- AutoCloseable,- Iterable<PreparedStatement>,- PreparedStatement,- Statement,- Wrapper
public class DistributedPreparedStatement
extends DistributedTemplate<PreparedStatement>
implements PreparedStatement
A virtual PreparedStaement that delegates to a set of actual
 PreparedStatements.
- Author:
- Pinaki Poddar
- 
Field SummaryFields inherited from class org.apache.openjpa.slice.jdbc.DistributedTemplatecon, master, stmtsFields inherited from interface java.sql.StatementCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddBatch()voidvoidbooleanexecute()intbooleanvoidvoidsetAsciiStream(int arg0, InputStream arg1) voidsetAsciiStream(int arg0, InputStream arg1, int arg2) voidsetAsciiStream(int arg0, InputStream arg1, long arg2) voidsetBigDecimal(int arg0, BigDecimal arg1) voidsetBinaryStream(int arg0, InputStream arg1) voidsetBinaryStream(int arg0, InputStream arg1, int arg2) voidsetBinaryStream(int arg0, InputStream arg1, long arg2) voidsetBlob(int arg0, InputStream arg1) voidsetBlob(int arg0, InputStream arg1, long arg2) voidvoidsetBoolean(int arg0, boolean arg1) voidsetByte(int arg0, byte arg1) voidsetBytes(int arg0, byte[] arg1) voidsetCharacterStream(int arg0, Reader arg1) voidsetCharacterStream(int arg0, Reader arg1, int arg2) voidsetCharacterStream(int arg0, Reader arg1, long arg2) voidvoidvoidvoidvoidvoidsetDouble(int arg0, double arg1) voidsetFloat(int arg0, float arg1) voidsetInt(int arg0, int arg1) voidsetLong(int arg0, long arg1) voidsetNCharacterStream(int arg0, Reader arg1) voidsetNCharacterStream(int arg0, Reader arg1, long arg2) voidvoidvoidvoidsetNString(int arg0, String arg1) voidsetNull(int arg0, int arg1) voidvoidvoidvoidvoidvoidvoidsetShort(int arg0, short arg1) voidvoidvoidvoidvoidsetTimestamp(int arg0, Timestamp arg1) voidsetTimestamp(int arg0, Timestamp arg1, Calendar arg2) voidsetUnicodeStream(int arg0, InputStream arg1, int arg2) voidMethods inherited from class org.apache.openjpa.slice.jdbc.DistributedTemplateadd, 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, isWrapperFor, iterator, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface java.sql.PreparedStatementexecuteLargeUpdate, setObject, setObjectMethods inherited from interface java.sql.StatementaddBatch, cancel, clearBatch, clearWarnings, close, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, 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, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutMethods inherited from interface java.sql.WrapperisWrapperFor, unwrap
- 
Constructor Details- 
DistributedPreparedStatement
 
- 
- 
Method Details- 
clearParameters- Specified by:
- clearParametersin interface- PreparedStatement
- Throws:
- SQLException
 
- 
execute- Specified by:
- executein interface- PreparedStatement
- Throws:
- SQLException
 
- 
executeQuery- Specified by:
- executeQueryin interface- PreparedStatement
- Overrides:
- executeQueryin class- DistributedTemplate<PreparedStatement>
- Throws:
- SQLException
 
- 
executeUpdate- Specified by:
- executeUpdatein interface- PreparedStatement
- Throws:
- SQLException
 
- 
getMetaData- Specified by:
- getMetaDatain interface- PreparedStatement
- Throws:
- SQLException
 
- 
getParameterMetaData- Specified by:
- getParameterMetaDatain interface- PreparedStatement
- Throws:
- SQLException
 
- 
setArray- Specified by:
- setArrayin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setAsciiStream- Specified by:
- setAsciiStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBigDecimal- Specified by:
- setBigDecimalin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBinaryStream- Specified by:
- setBinaryStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBlob- Specified by:
- setBlobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBoolean- Specified by:
- setBooleanin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setByte- Specified by:
- setBytein interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBytes- Specified by:
- setBytesin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setCharacterStream- Specified by:
- setCharacterStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setClob- Specified by:
- setClobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setDate- Specified by:
- setDatein interface- PreparedStatement
- Throws:
- SQLException
 
- 
setDate- Specified by:
- setDatein interface- PreparedStatement
- Throws:
- SQLException
 
- 
setDouble- Specified by:
- setDoublein interface- PreparedStatement
- Throws:
- SQLException
 
- 
setFloat- Specified by:
- setFloatin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setInt- Specified by:
- setIntin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setLong- Specified by:
- setLongin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNull- Specified by:
- setNullin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNull- Specified by:
- setNullin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setObject- Specified by:
- setObjectin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setObject- Specified by:
- setObjectin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setObject- Specified by:
- setObjectin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setRef- Specified by:
- setRefin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setShort- Specified by:
- setShortin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setString- Specified by:
- setStringin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setTime- Specified by:
- setTimein interface- PreparedStatement
- Throws:
- SQLException
 
- 
setTime- Specified by:
- setTimein interface- PreparedStatement
- Throws:
- SQLException
 
- 
setTimestamp- Specified by:
- setTimestampin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setTimestamp- Specified by:
- setTimestampin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setURL- Specified by:
- setURLin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setUnicodeStream- Specified by:
- setUnicodeStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
addBatch- Specified by:
- addBatchin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setAsciiStream- Specified by:
- setAsciiStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setAsciiStream- Specified by:
- setAsciiStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBinaryStream- Specified by:
- setBinaryStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBinaryStream- Specified by:
- setBinaryStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBlob- Specified by:
- setBlobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setBlob- Specified by:
- setBlobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setCharacterStream- Specified by:
- setCharacterStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setCharacterStream- Specified by:
- setCharacterStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setClob- Specified by:
- setClobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setClob- Specified by:
- setClobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNCharacterStream- Specified by:
- setNCharacterStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNCharacterStream- Specified by:
- setNCharacterStreamin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNClob- Specified by:
- setNClobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNClob- Specified by:
- setNClobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNClob- Specified by:
- setNClobin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setNString- Specified by:
- setNStringin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setRowId- Specified by:
- setRowIdin interface- PreparedStatement
- Throws:
- SQLException
 
- 
setSQLXML- Specified by:
- setSQLXMLin interface- PreparedStatement
- Throws:
- SQLException
 
- 
isCloseOnCompletion- Specified by:
- isCloseOnCompletionin interface- Statement
- Overrides:
- isCloseOnCompletionin class- DistributedTemplate<PreparedStatement>
- Throws:
- SQLException
 
- 
closeOnCompletion- Specified by:
- closeOnCompletionin interface- Statement
- Overrides:
- closeOnCompletionin class- DistributedTemplate<PreparedStatement>
- Throws:
- SQLException
 
 
-