KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > persistence > sleepycat > SerializationAdapter


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.objectserver.persistence.sleepycat;
5
6 import com.sleepycat.je.DatabaseEntry;
7 import com.tc.objectserver.core.api.ManagedObject;
8
9 import java.io.IOException JavaDoc;
10
11 public interface SerializationAdapter {
12   public void serializeManagedObject(DatabaseEntry entry, ManagedObject managedObject) throws IOException JavaDoc;
13   public void serializeString(DatabaseEntry entry, String JavaDoc string) throws IOException JavaDoc;
14   
15   public ManagedObject deserializeManagedObject(DatabaseEntry data) throws IOException JavaDoc, ClassNotFoundException JavaDoc;
16   public String JavaDoc deserializeString(DatabaseEntry data) throws IOException JavaDoc, ClassNotFoundException JavaDoc;
17 }
18
Popular Tags