public abstract class AbstractResultWriter extends java.lang.Object implements ResultWriter
Constructor and Description |
---|
AbstractResultWriter() |
Modifier and Type | Method and Description |
---|---|
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. |
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 ResultWriter
userInfo
- -
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 ResultWriter
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
setValue()
method calls.write
in interface ResultWriter
dbShortcut
- -
the db connection provider.java.rmi.RemoteException
- -
thrown by the method.MXException
- -
thrown by the method.