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

All known Subclasses:   com.quadcap.sql.types.ValueClob,
ValueBlob
public class ValueBlob extends Value implements Blob,Externalizable(Code)
A BLOB value.
author:
   Stan Bailes


Field Summary
 byte[]bytes
    
 Datafilefile
    
 intmySerial
    
 longpermBlock
    
 RandomAccessra
    
static  intserial
    
 longtempBlock
    
final static  booleantrace
    

Constructor Summary
public  ValueBlob()
    
public  ValueBlob(byte[] bytes)
    
public  ValueBlob(Datafile file, long transId, InputStream is, int length)
    

Method Summary
public  ObjectasJavaObject()
    
public  Valuebinop(int op, Value v)
    
public  voidclose()
    
public  Valueconvert(TypeBlob type)
    
public  Valueconvert(TypeVarBinary type)
    
public  voidfromJavaObject(Object obj)
    
public  InputStreamgetBinaryStream()
    
public  byte[]getBytes(long lpos, int length)
     Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes.
public  byte[]getBytesVal()
    
public  longgetPermBlock()
    
final  InputStreamgetPositionedStream(int pos)
    
 RandomAccessgetRandomAccess()
    
public  longgetTempBlock()
    
public  TypegetType()
    
public  voidinit(Datafile file, long transId, InputStream is, int length)
    
public  longlength()
     Returns the number of bytes in the BLOB value designated by this Blob object.
public  voidpassivate(Datafile file, long transId)
    
public  longposition(Blob blob, long start)
    
public  longposition(byte[] pattern, long start)
    
public  voidreadExternal(ObjectInput in)
    
public  voidserializeKey(KeyStream out)
    
public  java.io.OutputStreamsetBinaryStream(long lpos)
     Retrieves a stream that can be used to write to the BLOB value that this Blob object represents.
public  intsetBytes(long lpos, byte[] bytes)
     Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos, and returns the number of bytes written.
public  intsetBytes(long lpos, byte[] bytes, int offset, int len)
     Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written.
public  voidsetDatafile(Datafile file)
    
public  voidsetPermBlock(long block)
    
public  Stringshow()
    
public  StringtoString()
    
public  voidtruncate(long len)
     Truncates the BLOB value that this Blob object represents to be len bytes in length.
public  Valueunop(int op)
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
bytes
byte[] bytes(Code)



file
Datafile file(Code)



mySerial
int mySerial(Code)



permBlock
long permBlock(Code)



ra
RandomAccess ra(Code)



serial
static int serial(Code)



tempBlock
long tempBlock(Code)



trace
final static boolean trace(Code)




Constructor Detail
ValueBlob
public ValueBlob()(Code)



ValueBlob
public ValueBlob(byte[] bytes)(Code)



ValueBlob
public ValueBlob(Datafile file, long transId, InputStream is, int length) throws IOException(Code)




Method Detail
asJavaObject
public Object asJavaObject()(Code)



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



close
public void close()(Code)



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



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



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



getBinaryStream
public InputStream getBinaryStream() throws SQLException(Code)



getBytes
public byte[] getBytes(long lpos, int length) throws SQLException(Code)
Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes. This byte array contains up to length consecutive bytes starting at position pos.
Parameters:
  pos - the ordinal position of the first byte in the BLOB value to be extracted; the first byte is atposition 1
Parameters:
  length - the number of consecutive bytes to be copied a byte array containing up to length consecutive bytes from the BLOB value designatedby this Blob object, starting with thebyte at position pos
exception:
  SQLException - if there is an error accessing theBLOB value
See Also:   ValueBlob.setBytes
since:
   1.2



getBytesVal
public byte[] getBytesVal()(Code)



getPermBlock
public long getPermBlock()(Code)



getPositionedStream
final InputStream getPositionedStream(int pos) throws SQLException(Code)
Zero based!



getRandomAccess
RandomAccess getRandomAccess() throws SQLException(Code)



getTempBlock
public long getTempBlock()(Code)



getType
public Type getType() throws SQLException(Code)



init
public void init(Datafile file, long transId, InputStream is, int length) throws IOException(Code)



length
public long length() throws SQLException(Code)
Returns the number of bytes in the BLOB value designated by this Blob object. length of the BLOB in bytes
exception:
  SQLException - if there is an error accessing thelength of the BLOB
since:
   1.2



passivate
public void passivate(Datafile file, long transId) throws IOException(Code)



position
public long position(Blob blob, long start) throws SQLException(Code)



position
public long position(byte[] pattern, long start) throws SQLException(Code)



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



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



setBinaryStream
public java.io.OutputStream setBinaryStream(long lpos) throws SQLException(Code)
Retrieves a stream that can be used to write to the BLOB value that this Blob object represents. The stream begins at position pos.
Parameters:
  pos - the position in the BLOB value at whichto start writing a java.io.OutputStream object to which data can be written
exception:
  SQLException - if there is an error accessing theBLOB value
See Also:   ValueBlob.getBinaryStream
since:
   1.4



setBytes
public int setBytes(long lpos, byte[] bytes) throws SQLException(Code)
Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos, and returns the number of bytes written.
Parameters:
  pos - the position in the BLOB object at whichto start writing
Parameters:
  bytes - the array of bytes to be written to the BLOBvalue that this Blob object represents the number of bytes written
exception:
  SQLException - if there is an error accessing theBLOB value
See Also:   ValueBlob.getBytes
since:
   1.4



setBytes
public int setBytes(long lpos, byte[] bytes, int offset, int len) throws SQLException(Code)
Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written. Writing starts at position pos in the BLOB value; len bytes from the given byte array are written.
Parameters:
  pos - the position in the BLOB object at whichto start writing
Parameters:
  bytes - the array of bytes to be written to this BLOBobject
Parameters:
  offset - the offset into the array bytes at whichto start reading the bytes to be set
Parameters:
  len - the number of bytes to be written to the BLOBvalue from the array of bytes bytes the number of bytes written
exception:
  SQLException - if there is an error accessing theBLOB value
See Also:   ValueBlob.getBytes
since:
   1.4



setDatafile
public void setDatafile(Datafile file)(Code)



setPermBlock
public void setPermBlock(long block)(Code)



show
public String show()(Code)



toString
public String toString()(Code)



truncate
public void truncate(long len) throws SQLException(Code)
Truncates the BLOB value that this Blob object represents to be len bytes in length.
Parameters:
  len - the length, in bytes, to which the BLOB valuethat this Blob object represents should be truncated
exception:
  SQLException - if there is an error accessing theBLOB value.
since:
   1.4



unop
public Value unop(int op) throws ValueException(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



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.