|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject org.xBaseJ.rmi.DBF
public class DBF
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Fields inherited from interface org.xBaseJ.rmi.DBFInterface |
---|
serviceName |
Constructor Summary | |
---|---|
DBF(java.lang.String inDBFName)
Constructor |
Method Summary | |
---|---|
void |
close()
closes the database |
void |
delete()
marks the current records as deleted |
boolean |
deleted()
returns true if record is marked for deletion |
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 |
getCurrentRecordNumber()
returns the current record number |
FieldInterface |
getField(int i)
returns a Field type by its relative position |
FieldInterface |
getField(java.lang.String name)
returns a Field type by its name in the database |
int |
getFieldCount()
returns the number of fields in a database |
int |
getRecordCount()
returns the number of records in a database |
void |
gotoRecord(int 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 |
void |
startBottom()
used to position record pointer at the last record or index in the database when done the record pointer will be changed. |
void |
startTop()
used to position record pointer at the first record or index in the database when done the record pointer will be changed. |
void |
undelete()
marks the current records as not deleted |
void |
update()
updates the record at the current position |
void |
useIndex(java.lang.String filename)
opens an Index file associated with the database. |
void |
useTag(java.lang.String tagname)
associates all Index operations with an existing tag |
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.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DBF(java.lang.String inDBFName) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public int getFieldCount() throws java.rmi.RemoteException
getFieldCount
in interface DBFInterface
java.rmi.RemoteException
public int getRecordCount() throws java.rmi.RemoteException
getRecordCount
in interface DBFInterface
java.rmi.RemoteException
public int getCurrentRecordNumber() throws java.rmi.RemoteException
getCurrentRecordNumber
in interface DBFInterface
java.rmi.RemoteException
public void useIndex(java.lang.String filename) throws java.rmi.RemoteException
useIndex
in interface DBFInterface
filename
- an existing ndx file(can be full or partial pathname) or mdx tag
java.rmi.RemoteException
- org.xBaseJ Fields defined in index do not match fields in databasepublic void useTag(java.lang.String tagname) throws java.rmi.RemoteException
useTag
in interface DBFInterface
tagname
- an existing tag name in the production MDX file
java.rmi.RemoteException
- no MDX file
tagname not foundpublic boolean find(java.lang.String keyString) throws java.rmi.RemoteException
find
in interface DBFInterface
keyString
- a search string
java.rmi.RemoteException
- org.xBaseJ no Indexs opened with databasepublic void findNext() throws java.rmi.RemoteException
findNext
in interface DBFInterface
java.rmi.RemoteException
- org.xBaseJ Index not opened or not part of the database
eof - end of filepublic void findPrev() throws java.rmi.RemoteException
findPrev
in interface DBFInterface
java.rmi.RemoteException
- org.xBaseJ Index not opened or not part of the database
tof - top of filepublic void read() throws java.rmi.RemoteException
read
in interface DBFInterface
java.rmi.RemoteException
- usually the end of file conditionpublic void readPrev() throws java.rmi.RemoteException
readPrev
in interface DBFInterface
java.rmi.RemoteException
- usually the top of file conditionpublic void gotoRecord(int recno) throws java.rmi.RemoteException
gotoRecord
in interface DBFInterface
recno
- the relative position of the record to read
java.rmi.RemoteException
- passed an negative number, 0 or value greater than the number of records in databasepublic void startTop() throws java.rmi.RemoteException
startTop
in interface DBFInterface
java.rmi.RemoteException
- most likely no records in databasepublic void startBottom() throws java.rmi.RemoteException
startBottom
in interface DBFInterface
java.rmi.RemoteException
- most likely no records in databasepublic void write() throws java.rmi.RemoteException
write
in interface DBFInterface
java.rmi.RemoteException
- any one of several errorspublic void update() throws java.rmi.RemoteException
update
in interface DBFInterface
java.rmi.RemoteException
- any one of several errorspublic void delete() throws java.rmi.RemoteException
delete
in interface DBFInterface
java.rmi.RemoteException
- usually occurs when no record has been readpublic void undelete() throws java.rmi.RemoteException
undelete
in interface DBFInterface
java.rmi.RemoteException
- usually occurs when no record has been read.public boolean deleted() throws java.rmi.RemoteException
deleted
in interface DBFInterface
java.rmi.RemoteException
public void close() throws java.rmi.RemoteException
close
in interface DBFInterface
java.rmi.RemoteException
public FieldInterface getField(int i) throws java.rmi.RemoteException
getField
in interface DBFInterface
i
- Field number
java.rmi.RemoteException
- Field name is not correctpublic FieldInterface getField(java.lang.String name) throws java.rmi.RemoteException
getField
in interface DBFInterface
name
- Field name
java.rmi.RemoteException
- Field name is not correct
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |