|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.AbleObject | +--com.ibm.able.beans.AbleDBExport
AbleDBExport provides Able beans with the ability to write data to to a database table using JDBC interfaces.
Field Summary | |
---|---|
static java.lang.String |
defaultName
Value assigned to name by default. |
Fields inherited from class com.ibm.able.AbleObject |
---|
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
Constructor Summary | |
---|---|
AbleDBExport()
Construct a default AbleDBImport object. |
|
AbleDBExport(java.lang.String name)
Construct an AbleDBImport object with a specified name. |
Method Summary | |
---|---|
void |
close()
Override the superclass Close so that the connection is closed before calling super.close(). |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
int |
delete(java.util.Map map)
Delete selected records from the current table. |
int |
delete(java.lang.String whereString)
Delete selected records from the current table. |
void |
erase()
Drop the current table and close the connection. |
java.lang.String[] |
getColumnNames()
|
java.sql.Connection |
getConnection()
|
java.lang.String |
getDatabase()
|
java.lang.String |
getDriver()
|
int |
getNumberOfInputFields()
Returns the number of inputs provided to this output device. |
java.lang.String |
getProtocol()
|
java.lang.String |
getProtocolURL()
|
java.lang.String |
getSchema()
|
java.lang.String |
getSchemaTable()
Method getSchemaTable. |
java.lang.String |
getSubprotocol()
|
java.lang.String |
getTable()
|
java.lang.String |
getUserid()
|
void |
init()
Overrides the superclass init so that a connection is created before running the superclass init. |
boolean |
isCreatable()
Returns the creatable table flag. |
boolean |
isReady()
Method isReady. |
void |
open()
Create the connection needed to write data to a database table. |
void |
process()
Write out the contents of the parameter to the data file. |
java.lang.Object |
process(java.lang.Object buffer)
Write out the contents of inputBuffer to file using specified delimiter. |
void |
processAbleEvent(AbleEvent theEvent)
Extract the argument object from an AbleEvent and output it to the data file. |
void |
quitAll()
Close any open connections. |
void |
reset()
Re-initialize the bean Close and reopen the output file. |
void |
setCreatable(boolean createIfNeeded)
Sets the the creatable table flag. |
void |
setDatabase(java.lang.String database)
|
void |
setDriver(java.lang.String driver)
|
void |
setNumberOfInputs(int inputs)
Sets the number of inputs to be provided to this output device. |
void |
setPassword(java.lang.String password)
|
void |
setProtocol(java.lang.String protocol)
|
void |
setSchema(java.lang.String schema)
|
void |
setSubprotocol(java.lang.String subprotocol)
|
void |
setTable(java.lang.String table)
|
void |
setUserid(java.lang.String userid)
|
int |
update(java.util.Collection buffer,
java.lang.String whereString)
Update the selected record. |
int |
update(double[] buffer,
java.lang.String whereString)
Update the selected record. |
int |
update(java.util.Map valueMap,
java.util.Map whereMap)
Update selected records from the current table. |
int |
update(java.lang.Object[] buffer,
java.lang.String whereString)
Update the selected record. |
int |
update(java.lang.String[] buffer,
java.lang.String whereString)
Update the selected record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.able.AbleBean |
---|
getComment, getLogger, getName, getParent, getState, getTraceLogger, init, isChanged, removeAllConnections, resumeAll, setChanged, setComment, setLogger, setName, setParent, setState, setTraceLogger, suspendAll |
Methods inherited from interface com.ibm.able.AbleEventListener |
---|
handleAbleEvent |
Methods inherited from interface com.ibm.able.AbleEventListenerManager |
---|
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener |
Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
---|
processNoEventProcessingEnabledSituation, processTimerEvent |
Methods inherited from interface com.ibm.able.AblePropertyChangeManager |
---|
addPropertyChangeListener, addPropertyConnection, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection |
Methods inherited from interface com.ibm.able.AbleSerializable |
---|
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName |
Field Detail |
public static final java.lang.String defaultName
Constructor Detail |
public AbleDBExport() throws AbleException
public AbleDBExport(java.lang.String name) throws AbleException
name
- A String containing the name used to identify this bean.Method Detail |
public void open() throws AbleException
AbleAbstractImport.open()
public void init() throws AbleException
init
in interface AbleBean
init
in class AbleObject
AbleAbstractImport.init()
public void close() throws AbleException
AbleAbstractImport.close()
public int getNumberOfInputFields()
AbleDataSink
getNumberOfInputFields
in interface AbleDataSink
com.ibm.able.AbleDataSink
public void setNumberOfInputs(int inputs)
AbleDataSink
setNumberOfInputs
in interface AbleDataSink
com.ibm.able.AbleDataSink
count
- The number of inputs required by this output device.public void process() throws AbleException
process
in interface AbleBean
process
in class AbleObject
com.ibm.able.AbleBean
AbleException
- If an error occurs.public java.lang.Object process(java.lang.Object buffer) throws AbleException
process
in interface AbleBean
process
in class AbleObject
com.ibm.able.AbleBean
theArg
- An Object used to provide data for the bean derive a result.AbleException
- If an error occurs.public java.lang.String getSchemaTable()
public void quitAll() throws AbleException
quitAll
in interface AbleBean
quitAll
in class AbleObject
close()
public int delete(java.lang.String whereString) throws AbleException
whereString
- String of selection criteria to be included after the SQL WHERE keyword.public int delete(java.util.Map map) throws AbleException
map
- Map containing a keyString of selection criteria to be included after the SQL WHERE keyword.public int update(java.lang.String[] buffer, java.lang.String whereString) throws AbleException
buffer
- The new values for the record fields in sequence.whereString
- String of selection criteria to be included after the SQL WHERE keyword.
May be null to update all records.public int update(double[] buffer, java.lang.String whereString) throws AbleException
buffer
- The new values for the record fields in sequence.whereString
- String of selection criteria to be included after the SQL WHERE keyword.
May be null to update all records.public int update(java.lang.Object[] buffer, java.lang.String whereString) throws AbleException
buffer
- The new values for the record fields in sequence.whereString
- String of selection criteria to be included after the SQL WHERE keyword.
May be null to update all records.public int update(java.util.Collection buffer, java.lang.String whereString) throws AbleException
buffer
- The new values for the record fields in sequence.whereString
- String of selection criteria to be included after the SQL WHERE keyword.
May be null to update all records.public int update(java.util.Map valueMap, java.util.Map whereMap) throws AbleException
valueMap
- A Map containing a keyString of column name and value to be included after the SQL SET keyword.whereMap
- A Map containing a keyString of selection criteria to be included after the SQL WHERE keyword.
May be null. The selection will be connected with AND.public void erase() throws AbleException
public void reset() throws AbleException
reset
in interface AbleBean
reset
in class AbleObject
com.ibm.able.AbleBean
AbleException
- If an error occurs.public void processAbleEvent(AbleEvent theEvent) throws AbleException
processAbleEvent
in interface AbleEventQueueProcessor
processAbleEvent
in class AbleObject
theEvent
- An AbleEvent containing the data to be written to file.public java.lang.String getDriver()
public void setDriver(java.lang.String driver)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
public java.lang.String getSubprotocol()
public void setSubprotocol(java.lang.String subprotocol)
public java.sql.Connection getConnection()
public java.lang.String[] getColumnNames()
public java.lang.String getDatabase()
public void setDatabase(java.lang.String database)
public java.lang.String getProtocolURL()
public java.lang.String getUserid()
public void setUserid(java.lang.String userid)
public void setPassword(java.lang.String password)
public java.lang.String getSchema()
public void setSchema(java.lang.String schema)
public java.lang.String getTable()
public void setTable(java.lang.String table)
public boolean isCreatable()
public void setCreatable(boolean createIfNeeded)
creatable
- The creatable value to set.public boolean isReady() throws AbleException
isReady
in interface AbleDataSink
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |