001 /*
002 * XML Type: persistence-context-refType
003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2
004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.naming;
009
010
011 /**
012 * An XML persistence-context-refType(@http://geronimo.apache.org/xml/ns/naming-1.2).
013 *
014 * This is a complex type.
015 */
016 public interface GerPersistenceContextRefType extends org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType
017 {
018 public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
019 org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(GerPersistenceContextRefType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s5BE83D0C34A23529A2EB03BDF6E4EE25").resolveHandle("persistencecontextreftype4d43type");
020
021 /**
022 * Gets the "persistence-context-ref-name" element
023 */
024 java.lang.String getPersistenceContextRefName();
025
026 /**
027 * Gets (as xml) the "persistence-context-ref-name" element
028 */
029 org.apache.xmlbeans.XmlString xgetPersistenceContextRefName();
030
031 /**
032 * Sets the "persistence-context-ref-name" element
033 */
034 void setPersistenceContextRefName(java.lang.String persistenceContextRefName);
035
036 /**
037 * Sets (as xml) the "persistence-context-ref-name" element
038 */
039 void xsetPersistenceContextRefName(org.apache.xmlbeans.XmlString persistenceContextRefName);
040
041 /**
042 * Gets the "persistence-unit-name" element
043 */
044 java.lang.String getPersistenceUnitName();
045
046 /**
047 * Gets (as xml) the "persistence-unit-name" element
048 */
049 org.apache.xmlbeans.XmlString xgetPersistenceUnitName();
050
051 /**
052 * True if has "persistence-unit-name" element
053 */
054 boolean isSetPersistenceUnitName();
055
056 /**
057 * Sets the "persistence-unit-name" element
058 */
059 void setPersistenceUnitName(java.lang.String persistenceUnitName);
060
061 /**
062 * Sets (as xml) the "persistence-unit-name" element
063 */
064 void xsetPersistenceUnitName(org.apache.xmlbeans.XmlString persistenceUnitName);
065
066 /**
067 * Unsets the "persistence-unit-name" element
068 */
069 void unsetPersistenceUnitName();
070
071 /**
072 * Gets the "pattern" element
073 */
074 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getPattern();
075
076 /**
077 * True if has "pattern" element
078 */
079 boolean isSetPattern();
080
081 /**
082 * Sets the "pattern" element
083 */
084 void setPattern(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern);
085
086 /**
087 * Appends and returns a new empty "pattern" element
088 */
089 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewPattern();
090
091 /**
092 * Unsets the "pattern" element
093 */
094 void unsetPattern();
095
096 /**
097 * Gets the "persistence-context-type" element
098 */
099 org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextTypeType.Enum getPersistenceContextType();
100
101 /**
102 * Gets (as xml) the "persistence-context-type" element
103 */
104 org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextTypeType xgetPersistenceContextType();
105
106 /**
107 * True if has "persistence-context-type" element
108 */
109 boolean isSetPersistenceContextType();
110
111 /**
112 * Sets the "persistence-context-type" element
113 */
114 void setPersistenceContextType(org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextTypeType.Enum persistenceContextType);
115
116 /**
117 * Sets (as xml) the "persistence-context-type" element
118 */
119 void xsetPersistenceContextType(org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextTypeType persistenceContextType);
120
121 /**
122 * Unsets the "persistence-context-type" element
123 */
124 void unsetPersistenceContextType();
125
126 /**
127 * Gets array of all "property" elements
128 */
129 org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType[] getPropertyArray();
130
131 /**
132 * Gets ith "property" element
133 */
134 org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType getPropertyArray(int i);
135
136 /**
137 * Returns number of "property" element
138 */
139 int sizeOfPropertyArray();
140
141 /**
142 * Sets array of all "property" element
143 */
144 void setPropertyArray(org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType[] propertyArray);
145
146 /**
147 * Sets ith "property" element
148 */
149 void setPropertyArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType property);
150
151 /**
152 * Inserts and returns a new empty value (as xml) as the ith "property" element
153 */
154 org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType insertNewProperty(int i);
155
156 /**
157 * Appends and returns a new empty value (as xml) as the last "property" element
158 */
159 org.apache.geronimo.xbeans.geronimo.naming.GerPropertyType addNewProperty();
160
161 /**
162 * Removes the ith "property" element
163 */
164 void removeProperty(int i);
165
166 /**
167 * A factory class with static methods for creating instances
168 * of this type.
169 */
170
171 public static final class Factory
172 {
173 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType newInstance() {
174 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
175
176 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType newInstance(org.apache.xmlbeans.XmlOptions options) {
177 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
178
179 /** @param xmlAsString the string value to parse */
180 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
181 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
182
183 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
184 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
185
186 /** @param file the file from which to load an xml document */
187 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
188 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
189
190 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
191 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
192
193 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
194 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
195
196 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
197 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
198
199 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
200 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
201
202 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
203 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
204
205 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
206 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
207
208 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
209 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
210
211 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
212 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
213
214 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
215 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
216
217 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
218 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
219
220 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
221 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
222
223 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
224 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
225 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
226
227 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
228 public static org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
229 return (org.apache.geronimo.xbeans.geronimo.naming.GerPersistenceContextRefType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
230
231 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
232 public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
233 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
234
235 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
236 public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
237 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
238
239 private Factory() { } // No instance of this class allowed
240 }
241 }