01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.persistence.sleepycat;
05:
06: import com.sleepycat.je.DatabaseEntry;
07: import com.tc.objectserver.core.api.ManagedObject;
08:
09: import java.io.IOException;
10:
11: public interface SerializationAdapter {
12: public void serializeManagedObject(DatabaseEntry entry,
13: ManagedObject managedObject) throws IOException;
14:
15: public void serializeString(DatabaseEntry entry, String string)
16: throws IOException;
17:
18: public ManagedObject deserializeManagedObject(DatabaseEntry data)
19: throws IOException, ClassNotFoundException;
20:
21: public String deserializeString(DatabaseEntry data)
22: throws IOException, ClassNotFoundException;
23: }
|