01: package com.bm.ejb3metadata.annotations.impl;
02:
03: /**
04: * This class allow to set informations on javax.persistence.PersistenceUnit
05: * annotation.
06: * @author Daniel Wiese
07: */
08: public class JavaxPersistenceUnit {
09:
10: /**
11: * Name of this persistence unit.
12: */
13: private String name = null;
14:
15: /**
16: * Unit name of this persistence context.
17: */
18: private String unitName = null;
19:
20: /**
21: * Build new object with default values.
22: */
23: public JavaxPersistenceUnit() {
24: // default values
25: this .unitName = "";
26: this .name = "";
27: }
28:
29: /**
30: * @return the unit name used by this persistence context.
31: */
32: public String getName() {
33: return name;
34: }
35:
36: /**
37: * sets the name of this persistence context.
38: * @param name the name of the persistence context
39: */
40: public void setName(final String name) {
41: this .name = name;
42: }
43:
44: /**
45: * @return the unit name used by this persistence context.
46: */
47: public String getUnitName() {
48: return unitName;
49: }
50:
51: /**
52: * sets the unit name of this persistence context.
53: * @param unitName the name of the persistence unit
54: */
55: public void setUnitName(final String unitName) {
56: this.unitName = unitName;
57: }
58:
59: }
|