Java Doc for Clob.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » client » am » 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.client.am 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.client.am.Lob
      org.apache.derby.client.am.Clob

Clob
public class Clob extends Lob implements java.sql.Clob(Code)


Field Summary
protected  java.io.InputStreamasciiStream_
    
protected  java.io.ReadercharacterStream_
    
protected  Stringencoding_
    
protected  longlengthInBytes_
    
protected  Stringstring_
    
protected  java.io.InputStreamunicodeStream_
    
protected  byte[]utf8String_
    

Constructor Summary
public  Clob(Agent agent, String string)
    
public  Clob(Agent agent, byte[] unconvertedBytes, String charsetName, int dataOffset)
    
public  Clob(Agent agent, java.io.InputStream inputStream, String encoding, int length)
    
public  Clob(Agent agent, java.io.InputStream inputStream, String encoding)
     Create a Clob of unknown length with the specified encoding. This constructor was added to support the JDBC 4 length less overloads. Note that a Clob created with this constructor is made for input to the database only.
public  Clob(Agent agent, java.io.Reader reader, int length)
    
public  Clob(Agent agent, Reader reader)
     Create a Clob of unknown length. This constructor was added to support the JDBC 4 length less overloads. Note that a Clob created with this constructor is made for input to the database only.

Method Summary
public  voidconvertFromAsciiToCharacterStream()
    
protected  ClobcreateClobWrapper(java.sql.Clob clob)
    
protected  voidfinalize()
    
public  voidfree()
     This method frees the Clob object and releases the resources the resources that it holds.
public  java.io.InputStreamgetAsciiStream()
    
public  longgetByteLength()
    
public  java.io.ReadergetCharacterStream()
    
public  ReadergetCharacterStream(long pos, long length)
    
public  StringgetString()
    
public  StringgetSubString(long pos, int length)
     Returns a copy of the specified substring in the CLOB value designated by this Clob object. The substring begins at position pos and has up to length consecutive characters.
public  intgetUTF8Length()
    
public  java.io.InputStreamgetUnicodeStream()
    
public  byte[]getUtf8String()
    
public  booleanisAsciiStream()
    
public  booleanisCharacterStream()
    
public  booleanisString()
    
public  booleanisUnicodeStream()
    
public  longlength()
    
public  longposition(String searchstr, long start)
    
public  longposition(java.sql.Clob searchstr, long start)
    
public  java.io.OutputStreamsetAsciiStream(long pos)
    
public  java.io.WritersetCharacterStream(long pos)
    
public  intsetString(long pos, String str)
    
public  intsetString(long pos, String str, int offset, int len)
    
public  intsetStringX(long pos, String str, int offset, int len)
    
public  voidtruncate(long len)
    

Field Detail
asciiStream_
protected java.io.InputStream asciiStream_(Code)



characterStream_
protected java.io.Reader characterStream_(Code)



encoding_
protected String encoding_(Code)



lengthInBytes_
protected long lengthInBytes_(Code)



string_
protected String string_(Code)



unicodeStream_
protected java.io.InputStream unicodeStream_(Code)



utf8String_
protected byte[] utf8String_(Code)




Constructor Detail
Clob
public Clob(Agent agent, String string)(Code)



Clob
public Clob(Agent agent, byte[] unconvertedBytes, String charsetName, int dataOffset) throws SqlException(Code)



Clob
public Clob(Agent agent, java.io.InputStream inputStream, String encoding, int length) throws SqlException(Code)



Clob
public Clob(Agent agent, java.io.InputStream inputStream, String encoding) throws SqlException(Code)
Create a Clob of unknown length with the specified encoding. This constructor was added to support the JDBC 4 length less overloads. Note that a Clob created with this constructor is made for input to the database only. Do not pass it out to the user!
Parameters:
  agent -
Parameters:
  inputStream - the data to insert
Parameters:
  encoding - encoding to use for characters. Only "US-ASCII" isallowed.



Clob
public Clob(Agent agent, java.io.Reader reader, int length)(Code)



Clob
public Clob(Agent agent, Reader reader)(Code)
Create a Clob of unknown length. This constructor was added to support the JDBC 4 length less overloads. Note that a Clob created with this constructor is made for input to the database only. Do not pass it out to the user!
Parameters:
  agent -
Parameters:
  reader - the data to insert




