OpenMMS
V1.5.1 Std

org.rcsb.openmms.util
Class InsertEntryBase

java.lang.Object
  |
  +--org.rcsb.openmms.util.InsertEntryBase
All Implemented Interfaces:
TypeNamesSql
Direct Known Subclasses:
InsertEntry

public abstract class InsertEntryBase
extends java.lang.Object
implements TypeNamesSql

Base Class containing utility functions for the Relational Database Entry JDBC insertion code.

Version:
1.4
Author:
Douglas S. Greer

Field Summary
protected  java.sql.Connection Conn
           
protected  int debug
           
protected  int entryKey
           
protected  MessageHandler messagePanel
           
protected  java.sql.Statement 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
InsertEntryBase(MessageHandler ps, int dbug, java.sql.Connection con)
           
 
Method Summary
protected  int getCategoryBase(java.lang.String catTableName)
           
protected  int getCategoryKey(java.lang.String catTableName)
           
protected  boolean isFlagSet(byte[] bits, int flag)
           
protected  void updateCategoryEntryKey(int eKey, int catKey, int keyBase, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected int debug

Conn

protected java.sql.Connection Conn

messagePanel

protected MessageHandler messagePanel

stmt

protected java.sql.Statement stmt

entryKey

protected int entryKey
Constructor Detail

InsertEntryBase

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

isFlagSet

protected boolean isFlagSet(byte[] bits,
                            int flag)

getCategoryKey

protected int getCategoryKey(java.lang.String catTableName)
                      throws MmsTranslationException,
                             java.sql.SQLException
MmsTranslationException
java.sql.SQLException

getCategoryBase

protected int getCategoryBase(java.lang.String catTableName)
                       throws MmsTranslationException,
                              java.sql.SQLException
MmsTranslationException
java.sql.SQLException

updateCategoryEntryKey

protected void updateCategoryEntryKey(int eKey,
                                      int catKey,
                                      int keyBase,
                                      int len)
                               throws MmsTranslationException,
                                      java.sql.SQLException
MmsTranslationException
java.sql.SQLException

OpenMMS
V1.5.1 Std

OpenMMS, Copyright 2001, All rights reserved