01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: EvolveInternal.java,v 1.2.2.2 2008/01/07 15:14:19 cwl Exp $
07: */
08:
09: package com.sleepycat.persist.evolve;
10:
11: /**
12: * Internal access class that does not appear in the javadoc and should not be
13: * used by applications.
14: *
15: * @author Mark Hayes
16: */
17: public class EvolveInternal {
18:
19: public static EvolveEvent newEvent() {
20: return new EvolveEvent();
21: }
22:
23: public static void updateEvent(EvolveEvent event,
24: String entityClassName, int nRead, int nConverted) {
25: event.update(entityClassName);
26: event.getStats().add(nRead, nConverted);
27: }
28: }
|