Java Doc for Value.java in  » Database-DBMS » h2database » org » h2 » value » 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 » h2database » org.h2.value 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.h2.value.Value

All known Subclasses:   org.h2.value.ValueBoolean,  org.h2.value.ValueTime,  org.h2.value.ValueLob,  org.h2.value.ValueResultSet,  org.h2.value.ValueFloat,  org.h2.value.ValueByte,  org.h2.value.ValueBytesBase,  org.h2.value.ValueShort,  org.h2.value.ValueNull,  org.h2.value.ValueStringBase,  org.h2.value.ValueDecimal,  org.h2.value.ValueInt,  org.h2.value.ValueLong,  org.h2.value.ValueDate,  org.h2.value.ValueDouble,  org.h2.value.ValueUuid,  org.h2.value.ValueTimestamp,  org.h2.value.ValueArray,
Value
abstract public class Value (Code)
This is the base class for all value classes. It provides conversion and comparison methods.


Field Summary
final public static  intARRAYRESULT_SETJAVA_OBJECTUUIDSTRING_FIXED
    
final public static  intDOUBLEFLOATTIMEDATETIMESTAMPBYTES
    
final public static  intNULLBOOLEANBYTESHORTINTLONGDECIMAL
    
final public static  intSTRINGSTRING_IGNORECASEBLOBCLOB
    
final public static  intTYPE_COUNT
    
final public static  intUNKNOWN
     The data type is unknown at this time.


Method Summary
public  Valueadd(Value v)
    
static  Valuecache(Value v)
    
public  booleancheckPrecision(long precision)
    
public  voidclose()
    
final public  booleancompareEqual(Value v)
    
abstract protected  intcompareSecure(Value v, CompareMode mode)
     Compare the value with another value of the same type.
final public  intcompareTo(Value v, CompareMode mode)
    
final public  intcompareTypeSave(Value v, CompareMode mode)
    
public  ValueconvertPrecision(long precision)
    
public  ValueconvertScale(boolean onlyToSmallerScale, int targetScale)
    
public  ValueconvertTo(int type)
    
public  Valuedivide(Value v)
    
abstract public  booleanequals(Object other)
     Check if the two values are equal.
public  BigDecimalgetBigDecimal()
    
public  BooleangetBoolean()
    
public  bytegetByte()
    
public  byte[]getBytes()
    
public  byte[]getBytesNoCopy()
    
public  DategetDate()
    
public  DategetDateNoCopy()
    
abstract public  intgetDisplaySize()
     Get the display size in characters.
public  doublegetDouble()
    
public  floatgetFloat()
    
public static  intgetHigherOrder(int t1, int t2)
    
public  InputStreamgetInputStream()
    
public  intgetInt()
    
public  longgetLong()
    
public  intgetMemory()
     Get the memory used by this object.
abstract public  ObjectgetObject()
     Get the value as an object.
public static  intgetOrder(int type)
    
abstract public  longgetPrecision()
     Get the precision.
public  ReadergetReader()
    
abstract public  StringgetSQL()
     Get the SQL expression for this value.
public  intgetScale()
    
public  shortgetShort()
    
public  intgetSignum()
    
abstract public  StringgetString()
     Get the value as a string.
public  TimegetTime()
    
public  TimegetTimeNoCopy()
    
public  TimestampgetTimestamp()
    
public  TimestampgetTimestampNoCopy()
    
abstract public  intgetType()
     Get the value type.
abstract public  inthashCode()
    
public  booleanisFileBased()
    
public  booleanisLinked()
    
public  Valuelink(DataHandler handler, int tableId)
    
public  Valuemultiply(Value v)
    
public  Valuenegate()
    
abstract public  voidset(PreparedStatement prep, int parameterIndex)
     Set the value as a parameter in a prepared statement.
public  Valuesubtract(Value v)
    
public  StringtoString()
    
public  voidunlink()
    

Field Detail
ARRAYRESULT_SETJAVA_OBJECTUUIDSTRING_FIXED
final public static int ARRAYRESULT_SETJAVA_OBJECTUUIDSTRING_FIXED(Code)



DOUBLEFLOATTIMEDATETIMESTAMPBYTES
final public static int DOUBLEFLOATTIMEDATETIMESTAMPBYTES(Code)



NULLBOOLEANBYTESHORTINTLONGDECIMAL
final public static int NULLBOOLEANBYTESHORTINTLONGDECIMAL(Code)



