I read the document of "Getting Started with Berkeley DB Java Edition"on the oracle library.I found this API:
Database
openDatabase(Transaction txn, String databaseName, DatabaseConfig dbConfig)
Opens, and optionally creates, a Database.
but when I use in my application I found this:
public Database openDatabase(Transaction var1, String var2, String var3, DatabaseConfig var4) throws DatabaseException, FileNotFoundException { return new Database(DatabaseConfig.checkNull(var4).openDatabase(this.dbenv, var1 == null?null:var1.txn, var2, var3)); }
enter image description here enter image description here there are four parameters not three, I don't know what's going on ... someone help me please ,thank you