Debian Codegraph @

lang/java/src/com/sleepycat/persist/evolve/EvolveEvent.java

raw
1 /*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002, 2013 Oracle and/or its affiliates. All rights reserved.
5 *
6 */
7
8 package com.sleepycat.persist.evolve;
9
10 /**
11 * The event passed to the EvolveListener interface during eager entity
12 * evolution.
13 *
14 * @see com.sleepycat.persist.evolve Class Evolution
15 * @author Mark Hayes
16 */
17 public class EvolveEvent {
18
19 private EvolveStats stats;
20 private String entityClassName;
21
22 EvolveEvent() {
23 this.stats = new EvolveStats();
24 }
25
26 void update(String entityClassName) {
27 this.entityClassName = entityClassName;
28 }
29
30 /**
31 * The cummulative statistics gathered during eager evolution.
32 */
33 public EvolveStats getStats() {
34 return stats;
35 }
36
37 /**
38 * The class name of the current entity class being converted.
39 */
40 public String getEntityClassName() {
41 return entityClassName;
42 }
43 }