strangedb/src/main/java/org/warp/jcwdb/ann/DBObjectList.java

24 lines
587 B
Java

package org.warp.jcwdb.ann;
import java.io.IOException;
public class DBObjectList<T> extends DBArrayList<T> {
public DBObjectList(JCWDatabase database) {
super(database);
}
public DBObjectList(JCWDatabase database, DBObjectIndicesManager.DBObjectInfo objectInfo) throws IOException {
super(database, objectInfo);
}
@Override
public T loadItem(long uid) throws IOException {
return databaseManager.loadObject(uid);
}
@Override
public void writeItemToDisk(long uid, T item) throws IOException {
databaseManager.writeObjectProperty(uid, DBDataType.OBJECT, item);
}
}