KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > persistence > api > metadata > orm > EntityMappings


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-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.persistence.api.metadata.orm;
21
22 public interface EntityMappings {
23     
24     public void setVersion(String JavaDoc value);
25     
26     public String JavaDoc getVersion();
27     
28     public void setDescription(String JavaDoc value);
29     
30     public String JavaDoc getDescription();
31     
32     public void setPersistenceUnitMetadata(PersistenceUnitMetadata value);
33     
34     public PersistenceUnitMetadata getPersistenceUnitMetadata();
35     
36     public PersistenceUnitMetadata newPersistenceUnitMetadata();
37     
38     public void setPackage(String JavaDoc value);
39     
40     public String JavaDoc getPackage();
41     
42     public void setSchema(String JavaDoc value);
43     
44     public String JavaDoc getSchema();
45     
46     public void setCatalog(String JavaDoc value);
47     
48     public String JavaDoc getCatalog();
49     
50     public void setAccess(String JavaDoc value);
51     
52     public String JavaDoc getAccess();
53     
54     public void setSequenceGenerator(int index, SequenceGenerator value);
55     
56     public SequenceGenerator getSequenceGenerator(int index);
57     
58     public int sizeSequenceGenerator();
59     
60     public void setSequenceGenerator(SequenceGenerator[] value);
61     
62     public SequenceGenerator[] getSequenceGenerator();
63     
64     public int addSequenceGenerator(SequenceGenerator value);
65     
66     public int removeSequenceGenerator(SequenceGenerator value);
67     
68     public SequenceGenerator newSequenceGenerator();
69     
70     public void setTableGenerator(int index, TableGenerator value);
71     
72     public TableGenerator getTableGenerator(int index);
73     
74     public int sizeTableGenerator();
75     
76     public void setTableGenerator(TableGenerator[] value);
77     
78     public TableGenerator[] getTableGenerator();
79     
80     public int addTableGenerator(TableGenerator value);
81     
82     public int removeTableGenerator(TableGenerator value);
83     
84     public TableGenerator newTableGenerator();
85     
86     public void setNamedQuery(int index, NamedQuery value);
87     
88     public NamedQuery getNamedQuery(int index);
89     
90     public int sizeNamedQuery();
91     
92     public void setNamedQuery(NamedQuery[] value);
93     
94     public NamedQuery[] getNamedQuery();
95     
96     public int addNamedQuery(NamedQuery value);
97     
98     public int removeNamedQuery(NamedQuery value);
99     
100     public NamedQuery newNamedQuery();
101     
102     public void setNamedNativeQuery(int index, NamedNativeQuery value);
103     
104     public NamedNativeQuery getNamedNativeQuery(int index);
105     
106     public int sizeNamedNativeQuery();
107     
108     public void setNamedNativeQuery(NamedNativeQuery[] value);
109     
110     public NamedNativeQuery[] getNamedNativeQuery();
111     
112     public int addNamedNativeQuery(NamedNativeQuery value);
113     
114     public int removeNamedNativeQuery(NamedNativeQuery value);
115     
116     public NamedNativeQuery newNamedNativeQuery();
117     
118     public void setSqlResultSetMapping(int index, SqlResultSetMapping value);
119     
120     public SqlResultSetMapping getSqlResultSetMapping(int index);
121     
122     public int sizeSqlResultSetMapping();
123     
124     public void setSqlResultSetMapping(SqlResultSetMapping[] value);
125     
126     public SqlResultSetMapping[] getSqlResultSetMapping();
127     
128     public int addSqlResultSetMapping(SqlResultSetMapping value);
129     
130     public int removeSqlResultSetMapping(SqlResultSetMapping value);
131     
132     public SqlResultSetMapping newSqlResultSetMapping();
133     
134     public void setMappedSuperclass(int index, MappedSuperclass value);
135     
136     public MappedSuperclass getMappedSuperclass(int index);
137     
138     public int sizeMappedSuperclass();
139     
140     public void setMappedSuperclass(MappedSuperclass[] value);
141     
142     public MappedSuperclass[] getMappedSuperclass();
143     
144     public int addMappedSuperclass(MappedSuperclass value);
145     
146     public int removeMappedSuperclass(MappedSuperclass value);
147     
148     public MappedSuperclass newMappedSuperclass();
149     
150     public void setEntity(int index, Entity value);
151     
152     public Entity getEntity(int index);
153     
154     public int sizeEntity();
155     
156     public void setEntity(Entity[] value);
157     
158     public Entity[] getEntity();
159     
160     public int addEntity(Entity value);
161     
162     public int removeEntity(Entity value);
163     
164     public Entity newEntity();
165     
166     public void setEmbeddable(int index, Embeddable value);
167     
168     public Embeddable getEmbeddable(int index);
169     
170     public int sizeEmbeddable();
171     
172     public void setEmbeddable(Embeddable[] value);
173     
174     public Embeddable[] getEmbeddable();
175     
176     public int addEmbeddable(Embeddable value);
177     
178     public int removeEmbeddable(Embeddable value);
179     
180     public Embeddable newEmbeddable();
181     
182 }
183
Popular Tags