1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002,2008 Oracle.  All rights reserved.
5 *
6 * $Id: EvolveEvent.java,v 1.1 2008/02/07 17:12:27 mark Exp $
7 */
8
9package 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 */
18public 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}
45