Java Doc for ValueOctets.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
      com.quadcap.sql.types.ValueOctets

ValueOctets
public class ValueOctets extends Value implements Externalizable,ExternalizeProxy(Code)
A byte array value.
author:
   Stan Bailes


Field Summary
 intlength
    
 byte[]val
    

Constructor Summary
public  ValueOctets()
    
public  ValueOctets(String s)
     Constructor from string.
public  ValueOctets(byte[] val)
    
public  ValueOctets(byte[] val, int length)
    

Method Summary
public  ObjectasJavaObject()
    
public  Valuebinop(int op, Value l)
    
public  Valuebinop(int op, ValueNull r)
    
public  Valuebinop(int op, ValueOctets r)
    
public  Valueconvert(TypeBinary type)
    
public  Valueconvert(TypeVarBinary type)
    
public  Valueconvert(TypeBlob type)
    
public  Valueconvert(TypeBoolean type)
    
public  Valueconvert(TypeVarChar type)
    
public  Valueconvert(TypeChar type)
    
public  voidfromJavaObject(Object obj)
    
final public  InputStreamgetBinaryStream()
    
final public  byte[]getBytes()
    
final public  intgetLength()
    
public  TypegetType()
    
 voidinit(byte[] v)
    
public  voidreadExternal(ObjectInput in)
    
public  ObjectreadObject(ObjectInput in)
    
public  voidserializeKey(KeyStream out)
    
public  StringtoString()
     String representation: returned as ASCII hex.
public  Valueunop(int op)
    
public  voidwriteExternal(ObjectOutput out)
    
public  voidwriteObject(ObjectOutput out, Object object)
    

Field Detail
length
int length(Code)
length in bits



val
byte[] val(Code)




Constructor Detail
ValueOctets
public ValueOctets()(Code)
Default constructor



ValueOctets
public ValueOctets(String s)(Code)
Constructor from string. A little SQL parsing in here...



ValueOctets
public ValueOctets(byte[] val)(Code)
Constructor from byte array



ValueOctets
public ValueOctets(byte[] val, int length)(Code)
ValueOctets constructor from byte array and length




Method Detail
asJavaObject
public Object asJavaObject()(Code)
JDBC Java mapping to: 'byte[]'



binop
public Value binop(int op, Value l) throws ValueException(Code)
First level binary op dispatch



binop
public Value binop(int op, ValueNull r) throws ValueException(Code)
Binary op: OCTETS vs NULL



binop
public Value binop(int op, ValueOctets r) throws ValueException(Code)
Binary op: OCTETS vs OCTETS



convert
public Value convert(TypeBinary type) throws ValueException(Code)
Convert to BINARY type



convert
public Value convert(TypeVarBinary type) throws ValueException(Code)
Convert to VAR BINARY type



convert
public Value convert(TypeBlob type) throws ValueException(Code)
Convert to BLOB



convert
public Value convert(TypeBoolean type) throws ValueException(Code)
Convert to BOOLEAN



convert
public Value convert(TypeVarChar type) throws ValueException(Code)
Convert to VARCHAR



convert
public Value convert(TypeChar type) throws ValueException(Code)
Convert to CHAR



fromJavaObject
public void fromJavaObject(Object obj) throws ValueException(Code)
JDBC Java mapping from 'byte[]'



getBinaryStream
final public InputStream getBinaryStream()(Code)
Return a binary input stream to read the OCTETS value



getBytes
final public byte[] getBytes()(Code)
Return the underlying byte array



getLength
final public int getLength()(Code)
Return the length of the OCTETS value



getType
public Type getType()(Code)
Return my type (BINARY(len))



init
void init(byte[] v)(Code)



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)
Read myself from a stream



readObject
public Object readObject(ObjectInput in) throws IOException, ClassNotFoundException(Code)
Externable: read object



serializeKey
public void serializeKey(KeyStream out) throws IOException(Code)
Key serialization for this type



toString
public String toString()(Code)
String representation: returned as ASCII hex.