Method Detail
convertFromAsciiToCharacterStream
public void convertFromAsciiToCharacterStream() throws SqlException(Code)



createClobWrapper
protected Clob createClobWrapper(java.sql.Clob clob) throws SqlException(Code)



finalize
protected void finalize() throws java.lang.Throwable(Code)



free
public void free() throws SQLException(Code)
This method frees the Clob object and releases the resources the resources that it holds. The object is invalid once the free method is called. If free is called multiple times, the subsequent calls to free are treated as a no-op.
throws:
  SQLException - if an error occurs releasingthe Clob's resources



getAsciiStream
public java.io.InputStream getAsciiStream() throws SQLException(Code)



getByteLength
public long getByteLength() throws SQLException(Code)



getCharacterStream
public java.io.Reader getCharacterStream() throws SQLException(Code)



getCharacterStream
public Reader getCharacterStream(long pos, long length) throws SQLException(Code)



getString
public String getString()(Code)



getSubString
public String getSubString(long pos, int length) throws SQLException(Code)
Returns a copy of the specified substring in the CLOB value designated by this Clob object. The substring begins at position pos and has up to length consecutive characters. The starting position must be between 1 and the length of the CLOB plus 1. This allows for zero-length CLOB values, from which only zero-length substrings can be returned. If a larger length is requested than there are characters available, characters to the end of the CLOB are returned.
Parameters:
  pos - the first character of the substring to be extracted.The first character is at position 1.
Parameters:
  length - the number of consecutive characters to be copied a String that is the specified substring inthe CLOB value designated by this Clob object
exception:
  SQLException - if there is an error accessing theCLOBNOTE: If the starting position is the length of the CLOB plus 1,zero characters are returned regardless of the length requested.



getUTF8Length
public int getUTF8Length() throws SqlException(Code)



getUnicodeStream
public java.io.InputStream getUnicodeStream()(Code)



getUtf8String
public byte[] getUtf8String()(Code)



isAsciiStream
public boolean isAsciiStream()(Code)



isCharacterStream
public boolean isCharacterStream()(Code)



isString
public boolean isString()(Code)



isUnicodeStream
public boolean isUnicodeStream()(Code)



length
public long length() throws SQLException(Code)



position
public long position(String searchstr, long start) throws SQLException(Code)



position
public long position(java.sql.Clob searchstr, long start) throws SQLException(Code)



setAsciiStream
public java.io.OutputStream setAsciiStream(long pos) throws SQLException(Code)



setCharacterStream
public java.io.Writer setCharacterStream(long pos) throws SQLException(Code)



setString
public int setString(long pos, String str) throws SQLException(Code)



setString
public int setString(long pos, String str, int offset, int len) throws SQLException(Code)



setStringX
public int setStringX(long pos, String str, int offset, int len) throws SqlException(Code)



truncate
public void truncate(long len) throws SQLException(Code)



Fields inherited from org.apache.derby.client.am.Lob
final public static int ASCII_STREAM(Code)(Java Doc)
final public static int BINARY_STREAM(Code)(Java Doc)
final public static int BINARY_STRING(Code)(Java Doc)
final public static int CHARACTER_STREAM(Code)(Java Doc)
final public static int STRING(Code)(Java Doc)
final public static int UNICODE_STREAM(Code)(Java Doc)
protected Agent agent_(Code)(Java Doc)
protected int dataType_(Code)(Java Doc)
protected boolean lengthObtained_(Code)(Java Doc)
protected long sqlLength_(Code)(Java Doc)

Methods inherited from org.apache.derby.client.am.Lob
void checkForClosedConnection() throws SqlException(Code)(Java Doc)
public void completeLocalCommit(java.util.Iterator listenerIterator)(Code)(Java Doc)
void completeLocalCommit()(Code)(Java Doc)
public void completeLocalRollback(java.util.Iterator listenerIterator)(Code)(Java Doc)
void completeLocalRollback()(Code)(Java Doc)
protected void finalize() throws java.lang.Throwable(Code)(Java Doc)
public Agent getAgent()(Code)(Java Doc)
public void listenToUnitOfWork()(Code)(Java Doc)
protected InputStream materializeStream(InputStream is, String typeDesc) throws SqlException(Code)(Java Doc)
public long sqlLength() throws SqlException(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.