|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iris.Fissures.seed.builder.ExportBuilder
edu.iris.dmc.pdcc.builder.PdccDbExportBuilder
Concrete Builder class for exporting Blockette objects from the SeedObjectContainer to the PDCC database schema.
| Nested Class Summary |
| Nested classes inherited from class edu.iris.Fissures.seed.builder.ExportBuilder |
ExportBuilder.LogicalRecord |
| Field Summary |
| Fields inherited from class edu.iris.Fissures.seed.builder.ExportBuilder |
builderType, endOfGroup, endOfLogical, endOfPhysical, exportMold, exportScript, logicalPerPhysical, logicalRecord, logicalRecordCount, logicalRecordLength, logicalRecords, nestingDepth, nestingScore, outputStream, penDown, physicalRecordLength, recordPadding, scriptCursor, scriptNesting, vaxOrder |
| Constructor Summary | |
PdccDbExportBuilder(java.lang.String configFile,
java.lang.String sessionConfigName,
PdccTableContainer tblContainer)
Instantiate without a pre-existing dbConfig name. |
|
PdccDbExportBuilder(java.lang.String configFile,
java.lang.String sessionConfigName,
java.lang.String dbConfigName,
PdccTableContainer tblContainer)
Create an instance of the export builder. |
|
| Method Summary | |
protected boolean |
checkTrigger(java.lang.String s)
Implement export script triggers here. |
void |
deleteToTableContainer(Blockette blk)
Pull back tables relating to the indicated blockette and mark them for deletion by the database on the next export/update call -- does not delete the table record (will happen after database update). |
static void |
main(java.lang.String[] args)
Command-line application interface for database export facilities. |
protected void |
packToRecord()
Pack SQL statements for logical records for export to database. |
protected void |
padLogical()
No function performed. |
protected void |
padPhysical()
No function performed. |
void |
restoreToTableContainer(Blockette blk,
int startField,
int endField)
DEPRECATED parameter variant turn off update flags for the indicated start and end field numbers used for repeat group restore actions |
void |
restoreToTableContainer(int blkType,
int blkLookupId)
turn off ALL update flags and restore db record object to it original state |
void |
restoreToTableContainer(int blkType,
int blkLookupId,
int startField,
int endField)
turn off update flags for the indicated start and end repeat field numbers. |
void |
setDefaultMode()
Set up script pattern for playing out Blockette types to the database exporter. |
protected void |
startNewLogical(SeedObject obj,
boolean continuation)
Accept the incoming object, which is a PdccTableRecord, and write an SQL string to a new logical record, which is added to the logical record vector. |
void |
updateToTableContainer(Blockette blk,
int fieldNum,
int fieldIndex)
Mark table record in table container for UPDATE query but ONLY if there is a db table object, otherwise nothing happens. |
void |
updateToTableContainer(Blockette blk,
int fieldNum,
int fieldIndex,
char op)
Mark table record in table container for UPDATE (u) or DELETE (d), depending on the operation character, but ONLY if there is a db table object, otherwise nothing happens. |
protected void |
volumeFinish()
Perform finishing actions on the database export process. |
void |
writeToDb(boolean verboseFlag)
Set up thread to turn output stream into SQL executions to the database. |
| Methods inherited from class edu.iris.Fissures.seed.builder.ExportBuilder |
build, close, finish, getNext, getType, open, push, setLogicalRecLen, setPhysicalRecLen, setVaxOrder, startVolume, writeRecord |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PdccDbExportBuilder(java.lang.String configFile,
java.lang.String sessionConfigName,
java.lang.String dbConfigName,
PdccTableContainer tblContainer)
throws java.lang.Exception
configFile - pathname of the PDCC configuration filesessionConfigName - session config namedbConfigName - database config nametblContainer - instance of PdccTableContainer in current use by PDCC
java.lang.Exception
public PdccDbExportBuilder(java.lang.String configFile,
java.lang.String sessionConfigName,
PdccTableContainer tblContainer)
throws java.lang.Exception
configFile - pathname of the PDCC configuration filesessionConfigName - session config nametblContainer - instance of PdccTableContainer in current use by PDCC
java.lang.Exception| Method Detail |
public void setDefaultMode()
public void writeToDb(boolean verboseFlag)
throws java.lang.Exception
verboseFlag - set to true for SQL transaction verbosity
java.lang.Exception
public void updateToTableContainer(Blockette blk,
int fieldNum,
int fieldIndex)
throws java.lang.Exception
blk - update to be marked for this blocketefieldNum - update to be marked for this field numberfieldIndex - update to be marked for this field index
java.lang.Exception
public void updateToTableContainer(Blockette blk,
int fieldNum,
int fieldIndex,
char op)
throws java.lang.Exception
blk - change flag for this blockettefieldNum - change flag for this field numberfieldIndex - change flag for this field indexop - operation flag to be used ('u' or 'd')
java.lang.Exception
public void deleteToTableContainer(Blockette blk)
throws java.lang.Exception
blk - this is the blockette being marked for deletion
java.lang.Exception
public void restoreToTableContainer(Blockette blk,
int startField,
int endField)
throws java.lang.Exception
blk - blockette having fields restoredstartField - start field of the restorationendField - end field of the restoration
java.lang.Exception
public void restoreToTableContainer(int blkType,
int blkLookupId,
int startField,
int endField)
throws java.lang.Exception
blkType - blockette type of the object being restoredblkLookupId - lookup ID of the object being restoredstartField - beginning blockette field number of the repeat groupendField - ending blockette field number of the repeat group
java.lang.Exception
public void restoreToTableContainer(int blkType,
int blkLookupId)
throws ContainerException,
PdccDbException
blkType - blockette type of the object being restoredblkLookupId - lookup ID of the object being restored
ContainerException
PdccDbExceptionpublic static void main(java.lang.String[] args)
protected void padLogical()
padLogical in class ExportBuilderprotected void padPhysical()
padPhysical in class ExportBuilder
protected void packToRecord()
throws java.lang.Exception
packToRecord in class ExportBuilderjava.lang.Exception
protected boolean checkTrigger(java.lang.String s)
throws java.lang.Exception
checkTrigger in class ExportBuilderjava.lang.Exception
protected void volumeFinish()
throws BuilderException
volumeFinish in class ExportBuilderBuilderException
protected void startNewLogical(SeedObject obj,
boolean continuation)
throws java.lang.Exception
startNewLogical in class ExportBuilderjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||