Java Doc for Clob.java in  » Apache-Harmony-Java-SE » java-package » java » sql » 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 » Apache Harmony Java SE » java package » java.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.sql.Clob

Clob
public interface Clob (Code)
A Java interface mapping for the SQL CLOB type.

An SQL CLOB type stores a large array of characters as the value in a column of a database.

The java.sql.Clob interface provides methods for setting and retrieving data in the Clob, for querying Clob data length, for searching for data within the Clob.





Method Summary
public  InputStreamgetAsciiStream()
     Gets the value of this Clob object as an ASCII stream.
public  ReadergetCharacterStream()
     Gets the value of this Clob object as a java.io.Reader.
public  StringgetSubString(long pos, int length)
     Gets a copy of a specified substring in this Clob.
public  longlength()
     Retrieves the number of characters in this Clob object.
public  longposition(Clob searchstr, long start)
     Retrieves the character position at which a specified Clob object appears in this Clob object.
public  longposition(String searchstr, long start)
     Retrieves the character position at which a specified substring appears in this Clob object.
Parameters:
  searchstr - th String to search for
Parameters:
  start - the position at which to start the search within this Clob.
public  OutputStreamsetAsciiStream(long pos)
     Retrieves a stream which can be used to write Ascii characters to this Clob object, starting at specified position.
public  WritersetCharacterStream(long pos)
     Retrieves a stream which can be used to write a stream of Unicode characters to this Clob object, at a specified position.
public  intsetString(long pos, String str)
     Writes a given Java String to this Clob object at a specified position.
public  intsetString(long pos, String str, int offset, int len)
     Writes len characters of String, starting at a specified character offset, to this Clob.
public  voidtruncate(long len)
     Truncates this Clob to have a specified length of characters.



Method Detail
getAsciiStream
public InputStream getAsciiStream() throws SQLException(Code)
Gets the value of this Clob object as an ASCII stream. an ASCII InputStream giving access to the Clob data
throws:
  SQLException - if an error occurs accessing the Clob



getCharacterStream
public Reader getCharacterStream() throws SQLException(Code)
Gets the value of this Clob object as a java.io.Reader. a character stream Reader object giving access to the Clob data
throws:
  SQLException - if an error occurs accessing the Clob



getSubString
public String getSubString(long pos, int length) throws SQLException(Code)
Gets a copy of a specified substring in this Clob.
Parameters:
  pos - the index of the start of the substring in the Clob
Parameters:
  length - the length of the data to retrieve A String containing the requested data
throws:
  SQLException - if an error occurs accessing the Clob



length
public long length() throws SQLException(Code)
Retrieves the number of characters in this Clob object. a long value with the number of character in this Clob.
throws:
  SQLException - if an error occurs accessing the Clob



position
public long position(Clob searchstr, long start) throws SQLException(Code)
Retrieves the character position at which a specified Clob object appears in this Clob object.
Parameters:
  searchstr - the specified Clob to search for
Parameters:
  start - the position within this Clob to start the search a long value with the position at which the specified Clob occurswithin this Clob.
throws:
  SQLException - if an error occurs accessing the Clob



position
public long position(String searchstr, long start) throws SQLException(Code)
Retrieves the character position at which a specified substring appears in this Clob object.
Parameters:
  searchstr - th String to search for
Parameters:
  start - the position at which to start the search within this Clob. a long value with the position at which the specified Stringoccurs within this Clob.
throws:
  SQLException - if an error occurs accessing the Clob



setAsciiStream
public OutputStream setAsciiStream(long pos) throws SQLException(Code)
Retrieves a stream which can be used to write Ascii characters to this Clob object, starting at specified position.
Parameters:
  pos - the position at which to start the writing an OutputStream which can be used to write ASCII characters tothis Clob.
throws:
  SQLException - if an error occurs accessing the Clob



setCharacterStream
public Writer setCharacterStream(long pos) throws SQLException(Code)
Retrieves a stream which can be used to write a stream of Unicode characters to this Clob object, at a specified position.
Parameters:
  pos - the position at which to start the writing a Writer which can be used to write Unicode characters to thisClob.
throws:
  SQLException - if an error occurs accessing the Clob



setString
public int setString(long pos, String str) throws SQLException(Code)
Writes a given Java String to this Clob object at a specified position.
Parameters:
  pos - the position at which to start the writing
Parameters:
  str - the String to write the number of characters written
throws:
  SQLException - if an error occurs accessing the Clob



setString
public int setString(long pos, String str, int offset, int len) throws SQLException(Code)
Writes len characters of String, starting at a specified character offset, to this Clob.
Parameters:
  pos - the position at which to start the writing
Parameters:
  str - the String to write
Parameters:
  offset - the offset within str to start writing from
Parameters:
  len - the number of characters to write the number of characters written
throws:
  SQLException - if an error occurs accessing the Clob



truncate
public void truncate(long len) throws SQLException(Code)
Truncates this Clob to have a specified length of characters.
Parameters:
  len - the length in characters to truncate this Clob
throws:
  SQLException - if an error occurs accessing the Clob



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.