KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datasystem > persistentsystem > DClob


1 package com.daffodilwoods.daffodildb.server.datasystem.persistentsystem;
2
3 import com.daffodilwoods.database.resource.*;
4 import java.io.*;
5 import java.sql.*;
6 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference;
7
8 /**
9  * It is used to retieve and update clob column values, it read and write bytes in Cluster with the help of its
10 * super class DBlob
11  */

12
13 public class DClob extends DBlob /*implements Clob */{
14
15
16
17    public DClob(ClusterCharacteristics cc,LobManager lobManager0,short recordNumber0) {
18      super(cc,lobManager0,recordNumber0);
19
20    }
21
22    /*public DClob(char[] bytes) throws DException {
23       this(new String(bytes));
24    }
25
26    public DClob(String inputString) throws DException {
27       super(inputString.getBytes());
28    }*/

29
30    public long length() throws DException {
31       return super.length();
32    }
33
34    /**
35     * returns String from specified position and of required length
36     *
37     * @param pos position from where string is required
38     * @param length length of string which is required
39     *
40     * @return String from specified position and of required length
41     */

42
43    public String JavaDoc getSubString(long pos, int length) throws SQLException,DException {
44       return new String JavaDoc(getBytes(pos,length));
45    }
46
47
48
49
50
51
52
53
54 }
55
Popular Tags