Java Doc for DataValueFactory.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » types » 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 » db derby 10.2 » org.apache.derby.iapi.types 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.iapi.types.DataValueFactory

All known Subclasses:   org.apache.derby.iapi.types.DataValueFactoryImpl,
DataValueFactory
public interface DataValueFactory (Code)
This interface is how we get constant data values of different types.




Method Summary
 BitDataValuegetBitDataValue(byte[] value)
     Get a SQL bit with the given value.
 BitDataValuegetBitDataValue(byte[] value, BitDataValue previous)
    
 BitDataValuegetBlobDataValue(byte[] value)
     Get a SQL Blob with the given value.
 BitDataValuegetBlobDataValue(byte[] value, BitDataValue previous)
    
 StringDataValuegetCharDataValue(String value)
     Get a SQL char with the given value.
 StringDataValuegetCharDataValue(String value, StringDataValue previous)
    
 StringDataValuegetClobDataValue(String value)
     Get a SQL Clob with the given value.
 StringDataValuegetClobDataValue(String value, StringDataValue previous)
    
 NumberDataValuegetDataValue(Integer value)
     Get a SQL int with the given value.
 NumberDataValuegetDataValue(Integer value, NumberDataValue previous)
    
public  NumberDataValuegetDataValue(char value)
     Get a SQL int with a char value.
