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.datasystem.indexsystem._IndexInformation; 6 import com.daffodilwoods.database.resource.DException; 7 import com.daffodilwoods.daffodildb.server.datasystem.utility.Record; 8 import com.daffodilwoods.daffodildb.server.datasystem.interfaces._TableCharacteristics; 9 import com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexTable; 10 import java.util.*; 11 import com.daffodilwoods.daffodildb.server.serversystem._ServerSession; 12 import com.daffodilwoods.daffodildb.server.datasystem.utility.*; 13 import com.daffodilwoods.daffodildb.server.serversystem.chainedcolumn.*; 14 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference; 15 import com.daffodilwoods.daffodildb.server.datasystem.interfaces._Database; 16 import com.daffodilwoods.daffodildb.server.sql99.fulltext.dml._FullTextIndexInformation; 17 public class ForeignConstraintTable implements _IndexTable,_SessionGetter { 18 private _IndexTable indexTable; 19 _ServerSession serverSession; 20 HashMap tablesMapping; 21 ChainedTableInfo startingTableInfo; 22 HashMap columnsMapping; 23 ArrayList tableDs; 24 25 public ForeignConstraintTable(_ServerSession serverSession0, 26 HashMap tablesMapping0, 27 ChainedTableInfo startingTableInfo0, 28 HashMap columnsMapping0, 29 ArrayList tableDetailsList0) 30 { 31 serverSession = serverSession0; 32 tablesMapping = tablesMapping0; 33 startingTableInfo = startingTableInfo0; 34 columnsMapping = columnsMapping0; 35 tableDs = tableDetailsList0; 36 } 37 38 public void setIndexTable(_IndexTable indexTable0) throws DException{ 39 indexTable = indexTable0; 40 } 41 public _IndexInformation[] getIndexInformations() throws com.daffodilwoods.database.resource.DException { 42 return indexTable.getIndexInformations(); 43 } 44 public _Iterator getIterator(int parm1) throws com.daffodilwoods.database.resource.DException { 45 _Iterator indexIterator = indexTable.getIterator(parm1); 46 return new ForeignKeyIterator(serverSession,indexIterator,tablesMapping,startingTableInfo, columnsMapping,tableDs); 47 } 48 49 public _Record getBlankRecord() throws com.daffodilwoods.database.resource.DException { 50 return indexTable.getBlankRecord(); 51 } 52 public _TableCharacteristics getTableCharacteristics() throws com.daffodilwoods.database.resource.DException { 53 return indexTable.getTableCharacteristics(); 54 } 55 public _ServerSession getServerSession() throws DException{ 56 return serverSession; 57 } 58 59 public int getEstimatedRowCount() throws DException{ 60 return indexTable.getEstimatedRowCount(); 61 } 62 63 public _Iterator getDefaultIterator() throws com.daffodilwoods.database.resource.DException { 64 _Iterator indexIterator = indexTable.getDefaultIterator(); 65 return new ForeignKeyIterator(serverSession,indexIterator,tablesMapping,startingTableInfo, columnsMapping,tableDs); 66 } 67 public _Iterator getIterator(_Iterator indexIterator) throws com.daffodilwoods.database.resource.DException { 68 return new ForeignKeyIterator(serverSession,indexIterator,tablesMapping,startingTableInfo, columnsMapping,tableDs); 69 } 70 71 public _FullTextIndexInformation[] getFullTextIndexInformation( ) throws DException{ 72 return indexTable.getFullTextIndexInformation(); 73 } 74 public _Database getDatabase() throws DException{ 75 return indexTable.getDatabase(); 76 } 77 public void setDuplicateKeysAllowedInBtrees() throws DException{ 78 throw new java.lang.UnsupportedOperationException ("Method setDuplicateKeysAllowedInBtrees() not yet implemented."); 79 } 80 } 81 | Popular Tags |