KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sessionsystem > _SessionDatabase


1 package com.daffodilwoods.daffodildb.server.sessionsystem;
2
3 import com.daffodilwoods.database.resource.*;
4 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*;
5 import com.daffodilwoods.daffodildb.server.serversystem.*;
6 import com.daffodilwoods.database.general.*;
7 import java.util.*;
8 import com.daffodilwoods.daffodildb.server.serversystem.dmlvalidation.constraintsystem._ConstraintTable;
9 import com.daffodilwoods.daffodildb.server.datasystem.interfaces.*;
10 import java.util.*;
11 public interface _SessionDatabase {
12
13   /**
14    * returns a Object of dataDictonary.
15    * @return _DataDictonary
16    * @throws DException
17    */

18   public _DataDictionary getDataDictionary( ) throws DException ;
19
20   /**
21    * returns a Object of _Database
22    * @return _Database
23    * @throws DException
24    */

25   public _Database getMergeDatabase( ) throws DException ;
26
27   /**
28    * if sessionConstant is null it returns new Session by passing user, session
29    * constant, and session properties
30    * if session properties is null it returns existing session by passing session
31    * constant
32    * otherwise it fetches a new session.
33    * @param userName
34    * @param sessionConstant
35    * @param sessionProperties
36    * @return _Session
37    * @throws DException
38    */

39   public _Session getSession( String JavaDoc userName, Object JavaDoc sessionConstant,
40                        Properties sessionProperties ) throws DException;
41
42   /**
43    * returns new child session by passing session constant for parent,
44    * next session id, transaction id at start, parent session.
45    * @param parentSession
46    * @return _Session
47    * @throws DException
48    */

49
50   /**
51    * returns constraint table of Deffered mode transactions.
52    * @param tableName
53    * @return _ConstraintTable
54    * @throws DException
55    */

56   public _ConstraintTable getDeferrableConstraintTable(QualifiedIdentifier tableName) throws DException;
57
58   /**
59    * fetches a reocrd for the session user.
60    * @param tableName
61    * @return _RecordFetcher
62    * @throws DException
63    */

64
65   /**
66    * return a Object of Global Session
67    * @return _GlobalSession
68    * @throws DException
69    */

70   public _ServerSession getGlobalSession() throws DException ;
71
72   /**
73    * removes the table name from all session table list.
74    * @param tableName
75    * @param dropTable
76    * @throws DException
77    */

78   public void removeTable(QualifiedIdentifier tableName, boolean dropTable) throws DException;
79
80   /**
81    * returnes an instance of savemodehandler
82    * @param tableName
83    * @param dropTable
84    * @throws DException
85    */

86 }
87
Popular Tags