Java Doc for tinySQLPreparedStatement.java in  » Database-DBMS » TinySQL » com » sqlmagic » tinysql » 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 » Database DBMS » TinySQL » com.sqlmagic.tinysql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sqlmagic.tinysql.tinySQLPreparedStatement

tinySQLPreparedStatement
public class tinySQLPreparedStatement implements java.sql.PreparedStatement(Code)

author:
   Thomas Morgner statementString contains the last
author:
   used SQL-Query. Support for set/getFetchSize, ResultSets are created with a
author:
   reference to the creating statement



Constructor Summary
public  tinySQLPreparedStatement(tinySQLConnection conn, String inputString)
     Constructs a new tinySQLStatement object.

Method Summary
public  voidaddBatch()
     JDBC 2.0 Adds a SQL command to the current batch of commmands for the statement.
public  voidaddBatch(String sql)
    
public  voidaddTable(tinySQLTable inputTable)
    
public  voidcancel()
     This can be used by another thread to cancel a statement.
public  voidclearBatch()
     JDBC 2.0 Makes the set of commands in the current batch empty.
public  voidclearParameters()
    
public  voidclearWarnings()
    
public  voidclose()
     Close any result sets.
public  booleanexecute()
     Executes some SQL and returns true or false, depending on the success.
public  booleanexecute(String sql)
    
public  int[]executeBatch()
     JDBC 2.0 Submits a batch of commands to the database for execution. This method is optional. an array of update counts containing one element for eachcommand in the batch.
public synchronized  ResultSetexecuteQuery()
     Execute an SQL statement and return a result set.
public synchronized  ResultSetexecuteQuery(String sql)
    
public synchronized  intexecuteUpdate(String sql)
     Execute an update, insert, delete, create table, etc.
public synchronized  intexecuteUpdate()
    
public  VectorgetActions()
    
public  ConnectiongetConnection()
     JDBC 2.0 Returns the Connection object that produced this Statement object.
public  intgetFetchDirection()
     JDBC 2.0 Retrieves the direction for fetching rows from database tables that is the default for result sets generated from this Statement object.
public  intgetFetchSize()
     JDBC 2.0 Retrieves the number of result set rows that is the default fetch size for result sets generated from this Statement object.
public  intgetMaxFieldSize()
     Get the maximum field size to return in a result set.
public  intgetMaxRows()
     Get the maximum row count that can be returned by a result set.
public  ResultSetMetaDatagetMetaData()
    
public  booleangetMoreResults()
     This returns true if there are any pending result sets.
public  intgetQueryTimeout()
     Discover the query timeout.
public  ResultSetgetResultSet()
    
public  intgetResultSetConcurrency()
     JDBC 2.0 Retrieves the result set concurrency.
public  intgetResultSetType()
     JDBC 2.0 Determine the result set type.
public  StringgetSQLString()
    
public  intgetUpdateCount()
     Return the row count of the last operation.
final public  SQLWarninggetWarnings()
    
public  voidsetArray(int parameterIndex, java.sql.Array inputValue)
    
public  voidsetAsciiStream(int parameterIndex, java.io.InputStream inputValue, int streamLength)
    
public  voidsetBigDecimal(int parameterIndex, BigDecimal inputValue)
    
public  voidsetBinaryStream(int parameterIndex, java.io.InputStream inputValue, int streamLength)
    
public  voidsetBlob(int parameterIndex, java.sql.Blob inputValue)
    
public  voidsetBoolean(int parameterIndex, boolean inputValue)
    
public  voidsetByte(int parameterIndex, byte inputValue)
    
public  voidsetBytes(int parameterIndex, byte[] inputValue)
    
public  voidsetCharacterStream(int parameterIndex, java.io.Reader inputValue, int streamLength)
    
public  voidsetClob(int parameterIndex, java.sql.Clob inputValue)
    
public  voidsetCursorName(String unused)
     Sets the cursor name for this connection.
public  voidsetDate(int parameterIndex, java.sql.Date inputValue, java.util.Calendar inputCalendar)
    
public  voidsetDate(int parameterIndex, java.sql.Date inputValue)
    
public  voidsetDouble(int parameterIndex, double inputValue)
    
public  voidsetEscapeProcessing(boolean enable)
     If escape scanning is on (the default) the driver will do escape substitution before sending the SQL to the database.
