KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > serversystem > datatriggersystem > _DataTriggerDatabase


1 package com.daffodilwoods.daffodildb.server.serversystem.datatriggersystem;
2
3 import com.daffodilwoods.database.general.*;
4 import com.daffodilwoods.database.resource.*;
5
6 /**
7  *
8  * <p>Title: Data Trigger Database</p>
9  * <p>Description: Data Trigger Database contains a weak ordered list called dataTriggerTableList which contains the list
10  * of all data trigger table names corresponding to their Table names, which call the Triggers for operation to be
11  * performed on Data Trigger Table. It contains two methods getDataTriggerTable to fetch the table name on which
12  * trigger operations are to be performed and second method removeTable for removing the entry of the table from
13  * weak ordered list.</p>
14  * <p>Company: Daffodil Software Ltd.</p>
15  */

16 public interface _DataTriggerDatabase {
17
18    /**
19     * Checks for the entry of table in weak ordered list (dataTriggerList), if the entry is found then
20     * data Trigger table is returned otherwise an new Object of DataTriggerTable for the table is returned
21     * and a entry is made in th weak ordered list.
22     * @param tableName (String)
23     * @return _DataTriggerTable
24     * @throws DException
25     */

26    public _DataTriggerTable getDataTriggerTable(QualifiedIdentifier tableName) throws DException;
27
28    /**
29     * passes the call for removing the entry of Table from trigger Database, which in turn removes the enrty from
30     * triggerTablepool.
31     * @param tableName
32     * @throws DException
33     */

34    public void removeTable(QualifiedIdentifier tableName) throws DException;
35
36    public _DataTriggerTable getDataViewTriggerTable(QualifiedIdentifier tableName) throws DException;
37
38    public void refreshConstraint(QualifiedIdentifier tableName) throws DException;
39 }
40
Popular Tags