OpenMMS
V1.5.1 Std

org.rcsb.openmms.entry
Class RDBEntryFoundry

java.lang.Object
  |
  +--org.rcsb.openmms.entry.EntryFoundry
        |
        +--org.rcsb.openmms.entry.RDBEntryFoundry
All Implemented Interfaces:
EntryDirectory, TypeNamesSql

public class RDBEntryFoundry
extends EntryFoundry
implements EntryDirectory, TypeNamesSql

Implements the EntryFactory for the MMS Corba reference server.

Version:
1.1
Author:
Douglas S. Greer

Field Summary
 
Fields inherited from interface org.rcsb.openmms.util.TypeNamesSql
bigBinaryType, bigTextType, CATEGORY_TABLE_CIF_ID_NAME, CATEGORY_TABLE_DESC_NAME, CATEGORY_TABLE_KEY_NAME, CATEGORY_TABLE_MAND_NAME, CATEGORY_TABLE_NAME, CATEGORY_TABLE_NEXT_RECORD_NAME, CATEGORY_TABLE_TABLE_NAME, dbTypeNames, ENTRY_CATS_CATEGORY_NAME, ENTRY_CATS_ENTRY_NAME, ENTRY_CATS_FIRST_KEY_NAME, ENTRY_CATS_LEN_NAME, ENTRY_CATS_TABLE_NAME, ENTRY_TABLE_DEP_DATE_NAME, ENTRY_TABLE_FLAG_BASE_NAME, ENTRY_TABLE_ID_NAME, ENTRY_TABLE_KEY_NAME, ENTRY_TABLE_LOAD_DATE_NAME, ENTRY_TABLE_LOAD_STATUS_NAME, ENTRY_TABLE_NAME, hugeTextType, IBM_DB2_FLAVOR, ITEM_TABLE_CAT_INDX_NAME, ITEM_TABLE_CIF_ID_NAME, ITEM_TABLE_COLUMN_NAME, ITEM_TABLE_DESC_NAME, ITEM_TABLE_KEY_NAME, ITEM_TABLE_MAND_NAME, ITEM_TABLE_NAME, KEY_ID_SUFFIX, largeTableQualifier, MICROSOFT_ACCESS_FLAVOR, MYSQL_FLAVOR, NUMBER_OF_FLAVORS, ORACLE_FLAVOR, SCHEMA_PREFIX, smallBinaryType, STD_DATE_TYPE, STD_KEY_TYPE, STD_LINE_TYPE, STD_NAME_TYPE, SYBASE_FLAVOR, SYSTEM_DATA_BANK_NAME, SYSTEM_MODEL_ID_NAME, SYSTEM_REVISION_NUMBER_NAME, SYSTEM_TABLE_NAME, SYSTEM_VERSION_NAME, TYPE_FIELD_LEN
 
Constructor Summary
RDBEntryFoundry(ServerHandler a, java.sql.Connection cn)
           
 
Method Summary
 boolean allVariablesRead()
           
 boolean cacheValue(EntryImpl ei, int modType, int sFlag, java.lang.Object[] var)
           
protected  void checkDirectoryInit()
           
 void checkModelAndVersion()
           
 EntryImpl createEntryImpl(java.lang.String id)
           
 java.lang.String[] getEntriesInGroup(java.lang.String group)
           
 java.lang.String[] getEntryGroupList()
           
 java.lang.String[] getEntryIdList()
           
 ModificationDate[] getEntryModificationDates()
           
 java.lang.Object[] getList(EntryImpl ei, int modType, int sFlag)
           
 java.lang.Object[] getListBlock(EntryImpl ei, int modType, int sFlag, int from, int to)
           
 int getListSize(EntryImpl ei, int modType, int sFlag)
           
 byte[] getNativeEntryRepresentation(java.lang.String format, java.lang.String entry_id)
           
 java.lang.String[] getNativeFormatsSupported()
           
 void readEntryData(EntryImpl ei)
           
 void setDebug(int d)
           
 
Methods inherited from class org.rcsb.openmms.entry.EntryFoundry
getMessageHandler, getNext, getOrb, getRootPoa, idToGroup, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBEntryFoundry

public RDBEntryFoundry(ServerHandler a,
                       java.sql.Connection cn)
                throws DataAccessException,
                       java.sql.SQLException
Method Detail

setDebug

public void setDebug(int d)
Overrides:
setDebug in class EntryFoundry

checkDirectoryInit

protected void checkDirectoryInit()
                           throws DataAccessException
DataAccessException

checkModelAndVersion

public void checkModelAndVersion()
                          throws DataAccessException
DataAccessException

allVariablesRead

public boolean allVariablesRead()
Specified by:
allVariablesRead in class EntryFoundry

cacheValue

public boolean cacheValue(EntryImpl ei,
                          int modType,
                          int sFlag,
                          java.lang.Object[] var)
Specified by:
cacheValue in class EntryFoundry

getList

public java.lang.Object[] getList(EntryImpl ei,
                                  int modType,
                                  int sFlag)
                           throws DataAccessException
Specified by:
getList in class EntryFoundry
DataAccessException

getListSize

public int getListSize(EntryImpl ei,
                       int modType,
                       int sFlag)
                throws DataAccessException
Specified by:
getListSize in class EntryFoundry
DataAccessException

getListBlock

public java.lang.Object[] getListBlock(EntryImpl ei,
                                       int modType,
                                       int sFlag,
                                       int from,
                                       int to)
                                throws DataAccessException
Specified by:
getListBlock in class EntryFoundry
DataAccessException

createEntryImpl

public EntryImpl createEntryImpl(java.lang.String id)
                          throws DataAccessException
Specified by:
createEntryImpl in class EntryFoundry
DataAccessException

readEntryData

public void readEntryData(EntryImpl ei)
                   throws DataAccessException
Specified by:
readEntryData in class EntryFoundry
DataAccessException

getEntryIdList

public java.lang.String[] getEntryIdList()
                                  throws DataAccessException
Specified by:
getEntryIdList in interface EntryDirectory
DataAccessException

getEntryModificationDates

public ModificationDate[] getEntryModificationDates()
                                             throws DataAccessException
Specified by:
getEntryModificationDates in interface EntryDirectory
DataAccessException

getEntryGroupList

public java.lang.String[] getEntryGroupList()
                                     throws DataAccessException
Specified by:
getEntryGroupList in interface EntryDirectory
DataAccessException

getEntriesInGroup

public java.lang.String[] getEntriesInGroup(java.lang.String group)
                                     throws DataAccessException
Specified by:
getEntriesInGroup in interface EntryDirectory
DataAccessException

getNativeFormatsSupported

public java.lang.String[] getNativeFormatsSupported()
Specified by:
getNativeFormatsSupported in interface EntryDirectory

getNativeEntryRepresentation

public byte[] getNativeEntryRepresentation(java.lang.String format,
                                           java.lang.String entry_id)
                                    throws DataAccessException
Specified by:
getNativeEntryRepresentation in interface EntryDirectory
DataAccessException

OpenMMS
V1.5.1 Std

OpenMMS, Copyright 2001, All rights reserved