1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002-2009 Oracle. All rights reserved. 5 * 6 * $Id$ 7 */ 8 9package com.sleepycat.persist.impl; 10 11import java.io.Serializable; 12 13import com.sleepycat.persist.model.EntityModel; 14 15/** 16 * Interface to the "read object" methods of the Format class. For the 17 * latest version format, the Format object provides the implementation of 18 * these methods. For an older version format, an evolver object implements 19 * this interface to convert from the old to new format. 20 * 21 * See {@link Format} for a description of each method. 22 * @author Mark Hayes 23 */ 24interface Reader extends Serializable { 25 26 void initializeReader(Catalog catalog, 27 EntityModel model, 28 int initVersion, 29 Format oldFormat); 30 31 Object newInstance(EntityInput input, boolean rawAccess); 32 33 void readPriKey(Object o, EntityInput input, boolean rawAccess); 34 35 Object readObject(Object o, EntityInput input, boolean rawAccess); 36} 37