OpenMMS
V1.5.1 Std

org.rcsb.openmms.meta
Class SelectWriter

java.lang.Object
  |
  +--org.rcsb.openmms.meta.TransVisitor
        |
        +--org.rcsb.openmms.meta.SqlWriter
              |
              +--org.rcsb.openmms.meta.SelectWriter
All Implemented Interfaces:
TypeNamesSql

public class SelectWriter
extends SqlWriter

Visitor subclass that writes the java JDBC code for reading data from a relational database into the Entry Data Structures.

Version:
1.4
Author:
Douglas S. Greer

Field Summary
 
Fields inherited from class org.rcsb.openmms.meta.TransVisitor
indent
 
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
SelectWriter(CifDictionary d, java.lang.String insertp, java.lang.String lsr, java.lang.String msa, java.lang.String oBase)
           
 
Method Summary
 void closeCategory(CategoryTrans ct)
           
 void closeField(SubfieldTrans ft)
           
 void closeFile(FileTrans ft)
           
 void closeMatrix(MatrixTrans mt)
           
 void closeModule(ModuleTrans mt)
           
 void closeRoot(RootTrans rt)
           
 void closeSubfield(SubfieldTrans ft)
           
 void closeValueGroupSet(FieldTrans ft)
           
 void closeVector(VectorTrans vt)
           
 void openCategory(CategoryTrans ct)
           
 void openField(FieldTrans ft)
           
 void openFile(FileTrans ft)
           
 void openMatrix(MatrixTrans mt)
           
 void openModule(ModuleTrans mt)
           
 void openRoot(RootTrans rt)
           
 void openStructure(StructureTrans st)
           
 void openSubfield(SubfieldTrans ft)
           
 void openValueGroupSet(FieldTrans ft)
           
 void openValuetype(ValuetypeTrans st)
           
 void openVector(VectorTrans vt)
           
 
Methods inherited from class org.rcsb.openmms.meta.SqlWriter
buffer, buffer, categoryNameToTableName, cifToSqlGetMethod, cifToSqlSetMethod, cifToSqlType, clearIllegalChars, flush, itemNameToAttributeName, literal, padString, padString, writeIntro, writeSysSpecific
 
Methods inherited from class org.rcsb.openmms.meta.TransVisitor
close, closeException, closeField, closeGetListMethod, closeInterface, closeMethod, closeStructure, closeValuetype, createConstant, createDirective, createExceptionField, createList, createSequence, createTypeDef, open, openException, openGetListMethod, openInterface, openMethod, setIndentString, writeBuffer, writeCopyright, writeCopyright, writeStr, writeStr, writeStr, writeStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectWriter

public SelectWriter(CifDictionary d,
                    java.lang.String insertp,
                    java.lang.String lsr,
                    java.lang.String msa,
                    java.lang.String oBase)
Method Detail

openRoot

public void openRoot(RootTrans rt)
              throws java.io.IOException,
                     TransGenException
Overrides:
openRoot in class TransVisitor
java.io.IOException
TransGenException

closeRoot

public void closeRoot(RootTrans rt)
               throws java.io.IOException,
                      TransGenException
Overrides:
closeRoot in class TransVisitor
java.io.IOException
TransGenException

openFile

public void openFile(FileTrans ft)
              throws java.io.IOException,
                     TransGenException
Overrides:
openFile in class TransVisitor
java.io.IOException
TransGenException

closeFile

public void closeFile(FileTrans ft)
               throws java.io.IOException,
                      TransGenException
Overrides:
closeFile in class TransVisitor
java.io.IOException
TransGenException

openModule

public void openModule(ModuleTrans mt)
                throws java.io.IOException,
                       TransGenException
Overrides:
openModule in class TransVisitor
java.io.IOException
TransGenException

closeModule

public void closeModule(ModuleTrans mt)
                 throws java.io.IOException,
                        TransGenException
Overrides:
closeModule in class TransVisitor
java.io.IOException
TransGenException

openCategory

public void openCategory(CategoryTrans ct)
                  throws java.io.IOException,
                         TransGenException
Overrides:
openCategory in class TransVisitor
java.io.IOException
TransGenException

closeCategory

public void closeCategory(CategoryTrans ct)
                   throws java.io.IOException,
                          TransGenException
Overrides:
closeCategory in class TransVisitor
java.io.IOException
TransGenException

openStructure

public void openStructure(StructureTrans st)
                   throws java.io.IOException,
                          TransGenException
Overrides:
openStructure in class TransVisitor
java.io.IOException
TransGenException

openValuetype

public void openValuetype(ValuetypeTrans st)
                   throws java.io.IOException,
                          TransGenException
Overrides:
openValuetype in class TransVisitor
java.io.IOException
TransGenException

openField

public void openField(FieldTrans ft)
               throws java.io.IOException,
                      TransGenException
Overrides:
openField in class TransVisitor
java.io.IOException
TransGenException

closeField

public void closeField(SubfieldTrans ft)
                throws java.io.IOException,
                       TransGenException
java.io.IOException
TransGenException

openSubfield

public void openSubfield(SubfieldTrans ft)
                  throws java.io.IOException,
                         TransGenException
Overrides:
openSubfield in class TransVisitor
java.io.IOException
TransGenException

closeSubfield

public void closeSubfield(SubfieldTrans ft)
                   throws java.io.IOException,
                          TransGenException
Overrides:
closeSubfield in class TransVisitor
java.io.IOException
TransGenException

openVector

public void openVector(VectorTrans vt)
                throws java.io.IOException,
                       TransGenException
Overrides:
openVector in class TransVisitor
java.io.IOException
TransGenException

closeVector

public void closeVector(VectorTrans vt)
                 throws java.io.IOException,
                        TransGenException
Overrides:
closeVector in class TransVisitor
java.io.IOException
TransGenException

openMatrix

public void openMatrix(MatrixTrans mt)
                throws java.io.IOException,
                       TransGenException
Overrides:
openMatrix in class TransVisitor
java.io.IOException
TransGenException

closeMatrix

public void closeMatrix(MatrixTrans mt)
                 throws java.io.IOException,
                        TransGenException
Overrides:
closeMatrix in class TransVisitor
java.io.IOException
TransGenException

openValueGroupSet

public void openValueGroupSet(FieldTrans ft)
                       throws java.io.IOException,
                              TransGenException
java.io.IOException
TransGenException

closeValueGroupSet

public void closeValueGroupSet(FieldTrans ft)
                        throws java.io.IOException,
                               TransGenException
java.io.IOException
TransGenException

OpenMMS
V1.5.1 Std

OpenMMS, Copyright 2001, All rights reserved