Java Doc for Value.java in  » Database-DBMS » Quadcap-Embeddable-Database » com » quadcap » sql » 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 » Quadcap Embeddable Database » com.quadcap.sql.types 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.quadcap.sql.types.Value

All known Subclasses:   com.quadcap.sql.types.ValueLong,  com.quadcap.sql.types.ValueType,  com.quadcap.sql.types.ValueFloat,  com.quadcap.sql.types.ValueByte,  com.quadcap.sql.types.ValueInteger,  com.quadcap.sql.types.ValueString,  com.quadcap.sql.types.ValueDateTime,  com.quadcap.sql.types.ValueDefault,  com.quadcap.sql.types.ValueBlob,  com.quadcap.sql.types.ValueBoolean,  com.quadcap.sql.types.ValueNull,  com.quadcap.sql.types.ValuePattern,  com.quadcap.sql.types.ValueOctets,  com.quadcap.sql.types.ValueUnknown,  com.quadcap.sql.types.ValueShort,  com.quadcap.sql.types.ValueScaledInteger,  com.quadcap.sql.types.ValueDouble,  com.quadcap.sql.types.ValueInterval,
Value
abstract public class Value (Code)
A runtime SQL value.

Types:

  • Numeric
  • Decimal
  • Integer
  • SmallInt
  • Float
  • Double
  • Timestamp
  • Interval
  • Char
  • Binary
  • Boolean
  • BLOB
  • CLOB

author:
   Stan Bailes


Field Summary
public static  booleanisCaseSensitive
    
final static  HashtablejavaTypes
    
final static  HashtablejdbcTypes
    

Constructor Summary
public  Value()
    

Method Summary
abstract public  ObjectasJavaObject()
    
final public static  ValueExceptionbadBinop(int op, Value l, Value r)
    
final public  ValueExceptionbadBinop(int op, Value v)
    
final  ValueExceptionbadType(Type type)
    
abstract public  Valuebinop(int op, Value l)
     Two-level virtual operator dispatch.
final public static  Valuebinop(int op, Value l, Value r)
    
public  Valuebinop(int op, ValueBlob v)
    
public  Valuebinop(int op, ValueBoolean v)
    
public  Valuebinop(int op, ValueByte v)
    
public  Valuebinop(int op, ValueClob v)
    
public  Valuebinop(int op, ValueDate v)
    
public  Valuebinop(int op, ValueDouble v)
    
public  Valuebinop(int op, ValueFloat v)
    
public  Valuebinop(int op, ValueInteger v)
    
public  Valuebinop(int op, ValueInterval v)
    
public  Valuebinop(int op, ValueLong v)
    
public  Valuebinop(int op, ValueNull v)
    
public  Valuebinop(int op, ValueOctets v)
    
public  Valuebinop(int op, ValuePattern v)
    
public  Valuebinop(int op, ValueScaledInteger v)
    
public  Valuebinop(int op, ValueShort v)
    
public  Valuebinop(int op, ValueString l)
    
public  Valuebinop(int op, ValueTime v)
    
public  Valuebinop(int op, ValueTimestamp v)
    
public  Valuebinop(int op, ValueUnknown v)
    
final public static  booleanboolOp(int op, Value l, Value r)
    
final public static  byte[]bytes(Value val)
    
public  Valueconvert(TypeBigInt type)
    
public  Valueconvert(TypeBinary type)
    
public  Valueconvert(TypeBlob type)
    
public  Valueconvert(TypeBoolean type)
    
public  Valueconvert(TypeChar type)
    
public  Valueconvert(TypeClob type)
    
public  Valueconvert(TypeDate type)
    
public  Valueconvert(TypeDecimal type)
    
public  Valueconvert(TypeInt type)
    
public  Valueconvert(TypeInterval type)
    
public  Valueconvert(TypeReal type)
    
public  Valueconvert(TypeSmallInt type)
    
public  Valueconvert(TypeVarChar type)
    
public  Valueconvert(TypeVarBinary type)
    
public  Valueconvert(TypeTime type)
    
public  Valueconvert(TypeTimestamp type)
    
public  Valueconvert(TypeTinyInt type)
    
final public static  ValuefromBytes(byte[] b)
    
abstract public  voidfromJavaObject(Object obj)
    
final public static  ValuefromObject(Object obj)
    
abstract public  TypegetType()
    
final public static  booleanisNull(Value val)
    
final public static  booleanisTrue(Value ret)
    
final static  voidjc(String javaClass, String valueClass)
    
final static  voidjdbcType(int typeNum, Type type)
    
abstract public  voidserializeKey(KeyStream out)
    
public  voidsetDatafile(Datafile db)
    
public static  Stringtn(Value v)
    
final public static  TypetypeForJdbcType(int type)
    
public  Valueunop(int op)
    

