KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > persist > evolve > EvolveInternal


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: EvolveInternal.java,v 1.2 2006/10/30 21:14:31 bostic Exp $
7  */

8
9 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 JavaDoc entityClassName,
25                                    int nRead,
26                                    int nConverted) {
27         event.update(entityClassName);
28         event.getStats().add(nRead, nConverted);
29     }
30 }
31
Popular Tags