public  voidsetFetchDirection(int direction)
     JDBC 2.0 Gives the driver a hint as to the direction in which the rows in a result set will be processed.
public  voidsetFetchSize(int rows)
     JDBC 2.0 Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed.
public  voidsetFloat(int parameterIndex, float inputValue)
    
public  voidsetInt(int parameterIndex, int inputValue)
    
public  voidsetLong(int parameterIndex, long inputValue)
    
public  voidsetMaxFieldSize(int max)
     set the max field size.
public  voidsetMaxRows(int max)
     Get the maximum row count that can be returned by a result set.
public  voidsetNull(int parameterIndex, int sqlType)
    
public  voidsetNull(int parameterIndex, int sqlType, String sqlTypeName)
    
public  voidsetObject(int parameterIndex, Object inputValue)
    
public  voidsetObject(int parameterIndex, Object inputValue, int targetSQLType)
    
public  voidsetObject(int parameterIndex, Object inputValue, int targetSQLType, int scale)
    
public  voidsetQueryTimeout(int x)
     Set the query timeout.
public  voidsetRef(int parameterIndex, java.sql.Ref inputValue)
    
public  voidsetShort(int parameterIndex, short inputValue)
    
public  voidsetString(int parameterIndex, String setString)
    
public  voidsetTime(int parameterIndex, java.sql.Time inputValue, java.util.Calendar inputCalendar)
    
public  voidsetTime(int parameterIndex, java.sql.Time inputValue)
    
public  voidsetTimestamp(int parameterIndex, java.sql.Timestamp inputValue, java.util.Calendar inputCalendar)
    
public  voidsetTimestamp(int parameterIndex, java.sql.Timestamp inputValue)
    
public  voidsetUnicodeStream(int parameterIndex, java.io.InputStream inputValue, int streamLength)
    
public  voidupdateActions(Vector inputActions)
    


Constructor Detail
tinySQLPreparedStatement
public tinySQLPreparedStatement(tinySQLConnection conn, String inputString)(Code)
Constructs a new tinySQLStatement object.
Parameters:
  conn - the tinySQLConnection object




Method Detail
addBatch
public void addBatch() throws SQLException(Code)
JDBC 2.0 Adds a SQL command to the current batch of commmands for the statement. This method is optional.
Parameters:
  sql - typically this is a static SQL INSERT or UPDATE statement
exception:
  SQLException - if a database access error occurs, or thedriver does not support batch statements



addBatch
public void addBatch(String sql) throws SQLException(Code)



addTable
public void addTable(tinySQLTable inputTable)(Code)



cancel
public void cancel()(Code)
This can be used by another thread to cancel a statement. This doesn't matter for tinySQL, as far as I can tell.
See Also:   java.sql.PreparedStatement.cancel



clearBatch
public void clearBatch() throws SQLException(Code)
JDBC 2.0 Makes the set of commands in the current batch empty. This method is optional.
exception:
  SQLException - if a database access error occurs or thedriver does not support batch statements



clearParameters
public void clearParameters() throws SQLException(Code)



clearWarnings
public void clearWarnings() throws SQLException(Code)
Clear the warning chain associated with this Statement
See Also:   java.sql.PreparedStatement.clearWarnings



close
public void close() throws SQLException(Code)
Close any result sets. This is not used by tinySQL.
See Also:   java.sql.PreparedStatement.close



execute
public boolean execute() throws SQLException(Code)
Executes some SQL and returns true or false, depending on the success. The result set is stored in result, and can be retrieved with getResultSet();
See Also:   java.sql.PreparedStatement.execute
exception:
  SQLException - raised for any errors
Parameters:
  sql - the SQL to be executed true if there is a result set available



execute
public boolean execute(String sql) throws SQLException(Code)



executeBatch
public int[] executeBatch() throws SQLException(Code)
JDBC 2.0 Submits a batch of commands to the database for execution. This method is optional. an array of update counts containing one element for eachcommand in the batch. The array is ordered according to the order in which commands were inserted into the batch.
exception:
  SQLException - if a database access error occurs or thedriver does not support batch statements



executeQuery
public synchronized ResultSet executeQuery() throws SQLException(Code)
Execute an SQL statement and return a result set.
See Also:   java.sql.PreparedStatement.executeQuery
exception:
  SQLException - raised for any errors
Parameters:
  sql - the SQL statement string the result set from the query



executeQuery
public synchronized ResultSet executeQuery(String sql) throws SQLException(Code)