public  NumberDataValuegetDataValue(char value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(Short value)
     Get a SQL smallint with the given value.
 NumberDataValuegetDataValue(Short value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(Byte value)
     Get a SQL TINYINT with the given value.
 NumberDataValuegetDataValue(Byte value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(Long value)
     Get a SQL bigint with the given value.
 NumberDataValuegetDataValue(Long value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(Float value)
     Get a SQL real with the given value.
 NumberDataValuegetDataValue(Float value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(Double value)
     Get a SQL double precision with the given value.
 NumberDataValuegetDataValue(Double value, NumberDataValue previous)
    
 BooleanDataValuegetDataValue(Boolean value)
     Get a SQL boolean with the given value.
 BooleanDataValuegetDataValue(Boolean value, BooleanDataValue previous)
    
 BooleanDataValuegetDataValue(BooleanDataValue value)
     Get a SQL boolean with the given value.
 UserDataValuegetDataValue(Object value)
     Get a User-defined data value with the given value and type name. A null argument means get a SQL null value.
 UserDataValuegetDataValue(Object value, UserDataValue previous)
    
 RefDataValuegetDataValue(RowLocation value)
     Get a RefDataValue with the given value.
 RefDataValuegetDataValue(RowLocation value, RefDataValue previous)
    
 NumberDataValuegetDataValue(int value)
     Get a SQL int with the given value.
 NumberDataValuegetDataValue(int value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(long value)
     Get a SQL bigint with the given value.
 NumberDataValuegetDataValue(long value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(float value)
     Get a SQL real with the given value.
 NumberDataValuegetDataValue(float value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(double value)
     Get a SQL double precision with the given value.
 NumberDataValuegetDataValue(double value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(short value)
     Get a SQL SMALLINT with the given value.
 NumberDataValuegetDataValue(short value, NumberDataValue previous)
    
 NumberDataValuegetDataValue(byte value)
     Get a SQL TINYINT with the given value.
 NumberDataValuegetDataValue(byte value, NumberDataValue previous)
    
 BooleanDataValuegetDataValue(boolean value)
     Get a SQL boolean with the given value.
 BooleanDataValuegetDataValue(boolean value, BooleanDataValue previous)
    
 DateTimeDataValuegetDataValue(Date value)
     Get a SQL date with the given value.
 DateTimeDataValuegetDataValue(Date value, DateTimeDataValue previous)
    
 DateTimeDataValuegetDataValue(Time value)
     Get a SQL time with the given value.
 DateTimeDataValuegetDataValue(Time value, DateTimeDataValue previous)
    
 DateTimeDataValuegetDataValue(Timestamp value)
     Get a SQL timestamp with the given value.
 DateTimeDataValuegetDataValue(Timestamp value, DateTimeDataValue previous)
    
public  DateTimeDataValuegetDate(DataValueDescriptor operand)
     Implements the SQL date function
Parameters:
  operand - A date, timestamp, string or integer.
public  DateTimeDataValuegetDateValue(String dateStr, boolean isJdbcEscape)
    
Parameters:
  dateStr - A date in one of the DB2 standard date formats or the local format.
Parameters:
  isJdbcEscape - If true then the timestamp must be in the JDBC timestamp escape format, otherwise it mustbe in the DB2 timestamp format.
 NumberDataValuegetDecimalDataValue(Number value)
     Get a SQL DECIMAL with the given value.
 NumberDataValuegetDecimalDataValue(Number value, NumberDataValue previous)
    
 NumberDataValuegetDecimalDataValue(Long value, NumberDataValue previous)
     Get a SQL DECIMAL with the given value.
 NumberDataValuegetDecimalDataValue(String value)
     Get a SQL DECIMAL with the given value.
 NumberDataValuegetDecimalDataValue(String value, NumberDataValue previous)
    
 BitDataValuegetLongVarbitDataValue(byte[] value)
     Get a SQL Long Bit Varying with the given value.
 BitDataValuegetLongVarbitDataValue(byte[] value, BitDataValue previous)
    
 StringDataValuegetLongvarcharDataValue(String value)
     Get a SQL long varchar with the given value.
 StringDataValuegetLongvarcharDataValue(String value, StringDataValue previous)
    
 StringDataValuegetNClobDataValue(String value)
     Get a SQL national blob with the given value.
 StringDataValuegetNClobDataValue(String value, StringDataValue previous)
    
 StringDataValuegetNationalCharDataValue(String value)
     Get a SQL national char with the given value.
 StringDataValuegetNationalCharDataValue(String value, StringDataValue previous)
    
 StringDataValuegetNationalLongvarcharDataValue(String value)
     Get a SQL national long varchar with the given value.
 StringDataValuegetNationalLongvarcharDataValue(String value, StringDataValue previous)
    
 StringDataValuegetNationalVarcharDataValue(String value)
     Get a SQL national varchar with the given value.
 StringDataValuegetNationalVarcharDataValue(String value, StringDataValue previous)
    
 BitDataValuegetNullBit(BitDataValue dataValue)
     Get a SQL Bit with a SQL null value.
 BitDataValuegetNullBlob(BitDataValue dataValue)
     Get a SQL Blob with a SQL null value.
 BooleanDataValuegetNullBoolean(BooleanDataValue dataValue)
     Get a SQL boolean with a SQL null value.
 NumberDataValuegetNullByte(NumberDataValue dataValue)
     Get a SQL tinyint with a SQL null value.
 StringDataValuegetNullChar(StringDataValue dataValue)
     Get a SQL char with a SQL null value.
 StringDataValuegetNullClob(StringDataValue dataValue)
     Get a SQL long varchar with a SQL null value.
 DateTimeDataValuegetNullDate(DateTimeDataValue dataValue)
     Get a SQL date with a SQL null value.
 NumberDataValuegetNullDecimal(NumberDataValue dataValue)
     Get a SQL Decimal/Numeric with a SQL null value.
 NumberDataValuegetNullDouble(NumberDataValue dataValue)
     Get a SQL double with a SQL null value.
 NumberDataValuegetNullFloat(NumberDataValue dataValue)
     Get a SQL float with a SQL null value.
 NumberDataValuegetNullInteger(NumberDataValue dataValue)
     Get a SQL int with a SQL null value.
 NumberDataValuegetNullLong(NumberDataValue dataValue)
     Get a SQL bigint with a SQL null value.
 BitDataValuegetNullLongVarbit(BitDataValue dataValue)
     Get a SQL Long Bit Varying with a SQL null value.
 StringDataValuegetNullLongvarchar(StringDataValue dataValue)
     Get a SQL long varchar with a SQL null value.
 StringDataValuegetNullNClob(StringDataValue dataValue)
     Get a SQL NCLOB with a SQL null value.
 StringDataValuegetNullNationalChar(StringDataValue dataValue)
     Get a SQL national char with a SQL null value.
 StringDataValuegetNullNationalLongvarchar(StringDataValue dataValue)
     Get a SQL national long varchar with a SQL null value.
 StringDataValuegetNullNationalVarchar(StringDataValue dataValue)
     Get a SQL national varchar with a SQL null value.
 UserDataValuegetNullObject(UserDataValue dataValue)
     Get a User-defined data value with a SQL null value.
 RefDataValuegetNullRef(RefDataValue dataValue)
     Get a RefDataValue with a SQL null value.
 NumberDataValuegetNullShort(NumberDataValue dataValue)
     Get a SQL smallint with a SQL null value.
 DateTimeDataValuegetNullTime(DateTimeDataValue dataValue)
     Get a SQL time with a SQL null value.
 DateTimeDataValuegetNullTimestamp(DateTimeDataValue dataValue)
     Get a SQL timestamp with a SQL null value.
 BitDataValuegetNullVarbit(BitDataValue dataValue)
     Get a SQL Bit Varying with a SQL null value.
 StringDataValuegetNullVarchar(StringDataValue dataValue)
     Get a SQL varchar with a SQL null value.
 XMLDataValuegetNullXML(XMLDataValue dataValue)
     Get an XML with a SQL null value.
public  DateTimeDataValuegetTimeValue(String timeStr, boolean isJdbcEscape)
    
Parameters:
  timeStr - A date in one of the DB2 standard time formats or the local format.
Parameters:
  isJdbcEscape - If true then the timestamp must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format.
 DateTimeDataValuegetTimestamp(DataValueDescriptor operand)
     Implement the timestamp SQL function: construct a SQL timestamp from a string, or timestamp.
 DateTimeDataValuegetTimestamp(DataValueDescriptor date, DataValueDescriptor time)
     Construct a SQL timestamp from a date and time.
public  DateTimeDataValuegetTimestampValue(String timestampStr, boolean isJdbcEscape)
    
Parameters:
  timestampStr - A time in string format.
Parameters:
  isJdbcEscape - If true then the time must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format.
 BitDataValuegetVarbitDataValue(byte[] value)
     Get a SQL bit with the given value.
 BitDataValuegetVarbitDataValue(byte[] value, BitDataValue previous)
    
 StringDataValuegetVarcharDataValue(String value)
     Get a SQL varchar with the given value.
 StringDataValuegetVarcharDataValue(String value, StringDataValue previous)
    
 XMLDataValuegetXMLDataValue()
     Get a null XML value.
 XMLDataValuegetXMLDataValue(XMLDataValue previous)
    



Method Detail
getBitDataValue
BitDataValue getBitDataValue(byte[] value) throws StandardException(Code)
Get a SQL bit with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.
exception:
  StandardException - Thrown on error



getBitDataValue
BitDataValue getBitDataValue(byte[] value, BitDataValue previous) throws StandardException(Code)



getBlobDataValue
BitDataValue getBlobDataValue(byte[] value) throws StandardException(Code)
Get a SQL Blob with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.
exception:
  StandardException - Thrown on error



getBlobDataValue
BitDataValue getBlobDataValue(byte[] value, BitDataValue previous) throws StandardException(Code)



getCharDataValue
StringDataValue getCharDataValue(String value)(Code)
Get a SQL char with the given value. A null argument means get a SQL null value. The second form re-uses the previous value, if non-null, as the data holder to return.



getCharDataValue
StringDataValue getCharDataValue(String value, StringDataValue previous) throws StandardException(Code)



getClobDataValue
StringDataValue getClobDataValue(String value)(Code)
Get a SQL Clob with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getClobDataValue
StringDataValue getClobDataValue(String value, StringDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(Integer value)(Code)
Get a SQL int with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
NumberDataValue getDataValue(Integer value, NumberDataValue previous) throws StandardException(Code)



getDataValue
public NumberDataValue getDataValue(char value)(Code)
Get a SQL int with a char value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
public NumberDataValue getDataValue(char value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(Short value)(Code)
Get a SQL smallint with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
NumberDataValue getDataValue(Short value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(Byte value)(Code)
Get a SQL TINYINT with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
NumberDataValue getDataValue(Byte value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(Long value)(Code)
Get a SQL bigint with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
NumberDataValue getDataValue(Long value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(Float value) throws StandardException(Code)
Get a SQL real with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
NumberDataValue getDataValue(Float value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(Double value) throws StandardException(Code)
Get a SQL double precision with the given value. A null argument means a SQL null value. The second form uses the previous value (if non-null) to hold the return value.
exception:
  StandardException - Thrown on error



getDataValue
NumberDataValue getDataValue(Double value, NumberDataValue previous) throws StandardException(Code)



getDataValue
BooleanDataValue getDataValue(Boolean value)(Code)
Get a SQL boolean with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
BooleanDataValue getDataValue(Boolean value, BooleanDataValue previous) throws StandardException(Code)



getDataValue
BooleanDataValue getDataValue(BooleanDataValue value) throws StandardException(Code)
Get a SQL boolean with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.
exception:
  StandardException - Thrown on error



getDataValue
UserDataValue getDataValue(Object value)(Code)
Get a User-defined data value with the given value and type name. A null argument means get a SQL null value. The second form uses the previous value (if non-null) hold the return value.



getDataValue
UserDataValue getDataValue(Object value, UserDataValue previous)(Code)



getDataValue
RefDataValue getDataValue(RowLocation value)(Code)
Get a RefDataValue with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getDataValue
RefDataValue getDataValue(RowLocation value, RefDataValue previous)(Code)



getDataValue
NumberDataValue getDataValue(int value)(Code)
Get a SQL int with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
NumberDataValue getDataValue(int value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(long value)(Code)
Get a SQL bigint with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
NumberDataValue getDataValue(long value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(float value) throws StandardException(Code)
Get a SQL real with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.
exception:
  StandardException - Thrown on error



getDataValue
NumberDataValue getDataValue(float value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(double value) throws StandardException(Code)
Get a SQL double precision with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.
exception:
  StandardException - Thrown on error



getDataValue
NumberDataValue getDataValue(double value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(short value)(Code)
Get a SQL SMALLINT with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
NumberDataValue getDataValue(short value, NumberDataValue previous) throws StandardException(Code)



getDataValue
NumberDataValue getDataValue(byte value)(Code)
Get a SQL TINYINT with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
NumberDataValue getDataValue(byte value, NumberDataValue previous) throws StandardException(Code)



getDataValue
BooleanDataValue getDataValue(boolean value)(Code)
Get a SQL boolean with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
BooleanDataValue getDataValue(boolean value, BooleanDataValue previous) throws StandardException(Code)



getDataValue
DateTimeDataValue getDataValue(Date value) throws StandardException(Code)
Get a SQL date with the given value. A null argument means get a SQL null value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
DateTimeDataValue getDataValue(Date value, DateTimeDataValue previous) throws StandardException(Code)



getDataValue
DateTimeDataValue getDataValue(Time value) throws StandardException(Code)
Get a SQL time with the given value. A null argument means get a SQL null value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
DateTimeDataValue getDataValue(Time value, DateTimeDataValue previous) throws StandardException(Code)



getDataValue
DateTimeDataValue getDataValue(Timestamp value) throws StandardException(Code)
Get a SQL timestamp with the given value. A null argument means get a SQL null value. The second form re-uses the previous value, if non-null, as the data holder to return.



getDataValue
DateTimeDataValue getDataValue(Timestamp value, DateTimeDataValue previous) throws StandardException(Code)



getDate
public DateTimeDataValue getDate(DataValueDescriptor operand) throws StandardException(Code)
Implements the SQL date function
Parameters:
  operand - A date, timestamp, string or integer. the corresponding date value
exception:
  StandardException - if the syntax is invalid or the date is out of range.



getDateValue
public DateTimeDataValue getDateValue(String dateStr, boolean isJdbcEscape) throws StandardException(Code)

Parameters:
  dateStr - A date in one of the DB2 standard date formats or the local format.
Parameters:
  isJdbcEscape - If true then the timestamp must be in the JDBC timestamp escape format, otherwise it mustbe in the DB2 timestamp format. A DateTimeDataValue
exception:
  StandardException - if the syntax is invalid or the date is out of range.



getDecimalDataValue
NumberDataValue getDecimalDataValue(Number value) throws StandardException(Code)
Get a SQL DECIMAL with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.
exception:
  StandardException - Thrown on error



getDecimalDataValue
NumberDataValue getDecimalDataValue(Number value, NumberDataValue previous) throws StandardException(Code)



getDecimalDataValue
NumberDataValue getDecimalDataValue(Long value, NumberDataValue previous) throws StandardException(Code)
Get a SQL DECIMAL with the given value.
exception:
  StandardException - Thrown on error



getDecimalDataValue
NumberDataValue getDecimalDataValue(String value) throws StandardException(Code)
Get a SQL DECIMAL with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.
exception:
  StandardException - Thrown on error



getDecimalDataValue
NumberDataValue getDecimalDataValue(String value, NumberDataValue previous) throws StandardException(Code)



getLongVarbitDataValue
BitDataValue getLongVarbitDataValue(byte[] value) throws StandardException(Code)
Get a SQL Long Bit Varying with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.
exception:
  StandardException - Thrown on error



getLongVarbitDataValue
BitDataValue getLongVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException(Code)



getLongvarcharDataValue
StringDataValue getLongvarcharDataValue(String value)(Code)
Get a SQL long varchar with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getLongvarcharDataValue
StringDataValue getLongvarcharDataValue(String value, StringDataValue previous) throws StandardException(Code)



getNClobDataValue
StringDataValue getNClobDataValue(String value)(Code)
Get a SQL national blob with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getNClobDataValue
StringDataValue getNClobDataValue(String value, StringDataValue previous) throws StandardException(Code)



getNationalCharDataValue
StringDataValue getNationalCharDataValue(String value)(Code)
Get a SQL national char with the given value. A null argument means get a SQL null value. The second form re-uses the previous value, if non-null, as the data holder to return.



getNationalCharDataValue
StringDataValue getNationalCharDataValue(String value, StringDataValue previous) throws StandardException(Code)



getNationalLongvarcharDataValue
StringDataValue getNationalLongvarcharDataValue(String value)(Code)
Get a SQL national long varchar with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getNationalLongvarcharDataValue
StringDataValue getNationalLongvarcharDataValue(String value, StringDataValue previous) throws StandardException(Code)



getNationalVarcharDataValue
StringDataValue getNationalVarcharDataValue(String value)(Code)
Get a SQL national varchar with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getNationalVarcharDataValue
StringDataValue getNationalVarcharDataValue(String value, StringDataValue previous) throws StandardException(Code)



getNullBit
BitDataValue getNullBit(BitDataValue dataValue) throws StandardException(Code)
Get a SQL Bit with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.
exception:
  StandardException - Thrown on error



getNullBlob
BitDataValue getNullBlob(BitDataValue dataValue) throws StandardException(Code)
Get a SQL Blob with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.
exception:
  StandardException - Thrown on error



getNullBoolean
BooleanDataValue getNullBoolean(BooleanDataValue dataValue)(Code)
Get a SQL boolean with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullByte
NumberDataValue getNullByte(NumberDataValue dataValue)(Code)
Get a SQL tinyint with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullChar
StringDataValue getNullChar(StringDataValue dataValue)(Code)
Get a SQL char with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullClob
StringDataValue getNullClob(StringDataValue dataValue)(Code)
Get a SQL long varchar with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullDate
DateTimeDataValue getNullDate(DateTimeDataValue dataValue)(Code)
Get a SQL date with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullDecimal
NumberDataValue getNullDecimal(NumberDataValue dataValue)(Code)
Get a SQL Decimal/Numeric with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullDouble
NumberDataValue getNullDouble(NumberDataValue dataValue)(Code)
Get a SQL double with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullFloat
NumberDataValue getNullFloat(NumberDataValue dataValue)(Code)
Get a SQL float with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullInteger
NumberDataValue getNullInteger(NumberDataValue dataValue)(Code)
Get a SQL int with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullLong
NumberDataValue getNullLong(NumberDataValue dataValue)(Code)
Get a SQL bigint with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullLongVarbit
BitDataValue getNullLongVarbit(BitDataValue dataValue) throws StandardException(Code)
Get a SQL Long Bit Varying with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.
exception:
  StandardException - Thrown on error



getNullLongvarchar
StringDataValue getNullLongvarchar(StringDataValue dataValue)(Code)
Get a SQL long varchar with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullNClob
StringDataValue getNullNClob(StringDataValue dataValue)(Code)
Get a SQL NCLOB with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullNationalChar
StringDataValue getNullNationalChar(StringDataValue dataValue)(Code)
Get a SQL national char with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullNationalLongvarchar
StringDataValue getNullNationalLongvarchar(StringDataValue dataValue)(Code)
Get a SQL national long varchar with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullNationalVarchar
StringDataValue getNullNationalVarchar(StringDataValue dataValue)(Code)
Get a SQL national varchar with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullObject
UserDataValue getNullObject(UserDataValue dataValue)(Code)
Get a User-defined data value with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullRef
RefDataValue getNullRef(RefDataValue dataValue)(Code)
Get a RefDataValue with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullShort
NumberDataValue getNullShort(NumberDataValue dataValue)(Code)
Get a SQL smallint with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullTime
DateTimeDataValue getNullTime(DateTimeDataValue dataValue)(Code)
Get a SQL time with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullTimestamp
DateTimeDataValue getNullTimestamp(DateTimeDataValue dataValue)(Code)
Get a SQL timestamp with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullVarbit
BitDataValue getNullVarbit(BitDataValue dataValue) throws StandardException(Code)
Get a SQL Bit Varying with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.
exception:
  StandardException - Thrown on error



getNullVarchar
StringDataValue getNullVarchar(StringDataValue dataValue)(Code)
Get a SQL varchar with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getNullXML
XMLDataValue getNullXML(XMLDataValue dataValue)(Code)
Get an XML with a SQL null value. If the supplied value is null then get a new value, otherwise set it to null and return that value.



getTimeValue
public DateTimeDataValue getTimeValue(String timeStr, boolean isJdbcEscape) throws StandardException(Code)

Parameters:
  timeStr - A date in one of the DB2 standard time formats or the local format.
Parameters:
  isJdbcEscape - If true then the timestamp must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format. A DateTimeDataValue
exception:
  StandardException - if the syntax is invalid or the time is out of range.



getTimestamp
DateTimeDataValue getTimestamp(DataValueDescriptor operand) throws StandardException(Code)
Implement the timestamp SQL function: construct a SQL timestamp from a string, or timestamp.
Parameters:
  operand - Must be a timestamp or a string convertible to a timestamp.



getTimestamp
DateTimeDataValue getTimestamp(DataValueDescriptor date, DataValueDescriptor time) throws StandardException(Code)
Construct a SQL timestamp from a date and time.
Parameters:
  date - Must be convertible to a date.
Parameters:
  time - Must be convertible to a time.



getTimestampValue
public DateTimeDataValue getTimestampValue(String timestampStr, boolean isJdbcEscape) throws StandardException(Code)

Parameters:
  timestampStr - A time in string format.
Parameters:
  isJdbcEscape - If true then the time must be in the JDBC time escape format, otherwise it mustbe in the DB2 time format. An internal timestamp
exception:
  StandardException - if the syntax is invalid or the timestamp is out of range.



getVarbitDataValue
BitDataValue getVarbitDataValue(byte[] value) throws StandardException(Code)
Get a SQL bit with the given value. The second form re-uses the previous value, if non-null, as the data holder to return.
exception:
  StandardException - Thrown on error



getVarbitDataValue
BitDataValue getVarbitDataValue(byte[] value, BitDataValue previous) throws StandardException(Code)



getVarcharDataValue
StringDataValue getVarcharDataValue(String value)(Code)
Get a SQL varchar with the given value. A null argument means get a SQL null value. The second form uses the previous value (if non-null) to hold the return value.



getVarcharDataValue
StringDataValue getVarcharDataValue(String value, StringDataValue previous) throws StandardException(Code)



getXMLDataValue
XMLDataValue getXMLDataValue()(Code)
Get a null XML value. The second form re-uses the previous value, if non-null, as the data holder to return.



getXMLDataValue
XMLDataValue getXMLDataValue(XMLDataValue previous) throws StandardException(Code)



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