OpenMMS
V1.5.1 Std

org.rcsb.openmms.apps.rdb
Class InsertEntryFinal

java.lang.Object
  |
  +--org.rcsb.openmms.util.InsertEntryBase
        |
        +--org.rcsb.openmms.dbinsert.InsertEntry
              |
              +--org.rcsb.openmms.apps.rdb.InsertEntryFinal
All Implemented Interfaces:
TypeNamesSql

public class InsertEntryFinal
extends InsertEntry

Final subclass of InsertEntry with Entry Table create and delete methods.

Version:
1.2
Author:
Douglas S. Greer

Field Summary
 
Fields inherited from class org.rcsb.openmms.util.InsertEntryBase
Conn, debug, entryKey, messagePanel, stmt
 
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
InsertEntryFinal(MessageHandler ps, int dbug, java.sql.Connection con)
           
 
Method Summary
 int buildAndInsertEntry(java.lang.String ename, EntryImpl ei)
           
protected  void createEntryRecord(int eKey, java.lang.String ename, EntryImpl ei)
           
protected  void dbCheck(MessageHandler mh)
           
protected  int getNextEntryKey()
           
 java.lang.String getTableNameFromKey(int key)
           
 void initLoader()
           
protected  void markEntryComplete(int eKey, java.lang.String ename, EntryImpl ei)
           
 void removeEntry(int key, java.lang.String ename)
           
 
Methods inherited from class org.rcsb.openmms.dbinsert.InsertEntry
initCategories, insertEntryData
 
Methods inherited from class org.rcsb.openmms.util.InsertEntryBase
getCategoryBase, getCategoryKey, isFlagSet, updateCategoryEntryKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertEntryFinal

public InsertEntryFinal(MessageHandler ps,
                        int dbug,
                        java.sql.Connection con)
Method Detail

initLoader

public void initLoader()
                throws MmsTranslationException,
                       java.sql.SQLException
MmsTranslationException
java.sql.SQLException

dbCheck

protected void dbCheck(MessageHandler mh)
                throws java.sql.SQLException,
                       MmsTranslationException
java.sql.SQLException
MmsTranslationException

buildAndInsertEntry

public int buildAndInsertEntry(java.lang.String ename,
                               EntryImpl ei)
                        throws MmsTranslationException,
                               java.sql.SQLException
MmsTranslationException
java.sql.SQLException

getNextEntryKey

protected int getNextEntryKey()
                       throws java.sql.SQLException
java.sql.SQLException

createEntryRecord

protected void createEntryRecord(int eKey,
                                 java.lang.String ename,
                                 EntryImpl ei)
                          throws java.sql.SQLException
java.sql.SQLException

markEntryComplete

protected void markEntryComplete(int eKey,
                                 java.lang.String ename,
                                 EntryImpl ei)
                          throws java.sql.SQLException,
                                 MmsTranslationException
java.sql.SQLException
MmsTranslationException

getTableNameFromKey

public java.lang.String getTableNameFromKey(int key)
                                     throws MmsTranslationException,
                                            java.sql.SQLException
MmsTranslationException
java.sql.SQLException

removeEntry

public void removeEntry(int key,
                        java.lang.String ename)
                 throws MmsTranslationException,
                        java.sql.SQLException
MmsTranslationException
java.sql.SQLException

OpenMMS
V1.5.1 Std

OpenMMS, Copyright 2001, All rights reserved