executeUpdate
public synchronized int executeUpdate(String sql) throws SQLException(Code)
Execute an update, insert, delete, create table, etc. This can be anything that doesn't return rows.
See Also:   java.sql.PreparedStatement.executeUpdate
exception:
  java.sql.SQLException - thrown when an error occurs executingthe SQL either the row count for INSERT, UPDATE or DELETE or 0 for SQL statements that return nothing



executeUpdate
public synchronized int executeUpdate() throws SQLException(Code)



getActions
public Vector getActions()(Code)



getConnection
public Connection getConnection() throws SQLException(Code)
JDBC 2.0 Returns the Connection object that produced this Statement object. the connection that produced this statement
exception:
  SQLException - if a database access error occurs



getFetchDirection
public int getFetchDirection() throws SQLException(Code)
JDBC 2.0 Retrieves the direction for fetching rows from database tables that is the default for result sets generated from this Statement object. If this Statement object has not set a fetch direction by calling the method setFetchDirection, the return value is implementation-specific. the default fetch direction for result sets generatedfrom this Statement object
exception:
  SQLException - if a database access error occurs



getFetchSize
public int getFetchSize() throws SQLException(Code)
JDBC 2.0 Retrieves the number of result set rows that is the default fetch size for result sets generated from this Statement object. If this Statement object has not set a fetch size by calling the method setFetchSize, the return value is implementation-specific. the default fetch size for result sets generatedfrom this Statement object
exception:
  SQLException - if a database access error occurs



getMaxFieldSize
public int getMaxFieldSize() throws SQLException(Code)
Get the maximum field size to return in a result set.
See Also:   java.sql.PreparedStatement.getMaxFieldSize the value of max field size



getMaxRows
public int getMaxRows() throws SQLException(Code)
Get the maximum row count that can be returned by a result set.
See Also:   java.sql.PreparedStatement.getMaxRows the maximum rows



getMetaData
public ResultSetMetaData getMetaData()(Code)



getMoreResults
public boolean getMoreResults() throws SQLException(Code)
This returns true if there are any pending result sets. This should only be true after invoking execute()
See Also:   java.sql.PreparedStatement.getMoreResults true if rows are to be gotten



getQueryTimeout
public int getQueryTimeout() throws SQLException(Code)
Discover the query timeout.
See Also:   java.sql.PreparedStatement.getQueryTimeout
See Also:   setQueryTimeout the timeout value for this statement



getResultSet
public ResultSet getResultSet() throws SQLException(Code)
Returns the last result set
See Also:   java.sql.PreparedStatement.getResultSet null if no result set is available, otherwise a result set



getResultSetConcurrency
public int getResultSetConcurrency() throws SQLException(Code)
JDBC 2.0 Retrieves the result set concurrency.



getResultSetType
public int getResultSetType() throws SQLException(Code)
JDBC 2.0 Determine the result set type.



getSQLString
public String getSQLString()(Code)
Returns the current query-String



getUpdateCount
public int getUpdateCount() throws SQLException(Code)
Return the row count of the last operation. tinySQL does not support this, so it returns -1
See Also:   java.sql.PreparedStatement.getUpdateCount -1



getWarnings
final public SQLWarning getWarnings() throws SQLException(Code)
Get the warning chain associated with this Statement
See Also:   java.sql.PreparedStatement.getWarnings the chain of warnings



setArray
public void setArray(int parameterIndex, java.sql.Array inputValue) throws SQLException(Code)



setAsciiStream
public void setAsciiStream(int parameterIndex, java.io.InputStream inputValue, int streamLength) throws SQLException(Code)



setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal inputValue) throws SQLException(Code)



setBinaryStream
public void setBinaryStream(int parameterIndex, java.io.InputStream inputValue, int streamLength) throws SQLException(Code)



setBlob
public void setBlob(int parameterIndex, java.sql.Blob inputValue) throws SQLException(Code)



setBoolean
public void setBoolean(int parameterIndex, boolean inputValue) throws SQLException(Code)



setByte
public void setByte(int parameterIndex, byte inputValue) throws SQLException(Code)



setBytes
public void setBytes(int parameterIndex, byte[] inputValue) throws SQLException(Code)



setCharacterStream
public void setCharacterStream(int parameterIndex, java.io.Reader inputValue, int streamLength) throws SQLException(Code)



