OpenMMS
V1.5.1 Std

org.rcsb.openmms.util
Class SelectCategoryBase

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

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

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

Version:
1.2
Author:
Douglas S. Greer

Field Summary
protected  int categoryBase
           
protected  int categoryKey
           
protected  int categoryLength
           
protected  java.sql.Connection Conn
           
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
SelectCategoryBase(MessageHandler ps, java.sql.Connection con)
           
 
Method Summary
 int getCategoryBase()
           
 int getCategoryKey()
           
 int getCategoryLength()
           
 java.sql.Connection getConnection()
           
 int getEntryKey()
           
static boolean isFlagSet(byte[] bits, int flag)
           
 int readCategoryBase(int ekey, int ckey)
           
 void readCategoryStats(int ekey, int ckey)
           
static void setFlag(byte[] bits, int flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Conn

protected java.sql.Connection Conn

messagePanel

protected MessageHandler messagePanel

stmt

protected java.sql.Statement stmt

entryKey

protected int entryKey

categoryKey

protected int categoryKey

categoryBase

protected int categoryBase

categoryLength

protected int categoryLength
Constructor Detail

SelectCategoryBase

public SelectCategoryBase(MessageHandler ps,
                          java.sql.Connection con)
                   throws java.sql.SQLException
Method Detail

readCategoryBase

public int readCategoryBase(int ekey,
                            int ckey)
                     throws MmsTranslationException,
                            java.sql.SQLException
MmsTranslationException
java.sql.SQLException

readCategoryStats

public void readCategoryStats(int ekey,
                              int ckey)
                       throws MmsTranslationException,
                              java.sql.SQLException
MmsTranslationException
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()

getEntryKey

public int getEntryKey()

getCategoryKey

public int getCategoryKey()

getCategoryBase

public int getCategoryBase()

getCategoryLength

public int getCategoryLength()

isFlagSet

public static boolean isFlagSet(byte[] bits,
                                int flag)

setFlag

public static void setFlag(byte[] bits,
                           int flag)

OpenMMS
V1.5.1 Std

OpenMMS, Copyright 2001, All rights reserved