01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.jee.sun;
17:
18: import javax.xml.bind.annotation.XmlAccessType;
19: import javax.xml.bind.annotation.XmlAccessorType;
20: import javax.xml.bind.annotation.XmlElement;
21: import javax.xml.bind.annotation.XmlType;
22: import java.util.ArrayList;
23: import java.util.List;
24:
25: @XmlAccessorType(XmlAccessType.FIELD)
26: @XmlType(name="",propOrder={"jndiName","defaultResourcePrincipal","property","createTablesAtDeploy","dropTablesAtUndeploy","databaseVendorName","schemaGeneratorProperties"})
27: public class CmpResource {
28: @XmlElement(name="jndi-name",required=true)
29: protected String jndiName;
30: @XmlElement(name="default-resource-principal")
31: protected DefaultResourcePrincipal defaultResourcePrincipal;
32: protected List<Property> property;
33: @XmlElement(name="create-tables-at-deploy")
34: protected String createTablesAtDeploy;
35: @XmlElement(name="drop-tables-at-undeploy")
36: protected String dropTablesAtUndeploy;
37: @XmlElement(name="database-vendor-name")
38: protected String databaseVendorName;
39: @XmlElement(name="schema-generator-properties")
40: protected SchemaGeneratorProperties schemaGeneratorProperties;
41:
42: public String getJndiName() {
43: return jndiName;
44: }
45:
46: public void setJndiName(String value) {
47: this .jndiName = value;
48: }
49:
50: public DefaultResourcePrincipal getDefaultResourcePrincipal() {
51: return defaultResourcePrincipal;
52: }
53:
54: public void setDefaultResourcePrincipal(
55: DefaultResourcePrincipal value) {
56: this .defaultResourcePrincipal = value;
57: }
58:
59: public List<Property> getProperty() {
60: if (property == null) {
61: property = new ArrayList<Property>();
62: }
63: return this .property;
64: }
65:
66: public String getCreateTablesAtDeploy() {
67: return createTablesAtDeploy;
68: }
69:
70: public void setCreateTablesAtDeploy(String value) {
71: this .createTablesAtDeploy = value;
72: }
73:
74: public String getDropTablesAtUndeploy() {
75: return dropTablesAtUndeploy;
76: }
77:
78: public void setDropTablesAtUndeploy(String value) {
79: this .dropTablesAtUndeploy = value;
80: }
81:
82: public String getDatabaseVendorName() {
83: return databaseVendorName;
84: }
85:
86: public void setDatabaseVendorName(String value) {
87: this .databaseVendorName = value;
88: }
89:
90: public SchemaGeneratorProperties getSchemaGeneratorProperties() {
91: return schemaGeneratorProperties;
92: }
93:
94: public void setSchemaGeneratorProperties(
95: SchemaGeneratorProperties value) {
96: this.schemaGeneratorProperties = value;
97: }
98: }
|