1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002,2008 Oracle.  All rights reserved.
5 *
6 * $Id: EvolveInternal.java,v 1.1 2008/02/07 17:12:27 mark Exp $
7 */
8
9package com.sleepycat.persist.evolve;
10
11/**
12 * Internal access class that should not be used by applications.
13 *
14 * @author Mark Hayes
15 */
16public class EvolveInternal {
17
18    /**
19     * Internal access method that should not be used by applications.
20     */
21    public static EvolveEvent newEvent() {
22        return new EvolveEvent();
23    }
24
25    /**
26     * Internal access method that should not be used by applications.
27     */
28    public static void updateEvent(EvolveEvent event,
29                                   String entityClassName,
30                                   int nRead,
31                                   int nConverted) {
32        event.update(entityClassName);
33        event.getStats().add(nRead, nConverted);
34    }
35}
36