org.apache.openjpa.slice.jdbc
Class DistributedPreparedStatement
java.lang.Object
   org.apache.openjpa.slice.jdbc.DistributedTemplate<PreparedStatement>
org.apache.openjpa.slice.jdbc.DistributedTemplate<PreparedStatement>
       org.apache.openjpa.slice.jdbc.DistributedPreparedStatement
org.apache.openjpa.slice.jdbc.DistributedPreparedStatement
- All Implemented Interfaces: 
- Iterable<PreparedStatement>, PreparedStatement, Statement, Wrapper
- public abstract class DistributedPreparedStatement 
- extends DistributedTemplate<PreparedStatement>- implements PreparedStatement
A virtual PreparedStaement that delegates to a set of actual
 PreparedStatements.
- Author:
- Pinaki Poddar
 
 
 
 
| Method Summary | 
|  void | addBatch()
 | 
|  void | clearParameters()
 | 
|  boolean | execute()
 | 
|  ResultSet | executeQuery()
 | 
|  int | executeUpdate()
 | 
|  ResultSetMetaData | getMetaData()
 | 
|  ParameterMetaData | getParameterMetaData()
 | 
| static DistributedPreparedStatement | newInstance(DistributedConnection conn)
 | 
|  void | setArray(int i,
         Array x)
 | 
|  void | setAsciiStream(int arg0,
               InputStream arg1,
               int arg2)
 | 
|  void | setBigDecimal(int arg0,
              BigDecimal arg1)
 | 
|  void | setBinaryStream(int arg0,
                InputStream arg1,
                int arg2)
 | 
|  void | setBlob(int arg0,
        Blob arg1)
 | 
|  void | setBoolean(int arg0,
           boolean arg1)
 | 
|  void | setByte(int arg0,
        byte arg1)
 | 
|  void | setBytes(int arg0,
         byte[] arg1)
 | 
|  void | setCharacterStream(int arg0,
                   Reader arg1,
                   int arg2)
 | 
|  void | setClob(int arg0,
        Clob arg1)
 | 
|  void | setDate(int arg0,
        Date arg1)
 | 
|  void | setDate(int arg0,
        Date arg1,
        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,
        String arg2)
 | 
|  void | setObject(int arg0,
          Object arg1)
 | 
|  void | setObject(int arg0,
          Object arg1,
          int arg2)
 | 
|  void | setObject(int arg0,
          Object arg1,
          int arg2,
          int arg3)
 | 
|  void | setRef(int arg0,
       Ref arg1)
 | 
|  void | setShort(int arg0,
         short arg1)
 | 
|  void | setString(int arg0,
          String arg1)
 | 
|  void | setTime(int arg0,
        Time arg1)
 | 
|  void | setTime(int arg0,
        Time arg1,
        Calendar arg2)
 | 
|  void | setTimestamp(int arg0,
             Timestamp arg1)
 | 
|  void | setTimestamp(int arg0,
             Timestamp arg1,
             Calendar arg2)
 | 
|  void | setUnicodeStream(int arg0,
                 InputStream arg1,
                 int arg2)
 | 
|  void | setURL(int arg0,
       URL arg1)
 | 
 
| Methods inherited from class org.apache.openjpa.slice.jdbc.DistributedTemplate | 
| 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 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface java.sql.PreparedStatement | 
| setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML | 
 
| Methods inherited from interface java.sql.Statement | 
| 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 | 
 
 
concreteImpl
static final Constructor<DistributedPreparedStatement> concreteImpl
DistributedPreparedStatement
public DistributedPreparedStatement(DistributedConnection c)
newInstance
public static DistributedPreparedStatement newInstance(DistributedConnection conn)
- 
 
- 
 
clearParameters
public void clearParameters()
                     throws SQLException
- 
- Specified by:
- clearParametersin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
execute
public boolean execute()
                throws SQLException
- 
- Specified by:
- executein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
executeQuery
public ResultSet executeQuery()
                       throws SQLException
- 
- Specified by:
- executeQueryin interface- PreparedStatement
- Overrides:
- executeQueryin class- DistributedTemplate<PreparedStatement>
 
- 
- Throws:
- SQLException
 
executeUpdate
public int executeUpdate()
                  throws SQLException
- 
- Specified by:
- executeUpdatein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
getMetaData
public ResultSetMetaData getMetaData()
                              throws SQLException
- 
- Specified by:
- getMetaDatain interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
getParameterMetaData
public ParameterMetaData getParameterMetaData()
                                       throws SQLException