Field Detail
isCaseSensitive
public static boolean isCaseSensitive(Code)



javaTypes
final static Hashtable javaTypes(Code)



jdbcTypes
final static Hashtable jdbcTypes(Code)




Constructor Detail
Value
public Value()(Code)




Method Detail
asJavaObject
abstract public Object asJavaObject() throws SQLException(Code)



badBinop
final public static ValueException badBinop(int op, Value l, Value r)(Code)



badBinop
final public ValueException badBinop(int op, Value v)(Code)



badType
final ValueException badType(Type type)(Code)



binop
abstract public Value binop(int op, Value l) throws ValueException(Code)
Two-level virtual operator dispatch. Each subtype implements the same basic template for this abstract function:
 Value binop(int op, Value l) {
 return l.binop(op, this);
 }
 
Then, type overloading allows for each type to implement all ops for which it can be the left hand side for all allowed types on the right hand side: Value binop(int op, ValueInteger l); Value binop(int op, ValueLong l); ...



binop
final public static Value binop(int op, Value l, Value r) throws ValueException(Code)



binop
public Value binop(int op, ValueBlob v) throws ValueException(Code)



binop
public Value binop(int op, ValueBoolean v) throws ValueException(Code)



binop
public Value binop(int op, ValueByte v) throws ValueException(Code)



binop
public Value binop(int op, ValueClob v) throws ValueException(Code)



binop
public Value binop(int op, ValueDate v) throws ValueException(Code)



binop
public Value binop(int op, ValueDouble v) throws ValueException(Code)



binop
public Value binop(int op, ValueFloat v) throws ValueException(Code)



binop
public Value binop(int op, ValueInteger v) throws ValueException(Code)



binop
public Value binop(int op, ValueInterval v) throws ValueException(Code)



binop
public Value binop(int op, ValueLong v) throws ValueException(Code)



binop
public Value binop(int op, ValueNull v) throws ValueException(Code)



binop
public Value binop(int op, ValueOctets v) throws ValueException(Code)



binop
public Value binop(int op, ValuePattern v) throws ValueException(Code)



binop
public Value binop(int op, ValueScaledInteger v) throws ValueException(Code)



binop
public Value binop(int op, ValueShort v) throws ValueException(Code)



binop
public Value binop(int op, ValueString l) throws ValueException(Code)



binop
public Value binop(int op, ValueTime v) throws ValueException(Code)



binop
public Value binop(int op, ValueTimestamp v) throws ValueException(Code)



binop
public Value binop(int op, ValueUnknown v) throws ValueException(Code)



boolOp
final public static boolean boolOp(int op, Value l, Value r) throws ValueException(Code)



bytes
final public static byte[] bytes(Value val)(Code)



convert
public Value convert(TypeBigInt type) throws ValueException(Code)



convert
public Value convert(TypeBinary type) throws ValueException(Code)



convert
public Value convert(TypeBlob type) throws ValueException(Code)



convert
public Value convert(TypeBoolean type) throws ValueException(Code)



convert
public Value convert(TypeChar type) throws ValueException(Code)



convert
public Value convert(TypeClob type) throws ValueException(Code)



convert
public Value convert(TypeDate type) throws ValueException(Code)



convert
public Value convert(TypeDecimal type) throws ValueException(Code)



convert
public Value convert(TypeInt type) throws ValueException(Code)



convert
public Value convert(TypeInterval type) throws ValueException(Code)



convert
public Value convert(TypeReal type) throws ValueException(Code)



convert
public Value convert(TypeSmallInt type) throws ValueException(Code)



convert
public Value convert(TypeVarChar type) throws ValueException(Code)



convert
public Value convert(TypeVarBinary type) throws ValueException(Code)



convert
public Value convert(TypeTime type) throws ValueException(Code)



convert
public Value convert(TypeTimestamp type) throws ValueException(Code)



convert
public Value convert(TypeTinyInt type) throws ValueException(Code)



fromBytes
final public static Value fromBytes(byte[] b)(Code)



fromJavaObject
abstract public void fromJavaObject(Object obj) throws ValueException(Code)



fromObject
final public static Value fromObject(Object obj) throws ValueException(Code)



getType
abstract public Type getType() throws SQLException(Code)



isNull
final public static boolean isNull(Value val)(Code)



isTrue
final public static boolean isTrue(Value ret) throws ValueException(Code)



jc
final static void jc(String javaClass, String valueClass)(Code)



jdbcType
final static void jdbcType(int typeNum, Type type)(Code)



serializeKey
abstract public void serializeKey(KeyStream out) throws IOException(Code)



setDatafile
public void setDatafile(Datafile db)(Code)



tn
public static String tn(Value v)(Code)



typeForJdbcType
final public static Type typeForJdbcType(int type)(Code)



unop
public Value unop(int op) throws ValueException(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.