Java Doc for UserPreparedStatement.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » sql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.sql.UserStatement
      com.caucho.sql.UserPreparedStatement

All known Subclasses:   com.caucho.sql.UserCallableStatement,
UserPreparedStatement
public class UserPreparedStatement extends UserStatement implements PreparedStatement(Code)
User-view of prepared statements


Field Summary
protected static  L10NL
    
protected  PreparedStatementCacheItem_cacheItem
    
protected  PreparedStatement_pstmt
    
final protected static  Loggerlog
    

Constructor Summary
 UserPreparedStatement(UserConnection conn, PreparedStatement pStmt, PreparedStatementCacheItem cacheItem)
    
 UserPreparedStatement(UserConnection conn, PreparedStatement pStmt)
    

Method Summary
public  voidaddBatch()
     Adds the statement as a batch.
public  voidclearParameters()
     Clears the statement's parameters.
public  voidclose()
     Closes the prepared statement.
public  booleanexecute()
    
public  ResultSetexecuteQuery()
     Executes the prepared statement's query.
public  intexecuteUpdate()
    
public  ResultSetMetaDatagetMetaData()
     Returns the result metadata.
public  ParameterMetaDatagetParameterMetaData()
     Returns the prepared statement's meta data.
public  PreparedStatementgetPreparedStatement()
     Returns the underlying statement.
public  voidsetArray(int index, Array value)
    
public  voidsetAsciiStream(int index, InputStream value, int length)
     Sets the parameter as an ascii stream.
public  voidsetAsciiStream(int parameterIndex, InputStream x, long length)
    
public  voidsetAsciiStream(int parameterIndex, InputStream x)
    
public  voidsetBigDecimal(int index, BigDecimal value)
    
public  voidsetBinaryStream(int index, InputStream value, int length)
     Sets the parameter as a binary stream.
public  voidsetBinaryStream(int parameterIndex, InputStream x, long length)
    
public  voidsetBinaryStream(int parameterIndex, InputStream x)
    
public  voidsetBlob(int index, Blob value)
     Sets the parameter as a blob.
public  voidsetBlob(int parameterIndex, InputStream inputStream, long length)
    
public  voidsetBlob(int parameterIndex, InputStream inputStream)
    
public  voidsetBoolean(int index, boolean value)
     Sets the parameter as a boolean.
public  voidsetByte(int index, byte value)
     Sets the parameter as a byte.
public  voidsetBytes(int index, byte[] value)
     Sets the parameter as a byte array.
public  voidsetCharacterStream(int index, Reader value, int length)
     Sets the parameter as an character stream.
public  voidsetCharacterStream(int parameterIndex, Reader reader, long length)
    
public  voidsetCharacterStream(int parameterIndex, Reader reader)
    
public  voidsetClob(int index, Clob value)
     Sets the parameter as a clob.
public  voidsetClob(int parameterIndex, Reader reader, long length)
    
public  voidsetClob(int parameterIndex, Reader reader)
    
public  voidsetDate(int index, Date value)
    
public  voidsetDate(int index, Date value, Calendar cal)
    
public  voidsetDouble(int index, double value)
    
public  voidsetFloat(int index, float value)
    
public  voidsetInt(int index, int value)
    
public  voidsetLong(int index, long value)
    
public  voidsetNCharacterStream(int parameterIndex, Reader value, long length)
    
public  voidsetNCharacterStream(int parameterIndex, Reader value)
    
public  voidsetNClob(int parameterIndex, NClob value)
    
public  voidsetNClob(int parameterIndex, Reader reader, long length)
    
public  voidsetNClob(int parameterIndex, Reader reader)
    
public  voidsetNString(int parameterIndex, String value)
    
public  voidsetNull(int parameterIndex, int sqlType)
     Sets the parameter as a null.
public  voidsetNull(int parameterIndex, int sqlType, String typeName)
     Sets the parameter as a null.
public  voidsetObject(int index, Object value, int type, int scale)
     Sets the parameter as an object with the given type and scale.
public  voidsetObject(int index, Object value, int type)
     Sets the parameter as an object with the given type.
public  voidsetObject(int index, Object value)
     Sets the parameter as a object.
public  voidsetRef(int index, Ref value)
     Sets teh parameter as a ref.
public  voidsetRowId(int parameterIndex, RowId x)
    
public  voidsetSQLXML(int parameterIndex, SQLXML xmlObject)
    
public  voidsetShort(int index, short value)
     Sets the parameter as a short.
public  voidsetString(int index, String value)
    
public  voidsetTime(int index, Time value)
    
public  voidsetTime(int index, Time value, Calendar cal)
    
public  voidsetTimestamp(int index, Timestamp value)
    
public  voidsetTimestamp(int index, Timestamp value, Calendar cal)
    
