org.rcsb.openmms.meta
Class InitSqlWriter
java.lang.Object
|
+--org.rcsb.openmms.meta.TransVisitor
|
+--org.rcsb.openmms.meta.SqlWriter
|
+--org.rcsb.openmms.meta.InitSqlWriter
- All Implemented Interfaces:
- TypeNamesSql
- public class InitSqlWriter
- extends SqlWriter
Visitor class to traverse the metamodel and generate the
code to initialize the RDB tables.
- Version:
- 1.4
- Author:
- Douglas S. Greer
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 |
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, closeFile, closeGetListMethod, closeInterface, closeMatrix, closeMethod, closeStructure, closeSubfield, closeValuetype, closeVector, createConstant, createDirective, createExceptionField, createList, createSequence, createTypeDef, open, openException, openFile, openGetListMethod, openInterface, openMatrix, openMethod, openStructure, openSubfield, openValuetype, openVector, 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 |
InitSqlWriter
public InitSqlWriter(CifDictionary d,
java.lang.String sqlp,
java.lang.String oBase)
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
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
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
OpenMMS, Copyright 2001, All rights reserved