Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » jee » sun » [javadoc | source]
    1   /**
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     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    */
   17   package org.apache.openejb.jee.sun;
   18   
   19   import javax.xml.bind.annotation.XmlAccessType;
   20   import javax.xml.bind.annotation.XmlAccessorType;
   21   import javax.xml.bind.annotation.XmlElement;
   22   import javax.xml.bind.annotation.XmlType;
   23   import java.util.ArrayList;
   24   import java.util.List;
   25   
   26   @XmlAccessorType(XmlAccessType.FIELD)
   27   @XmlType(name = "", propOrder = {
   28       "jndiName",
   29       "defaultResourcePrincipal",
   30       "property",
   31       "createTablesAtDeploy",
   32       "dropTablesAtUndeploy",
   33       "databaseVendorName",
   34       "schemaGeneratorProperties"
   35   })
   36   public class CmpResource {
   37       @XmlElement(name = "jndi-name", required = true)
   38       protected String jndiName;
   39       @XmlElement(name = "default-resource-principal")
   40       protected DefaultResourcePrincipal defaultResourcePrincipal;
   41       protected List<Property> property;
   42       @XmlElement(name = "create-tables-at-deploy")
   43       protected String createTablesAtDeploy;
   44       @XmlElement(name = "drop-tables-at-undeploy")
   45       protected String dropTablesAtUndeploy;
   46       @XmlElement(name = "database-vendor-name")
   47       protected String databaseVendorName;
   48       @XmlElement(name = "schema-generator-properties")
   49       protected SchemaGeneratorProperties schemaGeneratorProperties;
   50   
   51       public String getJndiName() {
   52           return jndiName;
   53       }
   54   
   55       public void setJndiName(String value) {
   56           this.jndiName = value;
   57       }
   58   
   59       public DefaultResourcePrincipal getDefaultResourcePrincipal() {
   60           return defaultResourcePrincipal;
   61       }
   62   
   63       public void setDefaultResourcePrincipal(DefaultResourcePrincipal value) {
   64           this.defaultResourcePrincipal = value;
   65       }
   66   
   67       public List<Property> getProperty() {
   68           if (property == null) {
   69               property = new ArrayList<Property>();
   70           }
   71           return this.property;
   72       }
   73   
   74       public String getCreateTablesAtDeploy() {
   75           return createTablesAtDeploy;
   76       }
   77   
   78       public void setCreateTablesAtDeploy(String value) {
   79           this.createTablesAtDeploy = value;
   80       }
   81   
   82       public String getDropTablesAtUndeploy() {
   83           return dropTablesAtUndeploy;
   84       }
   85   
   86       public void setDropTablesAtUndeploy(String value) {
   87           this.dropTablesAtUndeploy = value;
   88       }
   89   
   90       public String getDatabaseVendorName() {
   91           return databaseVendorName;
   92       }
   93   
   94       public void setDatabaseVendorName(String value) {
   95           this.databaseVendorName = value;
   96       }
   97   
   98       public SchemaGeneratorProperties getSchemaGeneratorProperties() {
   99           return schemaGeneratorProperties;
  100       }
  101   
  102       public void setSchemaGeneratorProperties(SchemaGeneratorProperties value) {
  103           this.schemaGeneratorProperties = value;
  104       }
  105   }

Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » jee » sun » [javadoc | source]