public  voidsetURL(int index, URL value)
     Sets the parameter as a URL.
public  voidsetUnicodeStream(int index, InputStream value, int length)
     Sets the parameter as a unicode stream.
public  StringtoString()
    

Field Detail
L
protected static L10N L(Code)



_cacheItem
protected PreparedStatementCacheItem _cacheItem(Code)



_pstmt
protected PreparedStatement _pstmt(Code)



log
final protected static Logger log(Code)




Constructor Detail
UserPreparedStatement
UserPreparedStatement(UserConnection conn, PreparedStatement pStmt, PreparedStatementCacheItem cacheItem)(Code)



UserPreparedStatement
UserPreparedStatement(UserConnection conn, PreparedStatement pStmt)(Code)




Method Detail
addBatch
public void addBatch() throws SQLException(Code)
Adds the statement as a batch.



clearParameters
public void clearParameters() throws SQLException(Code)
Clears the statement's parameters.



close
public void close() throws SQLException(Code)
Closes the prepared statement.



execute
public boolean execute() throws SQLException(Code)
Executes the prepared statement's sql as an update or query



executeQuery
public ResultSet executeQuery() throws SQLException(Code)
Executes the prepared statement's query.



executeUpdate
public int executeUpdate() throws SQLException(Code)
Executes the prepared statement's sql as an update



getMetaData
public ResultSetMetaData getMetaData() throws SQLException(Code)
Returns the result metadata.



getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLException(Code)
Returns the prepared statement's meta data.



getPreparedStatement
public PreparedStatement getPreparedStatement()(Code)
Returns the underlying statement.



setArray
public void setArray(int index, Array value) throws SQLException(Code)
Sets the parameter as an array



setAsciiStream
public void setAsciiStream(int index, InputStream value, int length) throws SQLException(Code)
Sets the parameter as an ascii stream.



setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException(Code)



setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException(Code)



setBigDecimal
public void setBigDecimal(int index, BigDecimal value) throws SQLException(Code)
Sets the parameter as a BigDecimal



setBinaryStream
public void setBinaryStream(int index, InputStream value, int length) throws SQLException(Code)
Sets the parameter as a binary stream.



setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException(Code)



setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException(Code)



setBlob
public void setBlob(int index, Blob value) throws SQLException(Code)
Sets the parameter as a blob.



setBlob
public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException(Code)



setBlob
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException(Code)



setBoolean
public void setBoolean(int index, boolean value) throws SQLException(Code)
Sets the parameter as a boolean.



setByte
public void setByte(int index, byte value) throws SQLException(Code)
Sets the parameter as a byte.



setBytes
public void setBytes(int index, byte[] value) throws SQLException(Code)
Sets the parameter as a byte array.



setCharacterStream
public void setCharacterStream(int index, Reader value, int length) throws SQLException(Code)
Sets the parameter as an character stream.



setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException(Code)



setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException(Code)



setClob
public void setClob(int index, Clob value) throws SQLException(Code)
Sets the parameter as a clob.



setClob
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException(Code)



setClob
public void setClob(int parameterIndex, Reader reader) throws SQLException(Code)



setDate
public void setDate(int index, Date value) throws SQLException(Code)
Sets the parameter as a date



setDate
public void setDate(int index, Date value, Calendar cal) throws SQLException(Code)
Sets the parameter as a time



setDouble
public void setDouble(int index, double value) throws SQLException(Code)
Sets the parameter as a double



setFloat
public void setFloat(int index, float value) throws SQLException(Code)
Sets the parameter as a float



setInt
public void setInt(int index, int value) throws SQLException(Code)
Sets the parameter as an int



setLong
public void setLong(int index, long value) throws SQLException(Code)
Sets the parameter as a long



setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException(Code)



setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException(Code)



setNClob
public void setNClob(int parameterIndex, NClob value) throws SQLException(Code)



setNClob
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException(Code)



setNClob
public void setNClob(int parameterIndex, Reader reader) throws SQLException(Code)



setNString
public void setNString(int parameterIndex, String value) throws SQLException(Code)



setNull
public void setNull(int parameterIndex, int sqlType) throws SQLException(Code)
Sets the parameter as a null.



setNull
public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException(Code)
Sets the parameter as a null.



setObject
public void setObject(int index, Object value, int type, int scale) throws SQLException(Code)
Sets the parameter as an object with the given type and scale.



setObject
public void setObject(int index, Object value, int type) throws SQLException(Code)
Sets the parameter as an object with the given type.



setObject
public void setObject(int index, Object value) throws SQLException(Code)
Sets the parameter as a object.



setRef
public void setRef(int index, Ref value) throws SQLException(Code)
Sets teh parameter as a ref.



