public abstract class AbstractResultWriter extends java.lang.Object implements ResultWriter
| Constructor and Description |
|---|
AbstractResultWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildSQLF()
Builds the SQL string to be used in writing to the database.
|
abstract java.lang.String |
getTableName()
Returns the name of the table for a particular ResultWriter.
|
abstract java.lang.String |
getUIDColumnname() |
java.lang.String |
getValue(java.lang.String attribute)
Retrieves the value for the given attribute
|
void |
init(ReconInfo reconInfo)
Initializes the class.
|
void |
setReconInfo(ReconInfo reconInfo) |
void |
setValue(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets the value for an attribute name (such as ASSETNUM, for instance.)
|
void |
write(DBShortcut dbShortcut)
Writes out the compiled SQL statement created by the
setValue() method calls. |
protected ReconInfo reconInfo
public abstract java.lang.String getTableName()
public abstract java.lang.String getUIDColumnname()
public void init(ReconInfo reconInfo) throws MXException, java.rmi.RemoteException
init in interface ResultWriteruserInfo - -
the user info.MXException - -
thrown by the method.java.rmi.RemoteException - -
thrown by the method.public void setReconInfo(ReconInfo reconInfo)
public java.lang.String getValue(java.lang.String attribute)
attribute - The name of the attribute whose value is to be retrievedpublic void setValue(java.lang.String attributeName,
java.lang.Object attributeValue)
throws MXException,
java.rmi.RemoteException
setValue in interface ResultWriterattributeName - -
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
setValue() method calls.write in interface ResultWriterdbShortcut - -
the db connection provider.java.rmi.RemoteException - -
thrown by the method.MXException - -
thrown by the method.protected void buildSQLF()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException