01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: EvolveEvent.java,v 1.2.2.3 2008/01/07 15:14:19 cwl Exp $
07: */
08:
09: 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 entityClassName;
22:
23: EvolveEvent() {
24: this .stats = new EvolveStats();
25: }
26:
27: void update(String 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 getEntityClassName() {
42: return entityClassName;
43: }
44: }
|