00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.sleepycat.db.internal;
00010
00011 class db_java {
00012 public static void DbEnv_lock_vec(DbEnv dbenv, int locker, int flags, com.sleepycat.db.LockRequest[] list, int offset, int nlist) throws com.sleepycat.db.DatabaseException {
00013 db_javaJNI.DbEnv_lock_vec(DbEnv.getCPtr(dbenv), locker, flags, list, offset, nlist);
00014 }
00015
00016 static long initDbEnvRef0(DbEnv self, Object handle) {
00017 return db_javaJNI.initDbEnvRef0(DbEnv.getCPtr(self), handle);
00018 }
00019
00020 static long initDbRef0(Db self, Object handle) {
00021 return db_javaJNI.initDbRef0(Db.getCPtr(self), handle);
00022 }
00023
00024 static void deleteRef0(long ref) {
00025 db_javaJNI.deleteRef0(ref);
00026 }
00027
00028 static DbEnv getDbEnv0(Db self) {
00029 long cPtr = db_javaJNI.getDbEnv0(Db.getCPtr(self));
00030 return (cPtr == 0) ? null : new DbEnv(cPtr, false);
00031 }
00032
00033 }