KickJava   Java API By Example, From Geeks To Geeks.

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


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

8
9 package com.sleepycat.persist.evolve;
10
11 /**
12  * The event passed to the EvolveListener interface during eager entity
13  * evolution.
14  *
15  * @see com.sleepycat.persist.evolve Class Evolution
16  * @author Mark Hayes
17  */

18 public class EvolveEvent {
19
20     private EvolveStats stats;
21     private String JavaDoc entityClassName;
22
23     EvolveEvent() {
24         this.stats = new EvolveStats();
25     }
26
27     void update(String JavaDoc entityClassName) {
28         this.entityClassName = entityClassName;
29     }
30
31     /**
32      * The cummulative statistics gathered during eager evolution.
33      */

34     public EvolveStats getStats() {
35         return stats;
36     }
37
38     /**
39      * The class name of the current entity class being converted.
40      */

41     public String JavaDoc getEntityClassName() {
42         return entityClassName;
43     }
44 }
45
Popular Tags