- 
- Specified by:
- getParameterMetaDatain interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setArray
public void setArray(int i,
                     Array x)
              throws SQLException
- 
- Specified by:
- setArrayin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setAsciiStream
public void setAsciiStream(int arg0,
                           InputStream arg1,
                           int arg2)
                    throws SQLException
- 
- Specified by:
- setAsciiStreamin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setBigDecimal
public void setBigDecimal(int arg0,
                          BigDecimal arg1)
                   throws SQLException
- 
- Specified by:
- setBigDecimalin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setBinaryStream
public void setBinaryStream(int arg0,
                            InputStream arg1,
                            int arg2)
                     throws SQLException
- 
- Specified by:
- setBinaryStreamin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setBlob
public void setBlob(int arg0,
                    Blob arg1)
             throws SQLException
- 
- Specified by:
- setBlobin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setBoolean
public void setBoolean(int arg0,
                       boolean arg1)
                throws SQLException
- 
- Specified by:
- setBooleanin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setByte
public void setByte(int arg0,
                    byte arg1)
             throws SQLException
- 
- Specified by:
- setBytein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setBytes
public void setBytes(int arg0,
                     byte[] arg1)
              throws SQLException
- 
- Specified by:
- setBytesin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setCharacterStream
public void setCharacterStream(int arg0,
                               Reader arg1,
                               int arg2)
                        throws SQLException
- 
- Specified by:
- setCharacterStreamin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setClob
public void setClob(int arg0,
                    Clob arg1)
             throws SQLException
- 
- Specified by:
- setClobin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setDate
public void setDate(int arg0,
                    Date arg1)
             throws SQLException
- 
- Specified by:
- setDatein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setDate
public void setDate(int arg0,
                    Date arg1,
                    Calendar arg2)
             throws SQLException
- 
- Specified by:
- setDatein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setDouble
public void setDouble(int arg0,
                      double arg1)
               throws SQLException
- 
- Specified by:
- setDoublein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setFloat
public void setFloat(int arg0,
                     float arg1)
              throws SQLException
- 
- Specified by:
- setFloatin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setInt
public void setInt(int arg0,
                   int arg1)
            throws SQLException
- 
- Specified by:
- setIntin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setLong
public void setLong(int arg0,
                    long arg1)
             throws SQLException
- 
- Specified by:
- setLongin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setNull
public void setNull(int arg0,
                    int arg1)
             throws SQLException
- 
- Specified by:
- setNullin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setNull
public void setNull(int arg0,
                    int arg1,
                    String arg2)
             throws SQLException
- 
- Specified by:
- setNullin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setObject
public void setObject(int arg0,
                      Object arg1)
               throws SQLException
- 
- Specified by:
- setObjectin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setObject
public void setObject(int arg0,
                      Object arg1,
                      int arg2)
               throws SQLException
- 
- Specified by:
- setObjectin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setObject
public void setObject(int arg0,
                      Object arg1,
                      int arg2,
                      int arg3)
               throws SQLException
- 
- Specified by:
- setObjectin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setRef
public void setRef(int arg0,
                   Ref arg1)
            throws SQLException
- 
- Specified by:
- setRefin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setShort
public void setShort(int arg0,
                     short arg1)
              throws SQLException
- 
- Specified by:
- setShortin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setString
public void setString(int arg0,
                      String arg1)
               throws SQLException
- 
- Specified by:
- setStringin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setTime
public void setTime(int arg0,
                    Time arg1)
             throws SQLException
- 
- Specified by:
- setTimein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setTime
public void setTime(int arg0,
                    Time arg1,
                    Calendar arg2)
             throws SQLException
- 
- Specified by:
- setTimein interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setTimestamp
public void setTimestamp(int arg0,
                         Timestamp arg1)
                  throws SQLException
- 
- Specified by:
- setTimestampin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setTimestamp
public void setTimestamp(int arg0,
                         Timestamp arg1,
                         Calendar arg2)
                  throws SQLException
- 
- Specified by:
- setTimestampin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setURL
public void setURL(int arg0,
                   URL arg1)
            throws SQLException
- 
- Specified by:
- setURLin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
setUnicodeStream
public void setUnicodeStream(int arg0,
                             InputStream arg1,
                             int arg2)
                      throws SQLException
- 
- Specified by:
- setUnicodeStreamin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
addBatch
public void addBatch()
              throws SQLException
- 
- Specified by:
- addBatchin interface- PreparedStatement
 
- 
- Throws:
- SQLException
 
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.