|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iris.Fissures.seed.director.ImportDirector
edu.iris.dmc.pdcc.director.PdccDbImportDirector
Import Director class for importing data from a database following the PDCC schema.
| Field Summary |
| Fields inherited from class edu.iris.Fissures.seed.director.ImportDirector |
builder, fixedRecordLength, inStream, maxRecordLength, outputString, readBuffer, recCount, recLen, record, recordOffset, streamOpen |
| Constructor Summary | |
PdccDbImportDirector()
This variant is not used and is only indicated for compatibility with its superclass. |
|
PdccDbImportDirector(ObjectBuilder builder)
This variant is not used and is only indicated for compatibility with its superclass. |
|
PdccDbImportDirector(ObjectBuilder builder,
java.lang.String configFile,
java.lang.String sessionConfigName,
PdccTableContainer tblContainer)
Same as previous except that the field mapper object is not indicated and must be specified after instantiation with assignFieldMapper(). |
|
PdccDbImportDirector(ObjectBuilder builder,
java.lang.String configFile,
java.lang.String sessionConfigName,
PdccTableContainer tblContainer,
FieldMapper mapper)
Same as previous except that the database configuration is not indicated, so a default database configuration, determined by the session configuration name. |
|
PdccDbImportDirector(ObjectBuilder builder,
java.lang.String configFile,
java.lang.String sessionConfigName,
java.lang.String dbConfigName,
PdccTableContainer tblContainer,
FieldMapper mapper)
Create director that registers to an indicated Object Builder, uses the configuration in the indicated file, uses the configuration from the indicated session name, connects to the database using the configuration identified by the database configuration name, and maps to objects using the indicated field mapper object. |
|
| Method Summary | |
void |
assignFieldMapper(FieldMapper mapper)
used to establish the specific concrete mapper class which should be in line with the object builder. |
int |
build()
Prepare a call to the registered builder to construct an object. |
int |
build(FieldMapper mapper)
Prepare a call to the registered builder to construct an object. |
int |
construct(int categoryNum)
Constructs all objects from the database pertaining to a particular category number. |
int |
construct(edu.iris.dmc.pdcc.director.PdccDbImportDirector.PdccQueryBlock queryObj)
Constructs objects from the database query process. |
int |
construct(edu.iris.dmc.pdcc.director.PdccDbImportDirector.PdccQueryBlock queryObj,
boolean getChildren)
Constructs objects from the database query process. |
int |
construct(java.lang.String tableName,
int keyNum)
Constructs objects from the database query process. |
int |
constructChildren(PdccObject parentObj)
Accepts a PdccObject as the parent object...children will be loaded as relates to this parent. |
int |
constructChildren(java.lang.String parentTableName,
int parentPKey,
int parentLookupId,
boolean setParent)
Construct child tables from the database which point to the parent table in parentTableName with primary key equal to parentPKey. |
java.lang.String |
getQuerySortString(java.lang.String tableName)
Return an ORDER BY string that consists of the prominent blockette fields in the listed order as provided by PdccObjectLabelMap.getFieldLabels(int blkType). |
int |
getRecLen()
This is an implementation of an abstract method. |
static void |
main(java.lang.String[] args)
Main method for testing. |
| Methods inherited from class edu.iris.Fissures.seed.director.ImportDirector |
assignBuilder, close, construct, construct, getBuilder, open, read, read, setRecLen |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PdccDbImportDirector(ObjectBuilder builder,
java.lang.String configFile,
java.lang.String sessionConfigName,
java.lang.String dbConfigName,
PdccTableContainer tblContainer,
FieldMapper mapper)
throws java.lang.Exception
public PdccDbImportDirector(ObjectBuilder builder,
java.lang.String configFile,
java.lang.String sessionConfigName,
PdccTableContainer tblContainer,
FieldMapper mapper)
throws java.lang.Exception
public PdccDbImportDirector(ObjectBuilder builder,
java.lang.String configFile,
java.lang.String sessionConfigName,
PdccTableContainer tblContainer)
throws java.lang.Exception
public PdccDbImportDirector(ObjectBuilder builder)
public PdccDbImportDirector()
| Method Detail |
public void assignFieldMapper(FieldMapper mapper)
public int construct(int categoryNum)
throws java.lang.Exception
java.lang.Exception
public int construct(java.lang.String tableName,
int keyNum)
throws java.lang.Exception
java.lang.Exception
public int construct(edu.iris.dmc.pdcc.director.PdccDbImportDirector.PdccQueryBlock queryObj)
throws java.lang.Exception
java.lang.Exception
public int construct(edu.iris.dmc.pdcc.director.PdccDbImportDirector.PdccQueryBlock queryObj,
boolean getChildren)
throws java.lang.Exception
java.lang.Exception
public int constructChildren(java.lang.String parentTableName,
int parentPKey,
int parentLookupId,
boolean setParent)
throws java.lang.Exception
java.lang.Exception
public int constructChildren(PdccObject parentObj)
throws java.lang.Exception
java.lang.Exception
public int build(FieldMapper mapper)
throws java.lang.Exception
java.lang.Exception
public int build()
throws java.lang.Exception
build in class ImportDirectorjava.lang.Exception
public int getRecLen()
throws java.lang.Exception
getRecLen in class ImportDirectorjava.lang.Exception
public java.lang.String getQuerySortString(java.lang.String tableName)
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||