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

📄 db_javajni.java

📁 berkeleyDB,强大的嵌入式数据,多个数据库的内核
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package com.sleepycat.db.internal;/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version: 1.3.21 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */class db_javaJNI {	static {		/* An alternate library name can be specified via a property. */		String libname;		if ((libname = System.getProperty("sleepycat.db.libfile")) != null)			System.load(libname);		else if ((libname = System.getProperty("sleepycat.db.libname")) != null)			System.loadLibrary(libname);		else {			String os = System.getProperty("os.name");			if (os != null && os.startsWith("Windows")) {				/*				 * On Windows, library name is something like				 * "libdb_java42.dll" or "libdb_java42d.dll".				 */				libname = "libdb_java" +				    DbConstants.DB_VERSION_MAJOR +				    DbConstants.DB_VERSION_MINOR;				try {					System.loadLibrary(libname);				} catch (UnsatisfiedLinkError e) {					try {						libname += "d";						System.loadLibrary(libname);					} catch (UnsatisfiedLinkError e2) {						throw e;					}				}			} else {				/*				 * On UNIX, library name is something like				 * "libdb_java-3.0.so".				 */				System.loadLibrary("db_java-" +				    DbConstants.DB_VERSION_MAJOR + "." +				    DbConstants.DB_VERSION_MINOR);			}		}		initialize();    		if (DbEnv_get_version_major() != DbConstants.DB_VERSION_MAJOR ||		    DbEnv_get_version_minor() != DbConstants.DB_VERSION_MINOR ||		    DbEnv_get_version_patch() != DbConstants.DB_VERSION_PATCH)			throw new RuntimeException("Berkeley DB library version doesn't match Java classes");	}	static native final void initialize();  public final static native void DbEnv_lock_vec(long jarg1, int jarg2, int jarg3, com.sleepycat.db.LockRequest[] jarg4, int jarg5, int jarg6) throws com.sleepycat.db.DatabaseException;  /* package */ final static native long initDbEnvRef0(long jarg1, Object jarg2);  /* package */ final static native long initDbRef0(long jarg1, Object jarg2);  /* package */ final static native void deleteRef0(long jarg1);  /* package */ final static native long getDbEnv0(long jarg1);  public final static native long new_Db(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_associate(long jarg1, long jarg2, long jarg3, com.sleepycat.db.SecondaryKeyCreator jarg4, int jarg5) throws com.sleepycat.db.DatabaseException;  /* package */ final static native int Db_close0(long jarg1, int jarg2);  public final static native long Db_cursor(long jarg1, long jarg2, int jarg3) throws com.sleepycat.db.DatabaseException;  public final static native int Db_del(long jarg1, long jarg2, com.sleepycat.db.DatabaseEntry jarg3, int jarg4) throws com.sleepycat.db.DatabaseException;  public final static native void Db_err(long jarg1, int jarg2, String jarg3) /* no exception */;  public final static native void Db_errx(long jarg1, String jarg2) /* no exception */;  public final static native boolean Db_get_transactional(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get(long jarg1, long jarg2, com.sleepycat.db.DatabaseEntry jarg3, com.sleepycat.db.DatabaseEntry jarg4, int jarg5) throws com.sleepycat.db.DatabaseException;  public final static native boolean Db_get_byteswapped(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native long Db_get_cachesize(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_cachesize_ncache(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native String Db_get_filename(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native String Db_get_dbname(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_encrypt_flags(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_flags(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_lorder(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native long Db_get_mpf(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_open_flags(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_pagesize(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_bt_minkey(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_h_ffactor(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_h_nelem(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_re_delim(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_re_len(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_re_pad(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native String Db_get_re_source(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_q_extentsize(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native int Db_get_type(long jarg1) throws com.sleepycat.db.DatabaseException;  public final static native long Db_join(long jarg1, Dbc[] jarg2, int jarg3) throws com.sleepycat.db.DatabaseException;  public final static native void Db_key_range(long jarg1, long jarg2, com.sleepycat.db.DatabaseEntry jarg3, com.sleepycat.db.KeyRange jarg4, int jarg5) throws com.sleepycat.db.DatabaseException;  public final static native void Db_open(long jarg1, long jarg2, String jarg3, String jarg4, int jarg5, int jarg6, int jarg7) throws com.sleepycat.db.DatabaseException, java.io.FileNotFoundException;  public final static native int Db_pget(long jarg1, long jarg2, com.sleepycat.db.DatabaseEntry jarg3, com.sleepycat.db.DatabaseEntry jarg4, com.sleepycat.db.DatabaseEntry jarg5, int jarg6) throws com.sleepycat.db.DatabaseException;  public final static native int Db_put(long jarg1, long jarg2, com.sleepycat.db.DatabaseEntry jarg3, com.sleepycat.db.DatabaseEntry jarg4, int jarg5) throws com.sleepycat.db.DatabaseException;  /* package */ final static native void Db_remove0(long jarg1, String jarg2, String jarg3, int jarg4);  /* package */ final static native void Db_rename0(long jarg1, String jarg2, String jarg3, String jarg4, int jarg5);  public final static native void Db_set_append_recno(long jarg1, com.sleepycat.db.RecordNumberAppender jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_bt_compare(long jarg1, java.util.Comparator jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_bt_maxkey(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_bt_minkey(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_bt_prefix(long jarg1, com.sleepycat.db.BtreePrefixCalculator jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_cachesize(long jarg1, long jarg2, int jarg3) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_dup_compare(long jarg1, java.util.Comparator jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_encrypt(long jarg1, String jarg2, int jarg3) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_feedback(long jarg1, com.sleepycat.db.FeedbackHandler jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_flags(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_h_ffactor(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_h_hash(long jarg1, com.sleepycat.db.Hasher jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_h_nelem(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_lorder(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_pagesize(long jarg1, long jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_re_delim(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_re_len(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_re_pad(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_re_source(long jarg1, String jarg2) throws com.sleepycat.db.DatabaseException;  public final static native void Db_set_q_extentsize(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native Object Db_stat(long jarg1, long jarg2, int jarg3) throws com.sleepycat.db.DatabaseException;  public final static native void Db_sync(long jarg1, int jarg2) throws com.sleepycat.db.DatabaseException;  public final static native int Db_truncate(long jarg1, long jarg2, int jarg3) throws com.sleepycat.db.DatabaseException;  public final static native void Db_upgrade(long jarg1, String jarg2, int jarg3) throws com.sleepycat.db.DatabaseException;  /* package */ final static native boolean Db_verify0(long jarg1, String jarg2, String jarg3, java.io.OutputStream jarg4, int jarg5);  /* package */ final static native void Dbc_close0(long jarg1);

⌨️ 快捷键说明

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