KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > dd > api > ejb > CmpResource


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * CmpResource.java
21  *
22  * Created on November 17, 2004, 4:49 PM
23  */

24
25 package org.netbeans.modules.j2ee.sun.dd.api.ejb;
26
27 import org.netbeans.modules.j2ee.sun.dd.api.common.DefaultResourcePrincipal;
28
29 /**
30  *
31  * @author Nitya Doraisamy
32  */

33 public interface CmpResource extends org.netbeans.modules.j2ee.sun.dd.api.CommonDDBean {
34
35     public static final String JavaDoc JNDI_NAME = "JndiName"; // NOI18N
36
public static final String JavaDoc DEFAULT_RESOURCE_PRINCIPAL = "DefaultResourcePrincipal"; // NOI18N
37
public static final String JavaDoc PROPERTY = "PropertyElement"; // NOI18N
38
public static final String JavaDoc CREATE_TABLES_AT_DEPLOY = "CreateTablesAtDeploy"; // NOI18N
39
public static final String JavaDoc DROP_TABLES_AT_UNDEPLOY = "DropTablesAtUndeploy"; // NOI18N
40
public static final String JavaDoc DATABASE_VENDOR_NAME = "DatabaseVendorName"; // NOI18N
41
public static final String JavaDoc SCHEMA_GENERATOR_PROPERTIES = "SchemaGeneratorProperties"; // NOI18N
42

43     /** Setter for jndi-name property
44      * @param value property value
45      */

46     public void setJndiName(java.lang.String JavaDoc value);
47     /** Getter for jndi-name property.
48      * @return property value
49      */

50     public java.lang.String JavaDoc getJndiName();
51     
52     /** Setter for default-resource-principal property
53      * @param value property value
54      */

55     public void setDefaultResourcePrincipal(DefaultResourcePrincipal value);
56     /** Getter for default-resource-principal property.
57      * @return property value
58      */

59     public DefaultResourcePrincipal getDefaultResourcePrincipal();
60     
61     public DefaultResourcePrincipal newDefaultResourcePrincipal();
62     
63     public PropertyElement[] getPropertyElement();
64     public PropertyElement getPropertyElement(int index);
65     public void setPropertyElement(PropertyElement[] value);
66     public void setPropertyElement(int index, PropertyElement value);
67     public int addPropertyElement(PropertyElement value);
68     public int removePropertyElement(PropertyElement value);
69     public int sizePropertyElement();
70     public PropertyElement newPropertyElement();
71     
72     /** Setter for create-tables-at-deploy property
73      * @param value property value
74      */

75     public void setCreateTablesAtDeploy(java.lang.String JavaDoc value);
76     /** Getter for create-tables-at-deploy property.
77      * @return property value
78      */

79     public java.lang.String JavaDoc getCreateTablesAtDeploy();
80     
81     /** Setter for drop-tables-at-undeploy property
82      * @param value property value
83      */

84     public void setDropTablesAtUndeploy(java.lang.String JavaDoc value);
85     /** Getter for drop-tables-at-undeploy property.
86      * @return property value
87      */

88     public java.lang.String JavaDoc getDropTablesAtUndeploy();
89     
90     /** Setter for database-vendor-name property
91      * @param value property value
92      */

93     public void setDatabaseVendorName(java.lang.String JavaDoc value);
94     /** Getter for database-vendor-name property.
95      * @return property value
96      */

97     public java.lang.String JavaDoc getDatabaseVendorName();
98     /** Setter for schema-generator-properties property
99      * @param value property value
100      */

101     public void setSchemaGeneratorProperties(SchemaGeneratorProperties value);
102     /** Getter for schema-generator-properties property.
103      * @return property value
104      */

105     public SchemaGeneratorProperties getSchemaGeneratorProperties();
106     
107     public SchemaGeneratorProperties newSchemaGeneratorProperties();
108     
109 }
110
Popular Tags