setRowId
public void setRowId(int parameterIndex, RowId x) throws SQLException(Code)



setSQLXML
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException(Code)



setShort
public void setShort(int index, short value) throws SQLException(Code)
Sets the parameter as a short.



setString
public void setString(int index, String value) throws SQLException(Code)
Sets the parameter as a string



setTime
public void setTime(int index, Time value) throws SQLException(Code)
Sets the parameter as a time



setTime
public void setTime(int index, Time value, Calendar cal) throws SQLException(Code)
Sets the parameter as a time



setTimestamp
public void setTimestamp(int index, Timestamp value) throws SQLException(Code)
Sets the parameter as a timestamp



setTimestamp
public void setTimestamp(int index, Timestamp value, Calendar cal) throws SQLException(Code)
Sets the parameter as a timestamp



setURL
public void setURL(int index, URL value) throws SQLException(Code)
Sets the parameter as a URL.



setUnicodeStream
public void setUnicodeStream(int index, InputStream value, int length) throws SQLException(Code)
Sets the parameter as a unicode stream.



toString
public String toString()(Code)



Fields inherited from com.caucho.sql.UserStatement
final protected static L10N L(Code)(Java Doc)
protected UserConnection _conn(Code)(Java Doc)
protected boolean _isPoolable(Code)(Java Doc)
protected Statement _stmt(Code)(Java Doc)
final protected static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.sql.UserStatement
public void addBatch(String sql) throws SQLException(Code)(Java Doc)
public void cancel() throws SQLException(Code)(Java Doc)
public void clearBatch() throws SQLException(Code)(Java Doc)
public void clearWarnings() throws SQLException(Code)(Java Doc)
public void close() throws SQLException(Code)(Java Doc)
public boolean execute(String sql) throws SQLException(Code)(Java Doc)
public boolean execute(String query, int resultType) throws SQLException(Code)(Java Doc)
public boolean execute(String query, int[] columns) throws SQLException(Code)(Java Doc)
public boolean execute(String query, String[] columns) throws SQLException(Code)(Java Doc)
public int[] executeBatch() throws SQLException(Code)(Java Doc)
public ResultSet executeQuery(String sql) throws SQLException(Code)(Java Doc)
public int executeUpdate(String sql) throws SQLException(Code)(Java Doc)
public int executeUpdate(String query, int resultType) throws SQLException(Code)(Java Doc)
public int executeUpdate(String query, int[] columns) throws SQLException(Code)(Java Doc)
public int executeUpdate(String query, String[] columns) throws SQLException(Code)(Java Doc)
public Connection getConnection() throws SQLException(Code)(Java Doc)
public int getFetchDirection() throws SQLException(Code)(Java Doc)
public int getFetchSize() throws SQLException(Code)(Java Doc)
public java.sql.ResultSet getGeneratedKeys() throws SQLException(Code)(Java Doc)
public int getMaxFieldSize() throws SQLException(Code)(Java Doc)
public int getMaxRows() throws SQLException(Code)(Java Doc)
public boolean getMoreResults() throws SQLException(Code)(Java Doc)
public boolean getMoreResults(int count) throws SQLException(Code)(Java Doc)
public int getQueryTimeout() throws SQLException(Code)(Java Doc)
public java.sql.ResultSet getResultSet() throws SQLException(Code)(Java Doc)
public int getResultSetConcurrency() throws SQLException(Code)(Java Doc)
public int getResultSetHoldability() throws SQLException(Code)(Java Doc)
public int getResultSetType() throws SQLException(Code)(Java Doc)
public Statement getStatement()(Code)(Java Doc)
public int getUpdateCount() throws SQLException(Code)(Java Doc)
public SQLWarning getWarnings() throws SQLException(Code)(Java Doc)
public boolean isClosed() throws SQLException(Code)(Java Doc)
public boolean isPoolable() throws SQLException(Code)(Java Doc)
public boolean isWrapperFor(Class iface) throws SQLException(Code)(Java Doc)
protected void killPool()(Code)(Java Doc)
public void setCursorName(String name) throws SQLException(Code)(Java Doc)
public void setEscapeProcessing(boolean enable) throws SQLException(Code)(Java Doc)
public void setFetchDirection(int direction) throws SQLException(Code)(Java Doc)
public void setFetchSize(int rows) throws SQLException(Code)(Java Doc)
public void setMaxFieldSize(int max) throws SQLException(Code)(Java Doc)
public void setMaxRows(int max) throws SQLException(Code)(Java Doc)
public void setPoolable(boolean poolable) throws SQLException(Code)(Java Doc)
public void setQueryTimeout(int seconds) throws SQLException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public T unwrap(Class<T> iface) throws SQLException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.