⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 java.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: java.so,v 1.21 2006/08/24 16:32:33 bostic Exp $])define(BDB_LOC, ..)m4_ref_title(Upgrading m4_db Applications,    Release 4.2: Java,,    upgrade.4.2/intro, upgrade.4.2/queue)m4_p([dnlThere are a number of major changes to the Java support in m4_db in thisrelease.  Despite that we have tried to make this a bridge release, arelease where we don't require you to change anything.  We've done thisusing the standard approach to deprecation in Java.  If you do notcompile with deprecation warnings on, your existing sources should workwith this new release with only minor changes despite the large numberof changes.  Expect that in a future release we will remove all thedeprecated API and only support the new API names.])m4_p([dnlThis is a list of areas where we have broken compatibility with the4.1 release.  In most cases it is a name change in an interface class.])m4_bulletbeginm4_bullet([dnlm4_bold([DbAppDispatch.app_dispatch(DbEnv,Dbt,DbLsn,int)])m4_p([is now:m4_bold([DbAppDispatch.appDispatch(DbEnv,Dbt,DbLsn,int)])])])m4_bullet([dnlm4_bold([DbAppendRecno.db_append_recno(Db,Dbt,int)])m4_p([is now:m4_bold([DbAppendRecno.dbAppendRecno(Db,Dbt,int)])])])m4_bullet([dnlm4_bold([DbBtreeCompare.bt_compare(Db,Dbt,Dbt)])m4_p([is now:m4_bold([DbBtreeCompare.compare(Db,Dbt,Dbt)])])])m4_bullet([dnlm4_bold([DbBtreeCompare.dup_compare(Db,Dbt,Dbt)])m4_p([is now:m4_bold([DbBtreeCompare.compareDuplicates(Db,Dbt,Dbt)])])])m4_bullet([dnlm4_bold([DbBtreePrefix.bt_prefix(Db,Dbt,Dbt)])m4_p([is now:m4_bold([DbBtreePrefix.prefix(Db,Dbt,Dbt)])])])m4_bullet([dnlm4_bold([DbSecondaryKeyCreate.secondary_key_create(Db,Dbt,Dbt,Dbt)])m4_p([is now:m4_bold([DbSecondaryKeyCreate.secondaryKeyCreate(Db,Dbt,Dbt,Dbt)])])])m4_bulletendm4_p([dnlThe 4.2 release of m4_db requires at minimum a J2SE 1.3.1 certified Javavirtual machine and associated classes to properly build and execute.To determine what version virtual machine you are running, enter:])m4_indent([java -version])m4_p([dnlat a command line and look for the version number.  If you need todeploy to a version 1.1 or 1.0 Java environment, it may be possible todo so by not including the classes in the com.sleepycat.bdb packagein the Java build process (however, that workaround has not been testedby us).])m4_p([dnlA few inconsistent methods have been cleaned up (for example, Db.closenow returns void; previously, it returned an int which was always zero).The synchronized attributed has been toggled on some methods -- this isan attempt to prevent multithreaded applications from calling close orsimilar methods concurrently from multiple threads.])m4_p([dnlThe m4_db API has up until now been consistent across all language APIs.Although consistency has is benefits, it made our Java API look strange toJava programmers.  Many methods have been renamed in this release of theJava API to conform with Java naming conventions.  Sometimes this renamingwas simply "camel casing", sometimes it required rewording.  The mappingfile for these name changes is in m4_path(dist/camel.pm).  The Perl scriptwe use to convert code to the new names is calledm4_path(dist/camelize.pl), and may help with updating Java applicationswritten for earlier versions of m4_db.])m4_p([dnlm4_db has a number of places where as a C library it uses function pointersto move into custom code for the purpose of notification of some event.  InJava the best parallel is the registration of some class which implementsan interface.  In this version of m4_db we have made an effort to make thoseinterfaces more uniform and predictable.  Specifically, DbEnvFeedback is nowDbEnvFeedbackHandler, DbErrcall is DbErrorHandler and DbFeedback isDbFeedbackHandler.  In every case we have kept the older interfaces and theolder registration methods so as to allow for backward compatibility in thisrelease.  Expect them to be removed in future releases.])m4_p([dnlAs you upgrade to this release of m4_db you will notice that we haveadded an entirely new layer inside the package com.sleepycat.bdb.  Thiswas formerly the Greybird project by Mark Hayes.  Sleepycat Software andMark worked together to incorporate his work.  We have done this inhopes of reducing the learning curve when using m4_db in a Java project.When you upgrade you should consider switching to this layer as overtime the historical classes and the new bdb package classes will be moreand more integrated providing a simple yet powerful interface from Javainto the m4_db library.])m4_p([dnlm4_db's Java API is now generated with m4_linkweb(http://www.swig.org, SWIG).The new Java API is significantly faster for many operations.])m4_p([dnlSome internal methods and constructors that were previously public havebeen hidden or removed.])m4_p([Packages found under com.sleepycat are considered different APIs intothe m4_db system.  These include the core db api (com.sleepycat.db), thecollections style access layer (com.sleepycat.bdb) and the now relocated XAsystem (com.sleepycat.xa).])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -