|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dao.core.AbstractWriter
Parcial implementation of the Writer interface. Company MoreData
| Field Summary | |
protected DAOFieldsInfo |
_fieldsInfo
DAOFieldsInfo object with information about DAO columns and tables. |
protected WriterInformation |
_info
Aditional information to build the SQL command. |
protected RecordSet |
_recordSet
DAO RecordSet. |
| Constructor Summary | |
AbstractWriter(DAOFieldsInfo fieldsInfo,
RecordSet recordSet)
Creates a new instance of AbstractWriter |
|
| Method Summary | |
void |
setDAOFieldsInfo(DAOFieldsInfo fieldsInfo)
Set the DAOFieldsInfo object with information about the columns of the RecordSet. |
void |
setRecordSet(RecordSet recordSet)
Set the RecordSet that contains the data to be written to the repository. |
protected abstract void |
write()
Read all data from one table of the RecordSet and write it to the repository. |
void |
write(WriterInformation info)
Read all data from one table of the RecordSet and write it to the repository. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface pt.moredata.dao.Writer |
commit, delete, getAutoCommit, insert, rollback, setAutoCommit, update |
| Field Detail |
protected WriterInformation _info
protected DAOFieldsInfo _fieldsInfo
protected RecordSet _recordSet
| Constructor Detail |
public AbstractWriter(DAOFieldsInfo fieldsInfo,
RecordSet recordSet)
fieldsInfo - The DAO fields information object.recordSet - The DAO RecordSet object witch contains the DAO data.| Method Detail |
protected abstract void write()
throws WriterException
WriterException - If an error occur will writing data
to the repository.public void setDAOFieldsInfo(DAOFieldsInfo fieldsInfo)
setDAOFieldsInfo in interface WriterfieldsInfo - The DAOFieldInfo object.public void setRecordSet(RecordSet recordSet)
setRecordSet in interface WriterrecordSet - The RecorSet object with information to be written.
public void write(WriterInformation info)
throws WriterException
write in interface Writerinfo - Adicional information to help writing to the Repository
WriteException - If an error occur will writing data
to the repository.
WriterException - If an error occur will writing data
to the repository.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||