Java Doc for ParameterSetter.java in  » Database-ORM » iBATIS » com » ibatis » sqlmap » client » extensions » 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 ORM » iBATIS » com.ibatis.sqlmap.client.extensions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ibatis.sqlmap.client.extensions.ParameterSetter

All known Subclasses:   com.ibatis.sqlmap.engine.type.ParameterSetterImpl,
ParameterSetter
public interface ParameterSetter (Code)
Allows parameters to be set on the underlying prepared statement. TypeHandlerCallback implementations use this interface to process values before they are set on the prepared statement. Each of these methods has a corresponding method on the PreparedStatement class, the only difference being that there is no need to specify the parameter index with these methods.

NOTE: There is no need to implement this. The implementation will be passed into the TypeHandlerCallback automatically.





Method Summary
public  intgetParameterIndex()
     Returns the index of the parameter being set.
public  PreparedStatementgetPreparedStatement()
    
public  voidsetArray(Array x)
    
public  voidsetAsciiStream(InputStream x, int length)
    
public  voidsetBigDecimal(BigDecimal x)
    
public  voidsetBinaryStream(InputStream x, int length)
    
public  voidsetBlob(Blob x)
    
public  voidsetBoolean(boolean x)
    
public  voidsetByte(byte x)
    
public  voidsetBytes(byte x)
    
public  voidsetCharacterStream(Reader reader, int length)
    
public  voidsetClob(Clob x)
    
public  voidsetDate(Date x)
    
public  voidsetDate(Date x, Calendar cal)
    
public  voidsetDouble(double x)
    
public  voidsetFloat(float x)
    
public  voidsetInt(int x)
    
public  voidsetLong(long x)
    
public  voidsetNull(int sqlType)
    
public  voidsetNull(int sqlType, String typeName)
    
public  voidsetObject(Object x)
    
public  voidsetObject(Object x, int targetSqlType)
    
public  voidsetObject(Object x, int targetSqlType, int scale)
    
public  voidsetRef(Ref x)
    
public  voidsetShort(short x)
    
public  voidsetString(String x)
    
public  voidsetTime(Time x)
    
public  voidsetTime(Time x, Calendar cal)
    
public  voidsetTimestamp(Timestamp x)
    
public  voidsetTimestamp(Timestamp x, Calendar cal)
    
public  voidsetURL(URL x)
    



Method Detail
getParameterIndex
public int getParameterIndex()(Code)
Returns the index of the parameter being set. the parameter index used to set the value in the underlyingPreparedStatement



getPreparedStatement
public PreparedStatement getPreparedStatement()(Code)
Returns the underlying prepared statement...be careful!



setArray
public void setArray(Array x) throws SQLException(Code)
Set an array on the underlying prepared statement
Parameters:
  x - - the array to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setAsciiStream
public void setAsciiStream(InputStream x, int length) throws SQLException(Code)
Set an InputStream on the underlying prepared statement
Parameters:
  x - - the InputStream
Parameters:
  length - - the length of the InputStream
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setBigDecimal
public void setBigDecimal(BigDecimal x) throws SQLException(Code)
Set an on the underlying prepared statement
Parameters:
  x -
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setBinaryStream
public void setBinaryStream(InputStream x, int length) throws SQLException(Code)
Set an InputStream on the underlying prepared statement
Parameters:
  x - - the InputStream
Parameters:
  length - - the length of the InputStream
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setBlob
public void setBlob(Blob x) throws SQLException(Code)
Set a blob on the underlying prepared statement
Parameters:
  x - - the blob
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setBoolean
public void setBoolean(boolean x) throws SQLException(Code)
Set a boolean on the underlying prepared statement
Parameters:
  x - - the boolean
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setByte
public void setByte(byte x) throws SQLException(Code)
Set a byte on the underlying prepared statement
Parameters:
  x - - the byte
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setBytes
public void setBytes(byte x) throws SQLException(Code)
Set a byte array on the underlying prepared statement
Parameters:
  x - - the byte[]
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setCharacterStream
public void setCharacterStream(Reader reader, int length) throws SQLException(Code)
Set a character stream on the underlying prepared statement
Parameters:
  reader - - the reader
Parameters:
  length - - the length of the reader
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setClob
public void setClob(Clob x) throws SQLException(Code)
Set a clob on the underlying prepared statement
Parameters:
  x - - the clob
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setDate
public void setDate(Date x) throws SQLException(Code)
Set a date on the underlying prepared statement
Parameters:
  x - - the date
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setDate
public void setDate(Date x, Calendar cal) throws SQLException(Code)
Set a date with a calendar on the underlying prepared statement
Parameters:
  x - - the date
Parameters:
  cal - - the calendar
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setDouble
public void setDouble(double x) throws SQLException(Code)
Set a double on the underlying prepared statement
Parameters:
  x - - the double
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setFloat
public void setFloat(float x) throws SQLException(Code)
Set a float on the underlying prepared statement
Parameters:
  x - the float
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setInt
public void setInt(int x) throws SQLException(Code)
Set an integer on the underlying prepared statement
Parameters:
  x - - the int
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setLong
public void setLong(long x) throws SQLException(Code)
Set a long on the underlying prepared statement
Parameters:
  x - - the long
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setNull
public void setNull(int sqlType) throws SQLException(Code)
Set a null on the underlying prepared statement
Parameters:
  sqlType - - the type for the null value
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setNull
public void setNull(int sqlType, String typeName) throws SQLException(Code)
Set a null on the underlying prepared statement
Parameters:
  sqlType - - the type for the null value
Parameters:
  typeName - - the name of the type
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setObject
public void setObject(Object x) throws SQLException(Code)
Set an object on the underlying prepared statement
Parameters:
  x - - the object to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setObject
public void setObject(Object x, int targetSqlType) throws SQLException(Code)
Set an object on the underlying prepared statement
Parameters:
  x - - the object to set
Parameters:
  targetSqlType - - the sql type of the object
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setObject
public void setObject(Object x, int targetSqlType, int scale) throws SQLException(Code)
Set an object on the underlying prepared statement
Parameters:
  x - - the object to set
Parameters:
  targetSqlType - - the sql type of the object
Parameters:
  scale - - the scale of the object
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setRef
public void setRef(Ref x) throws SQLException(Code)
Set a reference on the underlying prepared statement
Parameters:
  x - - the reference to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setShort
public void setShort(short x) throws SQLException(Code)
Set a short on the underlying prepared statement
Parameters:
  x - - the short to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setString
public void setString(String x) throws SQLException(Code)
Set a string on the underlying prepared statement
Parameters:
  x - - the string to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setTime
public void setTime(Time x) throws SQLException(Code)
Set a time on the underlying prepared statement
Parameters:
  x - - the time to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setTime
public void setTime(Time x, Calendar cal) throws SQLException(Code)
Set a time with a calendar on the underlying prepared statement
Parameters:
  x - - the time to set
Parameters:
  cal - - the calendar to use
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setTimestamp
public void setTimestamp(Timestamp x) throws SQLException(Code)
Set a timestamp on the underlying prepared statement
Parameters:
  x - - the timestamp to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setTimestamp
public void setTimestamp(Timestamp x, Calendar cal) throws SQLException(Code)
Set a timestamp on the underlying prepared statement
Parameters:
  x - - the timestamp to set
Parameters:
  cal - - the calendar to use
throws:
  SQLException - - thrown if the underlying prepared statement throws it



setURL
public void setURL(URL x) throws SQLException(Code)
Set a URL on the underlying prepared statement
Parameters:
  x - - the url to set
throws:
  SQLException - - thrown if the underlying prepared statement throws it



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