xBaseJ-xBase(dBase) Access
For Java V.1.6.0 released!
|
American Coders, Ltd.
Post Office Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
support@americancoders.com
http://www.americancoders.com
American Coders just released xBaseJ-xBase(dBase)
Access For Java V.1.6.0 (xdbfj160.zip, 307,689k) and the archive was uploaded onto
Hobbes.
Provides classes and methods to access dbase
III, IV and Vformat files, DBF, DBT, NDX and MDX extensions. All classes and methods
are written in pure Java.
Note:
"we have not applied for the pure Java test
from JavaSoft/Sun"
Four classes of interest:
1. dbf - provides methods for accessing the
dbase file via Java's
RandomAccessFile class.
2. server - provides server machine interface via sockets.
3. client\dbf - provides methods for accessing remote dbase files
from a client machine.
4. ndx - provides methods for accessing dbase NDX files.
5. dbfShow - simple java frame routine for viewing data in a dbase
file.
5. dbfHTML - simple java application to create a HTML report of a
dbf file.
Other classes of interest:
1. field - not an interface but a class with
which subclasses
provide strong typing.
2. charField.
3. dateField.
4. logicalField.
5. memoField.
6. numField.
7. floatField.
Other files included:
1. Sample Java and NetRexx programs.
2. jbrowse.zip - a dbf browser.
3. Registration information.
Known bugs:
Problem with numeric and date index fields with MDX tags.
For the
time being, it's best just to use character fields for tags.
Comments please:
1. We are currently thinking for of creating a row/record
class.
2. Others...
mailto:jmcverry@americancoders.com
Installation:
1. Unzip xdbfj152.zip into a unique directory. If you're reading
this you have already unzipped.
2. Add the file xBaseJ.zip to your classpath.
3. To test try the dbfShow class against the supplied test.dbf
- java dbfShow
You will be prompted via the FileDialog for the filename.
----------------------------------------------------------------------
java version compiled with:
JAVA.EXE version "JDK 1.1.4 IBM build o114-19980509"
----------------------------------------------------------------------
Caveats:
Program has only been tested on the Intel machine platform
(System.getProperty("os.arch").compareTo("x86") == 0)
Any problems you experience should be reported as soon as possible.
This is not a JDBC/ODBC interface.
Sample programs:
Included are two groups of sample programs.
Each group contains
the same three programs
Java group:
1. createDBFS.java - creates the dbfs.dbf database.
This dbf
is used by the Server class to determine what files are
available to the client class.
2. testread.java - will dump a dbf out.
3. pack.java - will pack a dbf (remove records marked as
deleted).
NetRexx group:
1. createDBFS.nrx - creates the dbfs.dbf database.
This dbf
is used by the Server class to determine what files are
available to the client class.
2. testread.nrx - will dump a dbf out.
3. pack.nrx - will pack a dbf (remove records marked as deleted).
- NetRexx is a dialect of Java that fully supports the
java language. For more information go to
http://www2.hursley.ibm.com/netrexx/
May 31, 1998
Release 1.6.0
1. Removed all references to deprecated 1.0.x JAVA methods.
2. Added readonly capability to DBF and associated files.
3. The find method now returns a boolean, if it returns true then the
exact key was found
4. Added table and record locking in Server package. Locking is not
used by the stand-alone version.
5. Snareware version of package expires 1998-10-31.
----------------------------------------------------------------------
March 31, 1998
Release 1.5.2
1. Update logic inserted duplicate index and tag values.
2. Introduced new class FloatField for Borland's dBase IV.
3. Packing didn't reset current record pointer.
----------------------------------------------------------------------
March 15, 1998
Release 1.5.1
1. MDX Logic failed for some packing methods.
2. MDX tags left out of the Server class. Added useTagByID to DBF class.
3. NDX and MDX set position incorrectly at end of indexes.
----------------------------------------------------------------------
March 1, 1998
Release 1.5.0
1. Introduced two new private classes to handle dbase V mdx file format.
Applied classes to all index formats.
2. Improved mdx tag for tags defined as date and/or numeric.
3. Corrected problem with unique keys.
4. Corrected error with indexes at the cusp.
5. Regression test errors showed failures with dbase IV file formats.
----------------------------------------------------------------------
February 12, 1998
Release 1.4.3.. Released only to registered users.
1. Duplicate creating errors.
2. Removed debugging logic.
----------------------------------------------------------------------
February 11, 1998
Release 1.4.3.
1. Change NumField decpoint parameter from byte to int.
2. Add dbf method version. Returns current version of xBaseJ.
3. Corrected error with index values being 'unique'.
4. Left debugging code in classes that cause unnecessary output and exceptions.
5. Indexes not reliable when used immediately after packing.
----------------------------------------------------------------------
February 4, 1998
Release 1.4.2.
1. Internal Index Node classes - offset logic error.
----------------------------------------------------------------------
January 30, 1998.
Release 1.4.1.
1. findPrev sometimes returned with xBaseJExcepction - Bad Record
Number 0.
2. problem when creating ndx or mdx tags with data and then adding
more after create.
3. problem with unique flag - bug did the opposite checking.
4. added new method to create a DBF, constructor method accepts
DBASEIII/DBASEIV file format option. Option appears before
the destroy parameter. Original constructor to create a DBF
assumes dbase III file format.
5. added destroy option to createIndex method. Like the DBF
destroy parameter used to indicate OK to replace NDX file.
6. clean-up of documentation, expecially in the client classes.
7. reindex failed to add last group of indexs to tree.
8. added startTop and startBottom methods for index and record positioning.
9. added dbfHTML application.
-------------------
January 15, 1998
Release 1.4.0.
0. RENAMED ALL PUBLIC CLASESS TO FOLLOW JAVA CODING STANDARD.
1. Restarted numbering system using x.y.z format.
2. Corrected bug when creating DBT file dBase IV format - substring
index out of bounds
3. Added method getKeyFields to index class.
4. Corrected bug when packing a database in a different directory -
New dbf was empty and it left temp.tmp in the current directory.
5. Added file closing to dbt and index files when dbf closed and in
class finalize method.
6. Corrected packing bug - memoFields could not use the dbt file
unless class reinitialized.
7. Corrected bug for MAC/OS - skipBytes don't work if file is being
created and there is nowhere for skipBytes to go to.
8. Corrected bug with index - dbfs opened with one index had failure
writing/updating to index file.
9. Changed return from useIndex - some methods returned an index
object some had a void - all now return an index object.
-------------------
December 30, 1997
Release 1.3.1 Beta.
1. Replaced getName with getAbsolutePath in dbf class.
Used by dbt and mdx classes to get the path name for these files.
Problems occured when accessing a dbf not in the current path.
2. dbfShow now uses GridBagLayout instead of GridBag.
3. NDX and MDX logic error corrected.
-------------------
December 15, 1997
Release 1.30 Beta.
1. dBase IV file format support - dbt, dbf and mdx.
limitted mdx support - does not support logic in key
definition and others.
2. Changed the class behavior of ndx. You should now use
index class when referencing NDX files and MDX tags.
3. Clean up of minor bugs in previous releases.
-------------------
September 30, 1992
Release 1.20 Beta
1. Corrected dbfShow when used with Java 1.1
2. Correced dbfShow and added packing menu itme.
3. Corrected packing algorithm in DBF and DBT.
4. Added NDX file format
-------------------
September 15, 1997
Release 1.10 Beta
1. Release beta package.
-------------------
Future releases planned:
1. views.
2. sql.
3. jdbc interface.
4. Clipper files.
Copyright 1997-98 - American Coders, Ltd. Raleigh,
NC USA
All rights reserved.
American Coders, Ltd.
Post Office Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
sales@americancoders.com
http://www.americancoders.com
@Macarlo, Inc.
@Macarlo's Shareware & Web
OS/2
Java Lobby Member
Java Site Accredited
[TOP]
[HOME] [INDEX]