unop
public Value unop(int op) throws ValueException(Code)
Unary op: we only implement ISNULL



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)
Write myself to a stream



writeObject
public void writeObject(ObjectOutput out, Object object) throws IOException(Code)
Externable: write object



Fields inherited from com.quadcap.sql.types.Value
public static boolean isCaseSensitive(Code)(Java Doc)
final static Hashtable javaTypes(Code)(Java Doc)
final static Hashtable jdbcTypes(Code)(Java Doc)

Methods inherited from com.quadcap.sql.types.Value
abstract public Object asJavaObject() throws SQLException(Code)(Java Doc)
final public static ValueException badBinop(int op, Value l, Value r)(Code)(Java Doc)
final public ValueException badBinop(int op, Value v)(Code)(Java Doc)
final ValueException badType(Type type)(Code)(Java Doc)
abstract public Value binop(int op, Value l) throws ValueException(Code)(Java Doc)
final public static Value binop(int op, Value l, Value r) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueBlob v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueBoolean v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueByte v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueClob v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueDate v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueDouble v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueFloat v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueInteger v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueInterval v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueLong v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueNull v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueOctets v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValuePattern v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueScaledInteger v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueShort v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueString l) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueTime v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueTimestamp v) throws ValueException(Code)(Java Doc)
public Value binop(int op, ValueUnknown v) throws ValueException(Code)(Java Doc)
final public static boolean boolOp(int op, Value l, Value r) throws ValueException(Code)(Java Doc)
final public static byte[] bytes(Value val)(Code)(Java Doc)
public Value convert(TypeBigInt type) throws ValueException(Code)(Java Doc)
public Value convert(TypeBinary type) throws ValueException(Code)(Java Doc)
public Value convert(TypeBlob type) throws ValueException(Code)(Java Doc)
public Value convert(TypeBoolean type) throws ValueException(Code)(Java Doc)
public Value convert(TypeChar type) throws ValueException(Code)(Java Doc)
public Value convert(TypeClob type) throws ValueException(Code)(Java Doc)
public Value convert(TypeDate type) throws ValueException(Code)(Java Doc)
public Value convert(TypeDecimal type) throws ValueException(Code)(Java Doc)
public Value convert(TypeInt type) throws ValueException(Code)(Java Doc)
public Value convert(TypeInterval type) throws ValueException(Code)(Java Doc)
public Value convert(TypeReal type) throws ValueException(Code)(Java Doc)
public Value convert(TypeSmallInt type) throws ValueException(Code)(Java Doc)
public Value convert(TypeVarChar type) throws ValueException(Code)(Java Doc)
public Value convert(TypeVarBinary type) throws ValueException(Code)(Java Doc)
public Value convert(TypeTime type) throws ValueException(Code)(Java Doc)
public Value convert(TypeTimestamp type) throws ValueException(Code)(Java Doc)
public Value convert(TypeTinyInt type) throws ValueException(Code)(Java Doc)
final public static Value fromBytes(byte[] b)(Code)(Java Doc)
abstract public void fromJavaObject(Object obj) throws ValueException(Code)(Java Doc)
final public static Value fromObject(Object obj) throws ValueException(Code)(Java Doc)
abstract public Type getType() throws SQLException(Code)(Java Doc)
final public static boolean isNull(Value val)(Code)(Java Doc)
final public static boolean isTrue(Value ret) throws ValueException(Code)(Java Doc)
final static void jc(String javaClass, String valueClass)(Code)(Java Doc)
final static void jdbcType(int typeNum, Type type)(Code)(Java Doc)
abstract public void serializeKey(KeyStream out) throws IOException(Code)(Java Doc)
public void setDatafile(Datafile db)(Code)(Java Doc)
public static String tn(Value v)(Code)(Java Doc)
final public static Type typeForJdbcType(int type)(Code)(Java Doc)
public Value unop(int op) throws ValueException(Code)(Java Doc)

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.