dbTalk Databases Forums  

JE and BDB Java Api

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss JE and BDB Java Api in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
costin
 
Posts: n/a

Default JE and BDB Java Api - 10-29-2005 , 07:44 AM






Hello.

I'm new to Berkley API and I'm trying to work with the Java API of both
standard and JE edition. I've seen that in most cases the API are
identical except the exception hierarchy were there are two different
packages - com.sleepycat.je and com.sleepycat.db. The exception classes
have the same name but different methods - is there any plan in the
future to unify these packages/classes as well?
Having different exception hierarchy forces the developer to duplicate
the code as there is no base class.


Reply With Quote
  #2  
Old   
mark@sleepycat.com
 
Posts: n/a

Default Re: JE and BDB Java Api - 10-31-2005 , 04:19 PM






Hello Costin,

It isn't just the exception hierarchy where the package names are
different -- the entire base API of both products are in separate
packages, com.sleepycat.je and com.sleepycat.db as you mention. For
example, we have com.sleepycat.je.Database and
com.sleepycat.db.Database. The part of the API that is almost
identical is the collections and bind packages, which are extensions to
the base API of both products.

No, we currently don't have any plans to make the APIs for these two
products identical, and we have not intended for a single application
to use both APIs at once. Our intention was to make the two APIs
similar so that switching from one to the other does not have a large
learning curve.

Could you please describe your application and the need for using both
APIs at once?

Mark


Reply With Quote
  #3  
Old   
mark@sleepycat.com
 
Posts: n/a

Default Re: JE and BDB Java Api - 10-31-2005 , 04:20 PM



Hello Costin,

It isn't just the exception hierarchy where the package names are
different -- the entire base API of both products are in separate
packages, com.sleepycat.je and com.sleepycat.db as you mention. For
example, we have com.sleepycat.je.Database and
com.sleepycat.db.Database. The part of the API that is almost
identical is the collections and bind packages, which are extensions to
the base API of both products.

No, we currently don't have any plans to make the APIs for these two
products identical, and we have not intended for a single application
to use both APIs at once. Our intention was to make the two APIs
similar so that switching from one to the other does not have a large
learning curve.

Could you please describe your application and the need for using both
APIs at once?

Mark


Reply With Quote
  #4  
Old   
costin
 
Posts: n/a

Default Re: JE and BDB Java Api - 11-12-2005 , 05:15 AM



Hi Mark.
Sorry for the late reply.I'm a committer with Spring Modules I'm
planning of adding Spring support for Berkeley JE. I saw the similarity
between the two APIs and I wondering if it's possible to use the same
API for both edition of the database.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.