org.jSyncManager.API.Conduit.Tools
Class DateBookDBCSV
public class DateBookDBCSV
This is a synchronization JConduit for a CSV document from the DateBookDB database.
The records are repeated in the case of the record.hasExceptions(), because
the CSV document cannot be more than 2-dimensional. Therefore, the complete
record is repeated for each exception.
When the document is read into the DateBookCSV object, a check is made on the
next record through the exceptionno column, to see if the next record should
be included as an exception within the first record of its type. If the
exceptionno column is 0, a new record is begun.
elementAt, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, getCell, getDocument, getHeaderrows, getReader, getRowNo, getSeparator, getValue, isShowtitles, parse, parse, parse, parse, parseRow, parseTitleRow, parseTypeRow, readBooleanCell, readByteArrayCell, readByteCell, readCalendarCell, readCharArrayCell, readCharCell, readDocument, readDoubleArrayCell, readDoubleCell, readFloatArrayCell, readFloatCell, readIntArrayCell, readIntCell, readLongArrayCell, readLongCell, readStringArrayCell, readStringCell, setDocument, setElementAt, setElementAt, setHeaderrows, setReader, setReader, setReader, setSeparator, setShowtitles, writeDataRow, writeDocument, writeDocument |
CSVNAME
public static String CSVNAME
Name of CSV record type.
record
public DateBookRecord record
Transient copy of DateBookRecord input.
DateBookDBCSV
public DateBookDBCSV()
Create new default, empty DateBookDBCSV
DateBookDBCSV
public DateBookDBCSV(File document)
throws java.io.IOExceptionCreate new DateBookDBSCSV from File document.
DateBookDBCSV
public DateBookDBCSV(InputStreamReader inputfile)
throws java.io.IOExceptionCreate new DateBookDBCSV with InputStreamReader stream input.
inputfile - InputStreamReader input stream.
DateBookDBCSV
public DateBookDBCSV(DateBookRecord rec)
Create new DateBookDBCSV with DateBookRecord input.
insertRecord
public void insertRecord(DateBookRecord rec)
Insert record into the CSV document.
rec - DateBookRecord input.
insertTitles
public int insertTitles(DateBookRecord rec)
Insert titles columns from the DateBookRecord.
rec - DateBookRecord input.
- Number of columns in the record.
insertTypes
public int insertTypes(DateBookRecord rec)
Insert column data types.
rec - DateBookRecord input.
- Number of columns in the record.
readDocument
public void readDocument(InputStreamReader inputfile)
throws java.io.IOExceptionRead JSCSVDocument document contents into the CSV document.
- readDocument in interface DLPRecordCSV
inputfile - InputStreamReader stream input.