public final class ReconResultWriter extends AbstractResultWriter
Usage:
ReconResultWriter rrW = new ReconResultWriter(); // declare, initialize rrW.init(); // start rrW.setValue("an attribute", "a value"); // must be found within reconresult schema rrW.write(dbShortcut); // write out, via psdi.mbo.DBShortcut dbShortcut
Constructor and Description |
---|
ReconResultWriter() |
Modifier and Type | Method and Description |
---|---|
int |
getDataType(java.lang.String tableName,
java.lang.String columnName)
Returns the datatype of the column name present in table.
|
java.lang.String |
getTableName()
Returns the name of the recon result table.
|
java.lang.String |
getUIDColumnname()
Returns the unique identifier of the unique id column.
|
void |
setValue(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets the value for an attribute to be written out to the table.
|
void |
write(DBShortcut dbShortcut)
Writes out the values to the reconresult table.
|
getValue, init, setReconInfo
public java.lang.String getTableName()
getTableName
in class AbstractResultWriter
public java.lang.String getUIDColumnname()
getUIDColumnname
in class AbstractResultWriter
public int getDataType(java.lang.String tableName, java.lang.String columnName) throws java.rmi.RemoteException
java.rmi.RemoteException
SqlFormat.getDataType(String tableName, String columnName)
public void setValue(java.lang.String attributeName, java.lang.Object attributeValue) throws MXException, java.rmi.RemoteException
setValue
in interface ResultWriter
setValue
in class AbstractResultWriter
attributeName
- -
the name of the attribute.attributeValue
- -
the value that goes with the attribute name.MXException
- -
throws by the method.java.rmi.RemoteException
- -
thrown by the method.public void write(DBShortcut dbShortcut) throws java.rmi.RemoteException, MXException
write
in interface ResultWriter
write
in class AbstractResultWriter
dbShortcut
- -
the db connection provider.java.rmi.RemoteException
- -
thrown by the method.MXException
- -
thrown by the method.