KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.daffodilwoods.daffodildb.server.sessionsystem;
2
3 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator._Iterator;
4
5 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.predicate;
6
7
8
9 import com.daffodilwoods.daffodildb.server.serversystem.*;
10 import com.daffodilwoods.daffodildb.server.sql99.common.*;
11 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*;
12 import com.daffodilwoods.database.resource.*;
13 import com.daffodilwoods.daffodildb.server.sql99.common.TableDetails;
14 import com.daffodilwoods.daffodildb.server.serversystem._ServerSession;
15 import com.daffodilwoods.database.sqlinitiator.*;
16 import com.daffodilwoods.daffodildb.server.datasystem.interfaces.*;
17 import com.daffodilwoods.daffodildb.utils.Lock;
18 import com.daffodilwoods.database.general.QualifiedIdentifier;
19 import java.sql.Date JavaDoc;
20 import com.daffodilwoods.daffodildb.server.datasystem.utility.RecordVersion;
21 public interface _SessionTable {
22
23
24     /**
25      * returns the Iterator according to the Isolation Level.
26      * @param condition
27      * @param variableValues
28      * @param order
29      * @param queryColumns
30      * @return _Iterator
31      * @throws DException
32      */

33     public _Iterator getIterator ( _SingleTableExecuter singleTableExecuter ,_ServerSession serverSession ) throws DException;
34
35     /**
36      * Insert the values to their corresponding columns passed as their index number accodring to the Isolation level.
37      * @param columnIndexes
38      * @param value
39      * @return _Event
40      * @throws DException
41      */

42     public RecordVersion insert( int[] columnIndexes, Object JavaDoc[] value ) throws DException;
43
44     /**
45      * updates the record by fetching the record from its iterator and updating its columns to their respective values according to the Isolation Level.
46      * @param Iterator
47      * @param columnIndexes
48      * @param value
49      * @return _Event
50      * @throws DException
51      */

52     public RecordVersion update( _Iterator Iterator, int[] columnIndexes, Object JavaDoc[] value )throws DException;
53
54     /**
55      * Deletes the reocord through its iterator if allowed by its Isolation Level.
56      * @param Iterator
57      * @return _Event
58      * @throws DException
59      */

60     public RecordVersion delete( _Iterator Iterator )throws DException;
61
62     /**
63      * returns the session iterator according to the isolation level,
64      * condition and by passing run Time variables.
65      * @param condition
66      * @param runTimeVariables
67      * @param order
68      * @param queryColumns
69      * @return
70      * @throws DException
71      */

72     public _Iterator getForeignConstraintIterator( _SingleTableExecuter conditionExecuter ,_IndexTable foreignConstraintTable) throws DException;
73     public void setPerformCommit(boolean performCommit) throws DException;
74     public boolean isDataModified() throws DException;
75     public void performCommitInParent( Object JavaDoc parentSessionId, _StatementExecutionContext statementExecutionContext ) throws DException;
76     public Lock getSessionLock() throws DException;
77     public QualifiedIdentifier getTableName();
78     public int getTableType() throws DException;
79     public void performRollBack(_StatementExecutionContext statementExecutionContext)throws DException;
80     public void performRollBackWithChildSession(_StatementExecutionContext statementExecutionContext)throws DException;
81     public RecordVersion deleteVersion( _Iterator iterator,Date JavaDoc date )throws DException;
82     public RecordVersion updateVersion(_Iterator iterator ,int[] columns, Object JavaDoc[] values , Date JavaDoc date) throws DException ;
83     public RecordVersion insertVersion( int[] columnIndexes, Object JavaDoc[] values, Date JavaDoc date ) throws DException;
84     public _Iterator getConditionalIterator( _SingleTableExecuter singleTableExecuter, _ServerSession serverSession) throws DException;
85 }
86
Popular Tags