public class DTFileRecords extends DTFile
| Constructor and Description |
|---|
DTFileRecords(BBjString filename!)Constructors |
DTFileRecords(DTFileRecords fileRecords!) |
DTFileRecords(DTJsonObject formData!) |
DTFileRecords(BBjString filename!, BBjString par$) |
DTFileRecords(DTJsonObject formData!, BBjInt audit%) |
DTFileRecords(BBjString cc$, BBjString DDName$, BBjString par$) |
DTFileRecords(DTJsonObject formData!, BBjInt audit%, HashMap update!) |
close, defineArchiveFile, defineDownloadTxtFile, defineIdenticalFile, defineWorkFile, fileExists, getActiveKnum, getActiveKnum, getBaseName, getChan, getDescription, getErrMsg, getFieldNames, getFileContents, getFileContents, getFileContentsUTF8, getFileName, getFileSize, getFileSize, getFileSize, getFileType, getKeyFieldName, getKeyFieldNames, getKeyFieldNames, getKeyFieldTitle, getKeyPad, getKeyPad, getKeyPadLast, getKeyPadLast, getKeySize, getKeySizes, getKgen, getLastKey, getLastKeyAsInt, getMaxKnum, getReadChan, getReadFileName, getReadFileType, getReadKgen, getReadTemplate, getRec, getRecordCount, getRecSize, getRecsUsed, getTemplate, getTpl, getType, getWorkFile, getWorkFileChan, getWorkFileTemplate, getXfin, initialize, isFts, reOpen, replaceFileContents, setErrMsg, setKnum0, setKnum0, setRec, setTemplate public DTFileRecords(BBjString filename!)Constructors
public DTFileRecords(DTFileRecords fileRecords!)public DTFileRecords(DTJsonObject formData!)public DTFileRecords(DTJsonObject formData!, BBjInt audit%)public DTFileRecords(DTJsonObject formData!, BBjInt audit%, HashMap update!)public BBjInt addUniqueRecord(BBjTemplatedString rec!)public BBjInt addUniqueRecord(BBjString p_rec!)public BBjInt countRecs(BBjNumber limit)
public BBjVector getAllRecords()public TreeMap getAllRecordsAsMap()public TreeMap getAllRecordsAsMap(boolean trimKey!)public BBjString getBotKey()public BBjVector getChanges()Instance methods
public BBjString getCondition()public HashMap getFieldFromAllRecordsAsHashMap(BBjString fieldName$)
public HashMap getFieldFromAllRecordsAsHashMap(BBjString fieldName$, Boolean trimKey!)
public BBjString getFileContents()public BBjString getFilePosition()public BBjVector getFirstPage()public BBjString getKeyFieldName()public static BBjString getKeyFieldsAsText(BBjNumber chan, BBjString rec$, BBjNumber knum)
public BBjString getKeyFromRec(BBjTemplatedString rec!)
public BBjString getKeyFromRec(BBjTemplatedString rec!, BBjNumber knum)
public BBjString getKeyPre()public BBjNumber getKnum()public BBjVector getLastPageCondition()public BBjTemplatedString getNextRecord()public Boolean getOneRecord(BBjTemplatedString rec!)public BBjString getReadKeyPre()public BBjNumber getReadKnum()public static BBjTemplatedString getRecord(BBjString fileName$, BBjInt knum%, BBjString key$)
public BBjTemplatedString getRecord(BBjNumber knum!, BBjString key!)
public BBjTemplatedString getRecordByHexkey(BBjString hexkey!)
public BBjInt getRecsPerPage()
public BBjString getSingleRecordFilePosition()public BBjString getSortby()public BBjString getTopKey()public BBjString getWhere()public Boolean hasFirstPage()
public Boolean hasLastPage()
public Boolean hasNextPage()
public Boolean hasPrevPage()
public boolean mapFields(BBjTemplatedString rec!, DTJsonArray fields!)
public boolean mapFields(BBjTemplatedString rec!, DTJsonArray fields!, boolean skipNotFound!)
public BBjVector processFts()public BBjVector processSelect()public Boolean recordExists(BBjString key!)public BBjString removeRecord(BBjTemplatedString rec!)
public boolean removeRecord(BBjInt knum%, BBjString key$)public BBjInt removeRecords(BBjInt knum%, BBjString pre$)public BBjVector selectRecords()public void setCondition(BBjString condition!)public void setFilePosition(BBjString filePosition!)public void setKeyPre(BBjNumber knum!, BBjString keyPre!)Accessor methods (getters / setters)
public void setKeyPre(BBjString keyPre!)public void setKnum(BBjNumber knum!)
public void setRecordsLimit(BBjInt recordsLimit%)
public void setRecsPerPage(BBjInt recsPerPage%)
public void setSortby(BBjString sortby!)public void setWhere(BBjString where!)public Boolean writeNewRecord(BBjTemplatedString rec!)public Boolean writeNewRecord(BBjString rec$)public Boolean writeRecord(BBjTemplatedString rec!)public Boolean writeRecord(BBjString rec$)public Boolean writeRecords(BBjVector recs!)