Applied patch from Peter Goron to update jdbm to latest stable release: 1.0
OFBIZ-575 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@545447 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@
|
||||
<classpathentry kind="lib" path="framework/base/lib/log4j-1.2.14.jar"/>
|
||||
<classpathentry kind="lib" path="framework/base/lib/junitperf.jar"/>
|
||||
<classpathentry kind="lib" path="framework/base/lib/junit.jar"/>
|
||||
<classpathentry kind="lib" path="framework/base/lib/jdbm.jar"/>
|
||||
<classpathentry kind="lib" path="framework/base/lib/jdbm-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="framework/base/lib/jakarta-regexp-1.5.jar"/>
|
||||
<classpathentry kind="lib" path="framework/base/lib/icu4j-3_6.jar"/>
|
||||
<classpathentry kind="lib" path="framework/base/lib/httpunit.jar"/>
|
||||
|
||||
@@ -1855,7 +1855,7 @@ JPython version 1.1.x
|
||||
=========================================================================
|
||||
The JDBM library is licensed under the JDBM LICENSE v1.00 as follows.
|
||||
This license is nearly equivalent to the BSD License.
|
||||
ofbiz/trunk/framework/base/lib/jdbm.jar
|
||||
ofbiz/trunk/framework/base/lib/jdbm-1.0.jar
|
||||
=========================================================================
|
||||
/**
|
||||
* JDBM LICENSE v1.00
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -20,28 +20,79 @@ package org.ofbiz.base.util.cache;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import jdbm.helper.Serializer;
|
||||
|
||||
/**
|
||||
* Customer JDBM Record Manager
|
||||
*
|
||||
*/
|
||||
public class JdbmRecordManager extends jdbm.recman.BaseRecordManager {
|
||||
public class JdbmRecordManager implements jdbm.RecordManager {
|
||||
|
||||
protected jdbm.recman.BaseRecordManager manager = null;
|
||||
protected jdbm.helper.Serializer serial = null;
|
||||
|
||||
public JdbmRecordManager(String name) throws IOException {
|
||||
super(name);
|
||||
manager = new jdbm.recman.BaseRecordManager(name);
|
||||
serial = new JdbmSerializer();
|
||||
}
|
||||
|
||||
public long insert(Object o) throws IOException {
|
||||
return this.insert(o, serial);
|
||||
return manager.insert(o, serial);
|
||||
}
|
||||
|
||||
public void update(long l, Object o) throws IOException {
|
||||
this.update(l, o, serial);
|
||||
manager.update(l, o, serial);
|
||||
}
|
||||
|
||||
public Object fetch(long l) throws IOException {
|
||||
return this.fetch(l, serial);
|
||||
return manager.fetch(l, serial);
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
manager.close();
|
||||
}
|
||||
|
||||
public void commit() throws IOException {
|
||||
manager.commit();
|
||||
}
|
||||
|
||||
public void delete(long l) throws IOException {
|
||||
manager.delete(l);
|
||||
}
|
||||
|
||||
public Object fetch(long l, Serializer s) throws IOException {
|
||||
return manager.fetch(l, s);
|
||||
}
|
||||
|
||||
public long getNamedObject(String name) throws IOException {
|
||||
return manager.getNamedObject(name);
|
||||
}
|
||||
|
||||
public long getRoot(int i) throws IOException {
|
||||
return manager.getRoot(i);
|
||||
}
|
||||
|
||||
public int getRootCount() {
|
||||
return manager.getRootCount();
|
||||
}
|
||||
|
||||
public long insert(Object o, Serializer s) throws IOException {
|
||||
return manager.insert(o, s);
|
||||
}
|
||||
|
||||
public void rollback() throws IOException {
|
||||
manager.rollback();
|
||||
}
|
||||
|
||||
public void setNamedObject(String s, long l) throws IOException {
|
||||
manager.setNamedObject(s, l);
|
||||
}
|
||||
|
||||
public void setRoot(int i, long l) throws IOException {
|
||||
manager.setRoot(i, l);
|
||||
}
|
||||
|
||||
public void update(long l, Object o, Serializer s) throws IOException {
|
||||
manager.update(l, o, s);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user