Java Doc for ParamInfo.java in  » Database-JDBC-Connection-Pool » jTDS » net » sourceforge » jtds » jdbc » 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 JDBC Connection Pool » jTDS » net.sourceforge.jtds.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.jtds.jdbc.ParamInfo

ParamInfo
class ParamInfo implements Cloneable(Code)
This class is a descriptor for procedure and prepared statement parameters.
author:
   Mike Hutchinson
version:
   $Id: ParamInfo.java,v 1.16 2005/04/25 11:47:01 alin_sinpalean Exp $


Field Summary
final static  intINPUT
     Flag as an input parameter.
final static  intOUTPUT
     Flag as an output parameter.
final static  intRETVAL
     Flag as an return value parameter.
final static  intUNICODE
     Flag as a unicode parameter.
 CharsetInfocharsetInfo
    
 bytecollation
     TDS 8 Collation string.
 booleanisOutput
    
 booleanisRetVal
    
 booleanisSet
    
 booleanisSetOut
     OUT parameter value is set.
 booleanisUnicode
    
 intjdbcType
    
 intlength
    
 intmarkerPos
    
 Stringname
    
 ObjectoutValue
     OUT Parameter value.
 intprecision
    
 intscale
    
 StringsqlType
    
 inttdsType
    
 Objectvalue
    

Constructor Summary
 ParamInfo(int pos, boolean isUnicode)
     Construct a parameter with parameter marker offset.
 ParamInfo(String name, int pos, boolean isRetVal, boolean isUnicode)
     Construct a parameter for statement caching.
 ParamInfo(int jdbcType, Object value, int flags)
     Construct an initialised parameter with extra attributes.
 ParamInfo(ColInfo ci, String name, Object value, int length)
     Construct a parameter based on a result set column.

Method Summary
 voidclearInValue()
     Clear the IN parameter value and status.
 voidclearOutValue()
     Clear the OUT parameter value and status.
public  Objectclone()
     Creates a shallow copy of this ParamInfo instance.
 byte[]getBytes(String charset)
     Get the byte array value of the parameter.
 ObjectgetOutValue()
     Get the output parameter value.
 StringgetString(String charset)
     Get the string value of the parameter.
 voidsetOutValue(Object value)
     Set the OUT parameter value.

Field Detail
INPUT
final static int INPUT(Code)
Flag as an input parameter.



OUTPUT
final static int OUTPUT(Code)
Flag as an output parameter.



RETVAL
final static int RETVAL(Code)
Flag as an return value parameter.



UNICODE
final static int UNICODE(Code)
Flag as a unicode parameter.



charsetInfo
CharsetInfo charsetInfo(Code)
Character set descriptor (if different from default)



collation
byte collation(Code)
TDS 8 Collation string.



isOutput
boolean isOutput(Code)
Parameter is an output parameter



isRetVal
boolean isRetVal(Code)
Parameter is used as SP return value



isSet
boolean isSet(Code)
IN parameter has been set



isSetOut
boolean isSetOut(Code)
OUT parameter value is set.



isUnicode
boolean isUnicode(Code)
Parameter should be sent as unicode



jdbcType
int jdbcType(Code)
JDBC type constant from java.sql.Types



length
int length(Code)
Length of InputStream



markerPos
int markerPos(Code)
Parameter offset in target SQL statement



name
String name(Code)
Formal parameter name eg @P1



outValue
Object outValue(Code)
OUT Parameter value.



precision
int precision(Code)
Parameter decimal precision



scale
int scale(Code)
Parameter decimal scale



sqlType
String sqlType(Code)
SQL type name eg varchar(10)



tdsType
int tdsType(Code)
Internal TDS data type



value
Object value(Code)
Current parameter value




Constructor Detail
ParamInfo
ParamInfo(int pos, boolean isUnicode)(Code)
Construct a parameter with parameter marker offset.
Parameters:
  pos - the offset of the ? symbol in the target SQL string
Parameters:
  isUnicode - true if the parameter is Unicode encoded



ParamInfo
ParamInfo(String name, int pos, boolean isRetVal, boolean isUnicode)(Code)
Construct a parameter for statement caching.
Parameters:
  name - the formal name of the parameter
Parameters:
  pos - the offset of the ? symbol in the parsed SQL string
Parameters:
  isRetVal - true if the parameter is a return value
Parameters:
  isUnicode - true if the parameter is Unicode encoded



ParamInfo
ParamInfo(int jdbcType, Object value, int flags)(Code)
Construct an initialised parameter with extra attributes.
Parameters:
  jdbcType - the java.sql.Type constant describing this type
Parameters:
  value - the initial parameter value
Parameters:
  flags - the additional attributes eg OUTPUT, RETVAL, UNICODE etc.



ParamInfo
ParamInfo(ColInfo ci, String name, Object value, int length)(Code)
Construct a parameter based on a result set column.
Parameters:
  ci - the column descriptor
Parameters:
  name - the name for this parameter or null
Parameters:
  value - the column data value
Parameters:
  length - the column data length




Method Detail
clearInValue
void clearInValue()(Code)
Clear the IN parameter value and status.



clearOutValue
void clearOutValue()(Code)
Clear the OUT parameter value and status.



clone
public Object clone()(Code)
Creates a shallow copy of this ParamInfo instance. Used by the PreparedStatement batching implementation to duplicate parameters.



getBytes
byte[] getBytes(String charset) throws IOException(Code)
Get the byte array value of the parameter. The data value as a byte[] or null.



getOutValue
Object getOutValue() throws SQLException(Code)
Get the output parameter value. the OUT value as an Object
throws:
  SQLException - if the parameter has not been set



getString
String getString(String charset) throws IOException(Code)
Get the string value of the parameter. The data value as a String or null.



setOutValue
void setOutValue(Object value)(Code)
Set the OUT parameter value.
Parameters:
  value - The data value.



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.