|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xBaseJ.Client.DBF
Constructor Summary | |
DBF(java.lang.String inDBFname,
java.lang.String inhost,
int inport)
opens a DBF at the server |
Method Summary | |
void |
close()
closes the database NOT FULLY IMPLEMENTED |
void |
delete()
marks the current records as deleted |
boolean |
deleted()
|
boolean |
find(java.lang.String keyString)
used to find a record with an equal or greater string value when done the record pointer and field contents will be changed |
void |
findNext()
used to get the next record in the Index list when done the record pointer and field contents will be changed |
void |
findPrev()
used to get the previous record in the Index list when done the record pointer and field contents will be changed |
int |
fldcount()
Deprecated. use getFieldCount |
int |
getCurrentRecordNumber()
|
Field |
getField(int i)
|
Field |
getField(java.lang.String name)
|
int |
getFieldCount()
|
java.lang.String |
getName()
|
int |
getRecordCount()
|
void |
gotoRecord(long recno)
used to read a record at a particular place in the database when done the record pointer and field contents will be changed |
void |
read()
used to read the next record, after the current record pointer, in the database when done the record pointer and field contents will be changed |
void |
readPrev()
used to read the previous record, before the current record pointer, in the database when done the record pointer and field contents will be changed |
int |
reccount()
Deprecated. use getRecordCount |
int |
recno()
Deprecated. use getCurrentRecordNumber |
void |
setLock(boolean lockSwitch)
locks/unlocks the whole table |
void |
setRecordLock(boolean lockSwitch)
locks/unlocks the current record. |
void |
undelete()
marks the current records as not deleted |
void |
update()
updates the record at the current position |
void |
useIndex(java.lang.String name)
opens an index associated with the database |
void |
useTag(java.lang.String name)
assigns Tag associated with the database used in find, findnext and findprev Tags are not defined in the dbfs.dbf file |
void |
write()
used to write a new record in the database when done the record pointer is at the end of the database |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DBF(java.lang.String inDBFname, java.lang.String inhost, int inport) throws xBaseJException, java.io.IOException, java.net.UnknownHostException
DBFname
- database as defined on the serverinhost
- host name or ip addressinport
- host listening portMethod Detail |
public void setLock(boolean lockSwitch) throws xBaseJException, java.io.IOException
lockSwitch
- - true - lock the table, false - unlockpublic void setRecordLock(boolean lockSwitch) throws xBaseJException, java.io.IOException
lockSwitch
- - true - lock the record, false - unlockpublic void useIndex(java.lang.String name) throws xBaseJException, java.io.IOException
indexname
- an existing index as defined in Server's dbfs.dbfpublic void useTag(java.lang.String name) throws xBaseJException, java.io.IOException
Tag
- as defined in the MDX File.public boolean find(java.lang.String keyString) throws xBaseJException, java.io.IOException
keyString
- a search stringpublic void findNext() throws xBaseJException, java.io.IOException
public void findPrev() throws xBaseJException, java.io.IOException
public int fldcount()
public int recno()
public int reccount() throws xBaseJException, java.io.IOException
public int getFieldCount()
public int getCurrentRecordNumber()
public int getRecordCount() throws xBaseJException, java.io.IOException
public void read() throws xBaseJException, java.io.IOException
public void readPrev() throws xBaseJException, java.io.IOException
public void gotoRecord(long recno) throws xBaseJException, java.io.IOException
recno
- the relative position of the record to readpublic void write() throws xBaseJException, java.io.IOException
public void update() throws xBaseJException, java.io.IOException
public void delete() throws java.io.IOException, xBaseJException
public void undelete() throws java.io.IOException, xBaseJException
public void close() throws java.io.IOException, xBaseJException
public Field getField(int i) throws java.lang.ArrayIndexOutOfBoundsException, xBaseJException
i
- Field numberpublic Field getField(java.lang.String name) throws xBaseJException, java.lang.ArrayIndexOutOfBoundsException
name
- Field namepublic java.lang.String getName()
public boolean deleted() throws java.io.IOException, xBaseJException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |