KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.daffodildb.server.datasystem.interfaces._DatabaseUser;
4 import com.daffodilwoods.database.resource.DException;
5
6 /**
7  * <p>Title: _UserTableOperations</p>
8 * <p>Description: Is an interface that provides the insert,update and delete
9  * methods for a particular user
10  *
11  * Interface provided by _Iterator. Update and delete will be done the current
12  * row of the iterator
13  */

14 public interface _UserTableOperations {
15
16   /**
17    * Used to insert a record in the table for a user.
18    * @param user User who is performing the insert.
19    * @param value array of values to be inserted as a record in the table.
20    * @throws DException
21    */

22    void insert(_DatabaseUser user, Object JavaDoc value) throws DException;
23
24    /**
25     * Used to update a record in the table
26     * @param user User who is performing the update
27     * @param value array of values with which the record is to be updated.
28     * @throws DException
29     */

30    void update(_DatabaseUser user,Object JavaDoc value) throws DException;
31
32    /**
33     * Used to update a record in the table
34     * @param user User who is performing the update.
35     * @param columns array of columns whose values are to be updated
36     * @param value array of values with which therecord is to be updated
37     * @throws DException
38     */

39    void update(_DatabaseUser user,int[] columns,Object JavaDoc[] value) throws DException;
40
41    /**
42     * Used to delete a record from the table
43     * @param user User who is performing delete operation
44     * @throws DException
45     */

46    void delete(_DatabaseUser user) throws DException;
47 }
48
Popular Tags