001 /*
002 * XML Type: partitionedpoolType
003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/connector-1.2
004 * Java type: org.apache.geronimo.xbeans.geronimo.GerPartitionedpoolType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.impl;
009 /**
010 * An XML partitionedpoolType(@http://geronimo.apache.org/xml/ns/j2ee/connector-1.2).
011 *
012 * This is a complex type.
013 */
014 public class GerPartitionedpoolTypeImpl extends org.apache.geronimo.xbeans.geronimo.impl.GerSinglepoolTypeImpl implements org.apache.geronimo.xbeans.geronimo.GerPartitionedpoolType
015 {
016
017 public GerPartitionedpoolTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName PARTITIONBYSUBJECT$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "partition-by-subject");
024 private static final javax.xml.namespace.QName PARTITIONBYCONNECTIONREQUESTINFO$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "partition-by-connectionrequestinfo");
026
027
028 /**
029 * Gets the "partition-by-subject" element
030 */
031 public org.apache.geronimo.xbeans.geronimo.GerEmptyType getPartitionBySubject()
032 {
033 synchronized (monitor())
034 {
035 check_orphaned();
036 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null;
037 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(PARTITIONBYSUBJECT$0, 0);
038 if (target == null)
039 {
040 return null;
041 }
042 return target;
043 }
044 }
045
046 /**
047 * True if has "partition-by-subject" element
048 */
049 public boolean isSetPartitionBySubject()
050 {
051 synchronized (monitor())
052 {
053 check_orphaned();
054 return get_store().count_elements(PARTITIONBYSUBJECT$0) != 0;
055 }
056 }
057
058 /**
059 * Sets the "partition-by-subject" element
060 */
061 public void setPartitionBySubject(org.apache.geronimo.xbeans.geronimo.GerEmptyType partitionBySubject)
062 {
063 synchronized (monitor())
064 {
065 check_orphaned();
066 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null;
067 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(PARTITIONBYSUBJECT$0, 0);
068 if (target == null)
069 {
070 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(PARTITIONBYSUBJECT$0);
071 }
072 target.set(partitionBySubject);
073 }
074 }
075
076 /**
077 * Appends and returns a new empty "partition-by-subject" element
078 */
079 public org.apache.geronimo.xbeans.geronimo.GerEmptyType addNewPartitionBySubject()
080 {
081 synchronized (monitor())
082 {
083 check_orphaned();
084 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null;
085 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(PARTITIONBYSUBJECT$0);
086 return target;
087 }
088 }
089
090 /**
091 * Unsets the "partition-by-subject" element
092 */
093 public void unsetPartitionBySubject()
094 {
095 synchronized (monitor())
096 {
097 check_orphaned();
098 get_store().remove_element(PARTITIONBYSUBJECT$0, 0);
099 }
100 }
101
102 /**
103 * Gets the "partition-by-connectionrequestinfo" element
104 */
105 public org.apache.geronimo.xbeans.geronimo.GerEmptyType getPartitionByConnectionrequestinfo()
106 {
107 synchronized (monitor())
108 {
109 check_orphaned();
110 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null;
111 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(PARTITIONBYCONNECTIONREQUESTINFO$2, 0);
112 if (target == null)
113 {
114 return null;
115 }
116 return target;
117 }
118 }
119
120 /**
121 * True if has "partition-by-connectionrequestinfo" element
122 */
123 public boolean isSetPartitionByConnectionrequestinfo()
124 {
125 synchronized (monitor())
126 {
127 check_orphaned();
128 return get_store().count_elements(PARTITIONBYCONNECTIONREQUESTINFO$2) != 0;
129 }
130 }
131
132 /**
133 * Sets the "partition-by-connectionrequestinfo" element
134 */
135 public void setPartitionByConnectionrequestinfo(org.apache.geronimo.xbeans.geronimo.GerEmptyType partitionByConnectionrequestinfo)
136 {
137 synchronized (monitor())
138 {
139 check_orphaned();
140 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null;
141 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(PARTITIONBYCONNECTIONREQUESTINFO$2, 0);
142 if (target == null)
143 {
144 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(PARTITIONBYCONNECTIONREQUESTINFO$2);
145 }
146 target.set(partitionByConnectionrequestinfo);
147 }
148 }
149
150 /**
151 * Appends and returns a new empty "partition-by-connectionrequestinfo" element
152 */
153 public org.apache.geronimo.xbeans.geronimo.GerEmptyType addNewPartitionByConnectionrequestinfo()
154 {
155 synchronized (monitor())
156 {
157 check_orphaned();
158 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null;
159 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(PARTITIONBYCONNECTIONREQUESTINFO$2);
160 return target;
161 }
162 }
163
164 /**
165 * Unsets the "partition-by-connectionrequestinfo" element
166 */
167 public void unsetPartitionByConnectionrequestinfo()
168 {
169 synchronized (monitor())
170 {
171 check_orphaned();
172 get_store().remove_element(PARTITIONBYCONNECTIONREQUESTINFO$2, 0);
173 }
174 }
175 }