STRINGSTRING_IGNORECASEBLOBCLOB
final public static int STRINGSTRING_IGNORECASEBLOBCLOB(Code)



TYPE_COUNT
final public static int TYPE_COUNT(Code)



UNKNOWN
final public static int UNKNOWN(Code)
The data type is unknown at this time.





Method Detail
add
public Value add(Value v) throws SQLException(Code)



cache
static Value cache(Value v)(Code)



checkPrecision
public boolean checkPrecision(long precision)(Code)



close
public void close() throws SQLException(Code)



compareEqual
final public boolean compareEqual(Value v) throws SQLException(Code)



compareSecure
abstract protected int compareSecure(Value v, CompareMode mode) throws SQLException(Code)
Compare the value with another value of the same type.
Parameters:
  v - the other value
Parameters:
  mode - the compare mode 0 if both values are equal, -1 if the other value is smaller, and1 otherwise



compareTo
final public int compareTo(Value v, CompareMode mode) throws SQLException(Code)



compareTypeSave
final public int compareTypeSave(Value v, CompareMode mode) throws SQLException(Code)



convertPrecision
public Value convertPrecision(long precision) throws SQLException(Code)



convertScale
public Value convertScale(boolean onlyToSmallerScale, int targetScale) throws SQLException(Code)



convertTo
public Value convertTo(int type) throws SQLException(Code)



divide
public Value divide(Value v) throws SQLException(Code)



equals
abstract public boolean equals(Object other)(Code)
Check if the two values are equal. No data conversion is made; this method returns false if the other object is not of the same class.
Parameters:
  other - the other value true if they are equal



getBigDecimal
public BigDecimal getBigDecimal() throws SQLException(Code)



getBoolean
public Boolean getBoolean() throws SQLException(Code)



getByte
public byte getByte() throws SQLException(Code)



getBytes
public byte[] getBytes() throws SQLException(Code)



getBytesNoCopy
public byte[] getBytesNoCopy() throws SQLException(Code)



getDate
public Date getDate() throws SQLException(Code)



getDateNoCopy
public Date getDateNoCopy() throws SQLException(Code)



getDisplaySize
abstract public int getDisplaySize()(Code)
Get the display size in characters. the display size



getDouble
public double getDouble() throws SQLException(Code)



getFloat
public float getFloat() throws SQLException(Code)



getHigherOrder
public static int getHigherOrder(int t1, int t2) throws SQLException(Code)



getInputStream
public InputStream getInputStream() throws SQLException(Code)



getInt
public int getInt() throws SQLException(Code)



getLong
public long getLong() throws SQLException(Code)



getMemory
public int getMemory()(Code)
Get the memory used by this object. the memory used in bytes



getObject
abstract public Object getObject()(Code)
Get the value as an object. the object



getOrder
public static int getOrder(int type)(Code)



getPrecision
abstract public long getPrecision()(Code)
Get the precision. the precision



getReader
public Reader getReader() throws SQLException(Code)



getSQL
abstract public String getSQL()(Code)
Get the SQL expression for this value. the SQL expression



getScale
public int getScale()(Code)



getShort
public short getShort() throws SQLException(Code)



getSignum
public int getSignum() throws SQLException(Code)



getString
abstract public String getString()(Code)
Get the value as a string. the string



getTime
public Time getTime() throws SQLException(Code)



getTimeNoCopy
public Time getTimeNoCopy() throws SQLException(Code)



getTimestamp
public Timestamp getTimestamp() throws SQLException(Code)



getTimestampNoCopy
public Timestamp getTimestampNoCopy() throws SQLException(Code)



getType
abstract public int getType()(Code)
Get the value type. the type



hashCode
abstract public int hashCode()(Code)



isFileBased
public boolean isFileBased()(Code)



isLinked
public boolean isLinked()(Code)



link
public Value link(DataHandler handler, int tableId) throws SQLException(Code)



multiply
public Value multiply(Value v) throws SQLException(Code)



negate
public Value negate() throws SQLException(Code)



set
abstract public void set(PreparedStatement prep, int parameterIndex) throws SQLException(Code)
Set the value as a parameter in a prepared statement.
Parameters:
  prep - the prepared statement
Parameters:
  parameterIndex - the parameter index



subtract
public Value subtract(Value v) throws SQLException(Code)



toString
public String toString()(Code)



unlink
public void unlink() 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.