Java Doc for NumberDataValue.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.NumberDataValue

All known Subclasses:   org.apache.derby.iapi.types.NumberDataType,
NumberDataValue
public interface NumberDataValue extends DataValueDescriptor(Code)


Field Summary
final public static  intMAX_DECIMAL_PRECISION_SCALE
    
final public static  intMIN_DECIMAL_DIVIDE_SCALE
    


Method Summary
public  NumberDataValueabsolute(NumberDataValue result)
     The SQL ABSOLUTE operator.
public  NumberDataValuedivide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result)
     The SQL / operator.
public  NumberDataValuedivide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result, int scale)
     The SQL / operator.
Parameters:
  dividend - The numerator
Parameters:
  divisor - The denominator
Parameters:
  result - The result of the previous call to this method, nullif not called yet.
Parameters:
  scale - The scale of the result, for decimal type.
public  intgetDecimalValuePrecision()
     Return the SQL precision of this specific DECIMAL value.
public  intgetDecimalValueScale()
     Return the SQL scale of this specific DECIMAL value.
public  NumberDataValueminus(NumberDataValue left, NumberDataValue right, NumberDataValue result)
     The SQL - operator.
public  NumberDataValueminus(NumberDataValue result)
     The SQL unary - operator.
public  NumberDataValuemod(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result)
     The SQL mod operator.
public  NumberDataValueplus(NumberDataValue addend1, NumberDataValue addend2, NumberDataValue result)
     The SQL + operator.
public  voidsetValue(Number theValue)
     Set the value of this NumberDataValue to the given value. This is only intended to be called when mapping values from the Java space into the SQL space, e.g.
public  NumberDataValuesqrt(NumberDataValue result)
     The SQL SQRT operator.
public  NumberDataValuetimes(NumberDataValue left, NumberDataValue right, NumberDataValue result)
     The SQL * operator.

Field Detail
MAX_DECIMAL_PRECISION_SCALE
final public static int MAX_DECIMAL_PRECISION_SCALE(Code)



MIN_DECIMAL_DIVIDE_SCALE
final public static int MIN_DECIMAL_DIVIDE_SCALE(Code)
The minimum scale when dividing Decimals





Method Detail
absolute
public NumberDataValue absolute(NumberDataValue result) throws StandardException(Code)
The SQL ABSOLUTE operator. Absolute value of this NumberDataValue.
Parameters:
  result - The result of the previous call to this method, nullif not called yet.
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



divide
public NumberDataValue divide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result) throws StandardException(Code)
The SQL / operator.
Parameters:
  dividend - The numerator
Parameters:
  divisor - The denominator
Parameters:
  result - The result of the previous call to this method, nullif not called yet. dividend / divisor
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



divide
public NumberDataValue divide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result, int scale) throws StandardException(Code)
The SQL / operator.
Parameters:
  dividend - The numerator
Parameters:
  divisor - The denominator
Parameters:
  result - The result of the previous call to this method, nullif not called yet.
Parameters:
  scale - The scale of the result, for decimal type. If passin value < 0, can calculate it dynamically. dividend / divisor
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



getDecimalValuePrecision
public int getDecimalValuePrecision()(Code)
Return the SQL precision of this specific DECIMAL value. This does not match the return from BigDecimal.precision() added in J2SE 5.0, which represents the precision of the unscaled value. If the value does not represent a SQL DECIMAL then the return is undefined.



getDecimalValueScale
public int getDecimalValueScale()(Code)
Return the SQL scale of this specific DECIMAL value. This does not match the return from BigDecimal.scale() since in J2SE 5.0 onwards that can return negative scales. If the value does not represent a SQL DECIMAL then the return is undefined.



minus
public NumberDataValue minus(NumberDataValue left, NumberDataValue right, NumberDataValue result) throws StandardException(Code)
The SQL - operator.
Parameters:
  left - The left operand
Parameters:
  right - The right operand
Parameters:
  result - The result of the previous call to this method, nullif not called yet. left - right
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



minus
public NumberDataValue minus(NumberDataValue result) throws StandardException(Code)
The SQL unary - operator. Negates this NumberDataValue.
Parameters:
  result - The result of the previous call to this method, nullif not called yet. - operand
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



mod
public NumberDataValue mod(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result) throws StandardException(Code)
The SQL mod operator.
Parameters:
  dividend - The numerator
Parameters:
  divisor - The denominator
Parameters:
  result - The result of the previous call to this method, nullif not called yet. dividend / divisor
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



plus
public NumberDataValue plus(NumberDataValue addend1, NumberDataValue addend2, NumberDataValue result) throws StandardException(Code)
The SQL + operator.
Parameters:
  addend1 - One of the addends
Parameters:
  addend2 - The other addend
Parameters:
  result - The result of the previous call to this method, nullif not called yet. The sum of the two addends
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



setValue
public void setValue(Number theValue) throws StandardException(Code)
Set the value of this NumberDataValue to the given value. This is only intended to be called when mapping values from the Java space into the SQL space, e.g. parameters and return types from procedures and functions. Each specific type is only expected to handle the explicit type according the JDBC.
  • SMALLINT from java.lang.Integer
  • INTEGER from java.lang.Integer
  • LONG from java.lang.Long
  • FLOAT from java.lang.Float
  • DOUBLE from java.lang.Double
  • DECIMAL from java.math.BigDecimal

Parameters:
  theValue - An Number containing the value to set thisNumberDataValue to. Null means set the valueto SQL null.



sqrt
public NumberDataValue sqrt(NumberDataValue result) throws StandardException(Code)
The SQL SQRT operator. Sqrt value of this NumberDataValue.
Parameters:
  result - The result of the previous call to this method, nullif not call yet.
exception:
  StandardException - Thrown on error (a negative number), if result is non-null then its value will be unchanged.



times
public NumberDataValue times(NumberDataValue left, NumberDataValue right, NumberDataValue result) throws StandardException(Code)
The SQL * operator.
Parameters:
  left - The left operand
Parameters:
  right - The right operand
Parameters:
  result - The result of the previous call to this method, nullif not called yet. left * right
exception:
  StandardException - Thrown on error, if result is non-null then its value will be unchanged.



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