setClob
public void setClob(int parameterIndex, java.sql.Clob inputValue) throws SQLException(Code)



setCursorName
public void setCursorName(String unused) throws SQLException(Code)
Sets the cursor name for this connection. Presently unsupported.



setDate
public void setDate(int parameterIndex, java.sql.Date inputValue, java.util.Calendar inputCalendar) throws SQLException(Code)



setDate
public void setDate(int parameterIndex, java.sql.Date inputValue) throws SQLException(Code)



setDouble
public void setDouble(int parameterIndex, double inputValue) throws SQLException(Code)



setEscapeProcessing
public void setEscapeProcessing(boolean enable) throws SQLException(Code)
If escape scanning is on (the default) the driver will do escape substitution before sending the SQL to the database.
See Also:   java.sql.PreparedStatement.setEscapeProcessing
Parameters:
  enable - this does nothing right now



setFetchDirection
public void setFetchDirection(int direction) throws SQLException(Code)
JDBC 2.0 Gives the driver a hint as to the direction in which the rows in a result set will be processed. The hint applies only to result sets created using this Statement object. The default value is ResultSet.FETCH_FORWARD.

Note that this method sets the default fetch direction for result sets generated by this Statement object. Each result set has its own methods for getting and setting its own fetch direction.
Parameters:
  direction - the initial direction for processing rows
exception:
  SQLException - if a database access error occursor the given directionis not one of ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, orResultSet.FETCH_UNKNOWN




setFetchSize
public void setFetchSize(int rows) throws SQLException(Code)
JDBC 2.0 Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed. The number of rows specified affects only result sets created using this statement. If the value specified is zero, then the hint is ignored. The default value is zero.
Parameters:
  rows - the number of rows to fetch
exception:
  SQLException - if a database access error occurs, or thecondition 0 <= rows <= this.getMaxRows() is not satisfied.



setFloat
public void setFloat(int parameterIndex, float inputValue) throws SQLException(Code)



setInt
public void setInt(int parameterIndex, int inputValue) throws SQLException(Code)



setLong
public void setLong(int parameterIndex, long inputValue) throws SQLException(Code)



setMaxFieldSize
public void setMaxFieldSize(int max) throws SQLException(Code)
set the max field size.
See Also:   java.sql.PreparedStatement.setMaxFieldSize
Parameters:
  max - the maximum field size



setMaxRows
public void setMaxRows(int max) throws SQLException(Code)
Get the maximum row count that can be returned by a result set.
See Also:   java.sql.PreparedStatement.setMaxRows
Parameters:
  max - the max rows



setNull
public void setNull(int parameterIndex, int sqlType) throws SQLException(Code)



setNull
public void setNull(int parameterIndex, int sqlType, String sqlTypeName) throws SQLException(Code)



setObject
public void setObject(int parameterIndex, Object inputValue) throws SQLException(Code)



setObject
public void setObject(int parameterIndex, Object inputValue, int targetSQLType) throws SQLException(Code)



setObject
public void setObject(int parameterIndex, Object inputValue, int targetSQLType, int scale) throws SQLException(Code)



setQueryTimeout
public void setQueryTimeout(int x) throws SQLException(Code)
Set the query timeout.
See Also:   java.sql.PreparedStatement.setQueryTimeout
See Also:   getQueryTimeout
Parameters:
  x - the new query timeout value



setRef
public void setRef(int parameterIndex, java.sql.Ref inputValue) throws SQLException(Code)



setShort
public void setShort(int parameterIndex, short inputValue) throws SQLException(Code)



setString
public void setString(int parameterIndex, String setString) throws SQLException(Code)



setTime
public void setTime(int parameterIndex, java.sql.Time inputValue, java.util.Calendar inputCalendar) throws SQLException(Code)



setTime
public void setTime(int parameterIndex, java.sql.Time inputValue) throws SQLException(Code)



setTimestamp
public void setTimestamp(int parameterIndex, java.sql.Timestamp inputValue, java.util.Calendar inputCalendar) throws SQLException(Code)



setTimestamp
public void setTimestamp(int parameterIndex, java.sql.Timestamp inputValue) throws SQLException(Code)



setUnicodeStream
public void setUnicodeStream(int parameterIndex, java.io.InputStream inputValue, int streamLength) throws SQLException(Code)



updateActions
public void updateActions(Vector inputActions) throws SQLException(Code)



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.