KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datasystem > interfaces > _TableOperations


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.database.resource.DException;
4
5 /**
6  *
7  * <p>Title: _TableOperations</p>
8 * <p>Description: Is an interface that provides the methods for insert,update and delete on the table through the iterator.
9  */

10 public interface _TableOperations {
11
12   /**
13    * Used to insert a record in the table.
14    * @param value an array of values that are to be inserted as a record in the table
15    * @throws DException
16    */

17    void insert(Object JavaDoc value) throws DException;
18
19    /**
20     * Used to update the values of a record in the table.
21     * @param value an array of values with which the record is to be updated.
22     * @throws DException
23     */

24    void update(Object JavaDoc value) throws DException;
25
26    /**
27     * Used to update the values of the record in the table.
28     * @param columns array of columns that are to be updated in the particular record
29     * @param value array of values with which the record is to be updated.
30     * @throws DException
31     */

32    void update(int[] columns,Object JavaDoc[] value) throws DException;
33
34    /**
35     * Used to delete a record from the table.
36     * @throws DException
37     */

38    void delete() throws DException;
39
40    /**
41   * Used to delete a record from the blob clob table without delting blob clob column.
42   * It is implemented for some problems faced during blobclob testing.
43   * When a record is inserted and again it is updated than we have its two verions
44   * and we delete old record from StatementHandler class performCommitForKeys method
45   * now during update while blob clob column not updated than this method is to be used
46   * because we doesn't make a duplicate copy of blob clob data while creating new version
47   * so during deletion of old version now we doesn't delete the blob clob column's data
48   * because it is used at it is in new version.
49   *
50   * @throws DException
51   */

52  void deleteBlobClobRecord(_DatabaseUser user) throws DException;
53
54 }
55
Popular Tags