01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: Reader.java,v 1.3.2.3 2008/01/07 15:14:20 cwl Exp $
07: */
08:
09: package com.sleepycat.persist.impl;
10:
11: import java.io.Serializable;
12:
13: /**
14: * Interface to the "read object" methods of the Format class. For the
15: * latest version format, the Format object provides the implementation of
16: * these methods. For an older version format, an evolver object implements
17: * this interface to convert from the old to new format.
18: *
19: * See {@link Format} for a description of each method.
20: * @author Mark Hayes
21: */
22: interface Reader extends Serializable {
23:
24: void initializeReader(Catalog catalog, int initVersion,
25: Format oldFormat);
26:
27: Object newInstance(EntityInput input, boolean rawAccess);
28:
29: void readPriKey(Object o, EntityInput input, boolean rawAccess);
30:
31: Object readObject(Object o, EntityInput input, boolean rawAccess);
32: }
|