View Javadoc

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  
18  package javax.jdo;
19  
20  /***
21   * Constant values used in JDO.
22   *
23   * @since 2.1
24   */
25  public interface Constants {
26  
27      /***
28       * The name of the standard service configuration resource text file containing
29       * the name of an implementation of {@link PersistenceManagerFactory}.
30       * Constant value is <code>META-INF/services/javax.jdo.PersistenceManagerFactory</code>.
31       *
32       * @since 2.1
33       */
34      static String SERVICE_LOOKUP_PMF_RESOURCE_NAME
35          = "META-INF/services/javax.jdo.PersistenceManagerFactory";
36  
37      /***
38       * The name of the standard JDO configuration resource file(s).
39       * Constant value is <code>META-INF/jdoconfig.xml</code>.
40       *
41       * @since 2.1
42       */
43      static String JDOCONFIG_RESOURCE_NAME
44          = "META-INF/jdoconfig.xml";
45  
46      /***
47       * The standard JDO configuration schema namespace.
48       * Constant value is <code>http://java.sun.com/xml/ns/jdo/jdoconfig</code>.
49       *
50       * @since 2.1
51       */
52      static String JDOCONFIG_XSD_NS
53          = "http://java.sun.com/xml/ns/jdo/jdoconfig";
54  
55      /***
56       * The standard JDO metadata schema namespace.
57       * Constant value is <code>http://java.sun.com/xml/ns/jdo/jdo</code>.
58       *
59       * @since 2.1
60       */
61      static String JDO_XSD_NS
62          = "http://java.sun.com/xml/ns/jdo/jdo";
63  
64      /***
65       * The standard JDO object-repository mapping schema namespace.
66       * Constant value is <code>http://java.sun.com/xml/ns/jdo/orm</code>.
67       *
68       * @since 2.1
69       */
70      static String ORM_XSD_NS
71          = "http://java.sun.com/xml/ns/jdo/orm";
72  
73      /***
74       * The standard JDO query schema namespace.
75       * Constant value is <code>http://java.sun.com/xml/ns/jdo/jdoquery</code>.
76       *
77       * @since 2.1
78       */
79      static String JDOQUERY_XSD_NS
80          = "http://java.sun.com/xml/ns/jdo/jdoquery";
81  
82      /***
83       * The name of the persistence manager factory element in the JDO
84       * configuration file.
85       * Constant value is <code>persistence-manager-factory</code>.
86       *
87       * @since 2.1
88       */
89      static String ELEMENT_PERSISTENCE_MANAGER_FACTORY
90          = "persistence-manager-factory";
91  
92      /***
93       * The name of the persistence manager factory element's "class" attribute.
94       *
95       * @since 2.1
96       */
97      static String PMF_ATTRIBUTE_CLASS
98          = "class";
99      /***
100      * The name of the persistence manager factory element's
101      * "name" attribute.
102      *
103      * @since 2.1
104      */
105     static String PMF_ATTRIBUTE_NAME
106         = "name";
107     /***
108      * The name of the persistence manager factory element's
109      * "persistence-unit-name" attribute.
110      *
111      * @since 2.1
112      */
113     static String PMF_ATTRIBUTE_PERSISTENCE_UNIT_NAME
114         = "persistence-unit-name";
115     /***
116      * The name of the persistence manager factory element's "optimistic"
117      * attribute.
118      *
119      * @since 2.1
120      */
121     static String PMF_ATTRIBUTE_OPTIMISTIC
122         = "optimistic";
123     /***
124      * The name of the persistence manager factory element's "retain-values"
125      * attribute.
126      *
127      * @since 2.1
128      */
129     static String PMF_ATTRIBUTE_RETAIN_VALUES
130         = "retain-values";
131     /***
132      * The name of the persistence manager factory element's "restore-values"
133      * attribute.
134      *
135      * @since 2.1
136      */
137     static String PMF_ATTRIBUTE_RESTORE_VALUES
138         = "restore-values";
139     /***
140      * The name of the persistence manager factory element's "ignore-cache"
141      * attribute.
142      *
143      * @since 2.1
144      */
145     static String PMF_ATTRIBUTE_IGNORE_CACHE
146         = "ignore-cache";
147     /***
148      * The name of the persistence manager factory element's
149      * "nontransactional-read" attribute.
150      *
151      * @since 2.1
152      */
153     static String PMF_ATTRIBUTE_NONTRANSACTIONAL_READ
154         = "nontransactional-read";
155     /***
156      * The name of the persistence manager factory element's
157      * "nontransactional-write" attribute.
158      *
159      * @since 2.1
160      */
161     static String PMF_ATTRIBUTE_NONTRANSACTIONAL_WRITE
162         = "nontransactional-write";
163     /***
164      * The name of the persistence manager factory element's "multithreaded"
165      * attribute.
166      *
167      * @since 2.1
168      */
169     static String PMF_ATTRIBUTE_MULTITHREADED
170         = "multithreaded";
171     /***
172      * The name of the persistence manager factory element's
173      * "connection-driver-name" attribute.
174      *
175      * @since 2.1
176      */
177     static String PMF_ATTRIBUTE_CONNECTION_DRIVER_NAME
178         = "connection-driver-name";
179     /***
180      * The name of the persistence manager factory element's
181      * "connection-user-name" attribute.
182      *
183      * @since 2.1
184      */
185     static String PMF_ATTRIBUTE_CONNECTION_USER_NAME
186         = "connection-user-name";
187     /***
188      * The name of the persistence manager factory element's
189      * "connection-password" attribute.
190      *
191      * @since 2.1
192      */
193     static String PMF_ATTRIBUTE_CONNECTION_PASSWORD
194         = "connection-password";
195     /***
196      * The name of the persistence manager factory element's "connection-url"
197      * attribute.
198      *
199      * @since 2.1
200      */
201     static String PMF_ATTRIBUTE_CONNECTION_URL
202         = "connection-url";
203     /***
204      * The name of the persistence manager factory element's
205      * "connection-factory-name" attribute.
206      *
207      * @since 2.1
208      */
209     static String PMF_ATTRIBUTE_CONNECTION_FACTORY_NAME
210         = "connection-factory-name";
211     /***
212      * The name of the persistence manager factory element's
213      * "connection-factory2-name" attribute.
214      *
215      * @since 2.1
216      */
217     static String PMF_ATTRIBUTE_CONNECTION_FACTORY2_NAME
218         = "connection-factory2-name";
219     /***
220      * The name of the persistence manager factory element's
221      * "detach-all-on-commit" attribute.
222      *
223      * @since 2.1
224      */
225     static String PMF_ATTRIBUTE_DETACH_ALL_ON_COMMIT
226         = "detach-all-on-commit";
227     /***
228      * The name of the persistence manager factory element's
229      * "copy-on-attach" attribute.
230      *
231      * @since 2.1
232      */
233     static String PMF_ATTRIBUTE_COPY_ON_ATTACH
234         = "copy-on-attach";
235     /***
236      * The name of the persistence manager factory element's "mapping"
237      * attribute.
238      *
239      * @since 2.1
240      */
241     static String PMF_ATTRIBUTE_MAPPING
242         = "mapping";
243     /***
244      * The name of the persistence manager factory element's
245      * "server-time-zone-id" attribute.
246      *
247      * @since 2.1
248      */
249     static String PMF_ATTRIBUTE_SERVER_TIME_ZONE_ID
250         = "server-time-zone-id";
251 
252     /***
253      * The name of the persistence manager factory property elements in the JDO
254      * configuration file.
255      */
256     static String ELEMENT_PROPERTY
257         = "property";
258     /***
259      * The name of the persistence manager factory property element's "name"
260      * attribute.
261      */
262     static String PROPERTY_ATTRIBUTE_NAME
263         = "name";
264     /***
265      * The name of the persistence manager factory property element's "value"
266      * attribute.
267      */
268     static String PROPERTY_ATTRIBUTE_VALUE
269         = "value";
270 
271     /***
272      * The name of the instance lifecycle listener element in the JDO
273      * configuration file.
274      */
275     static String ELEMENT_INSTANCE_LIFECYCLE_LISTENER
276         = "instance-lifecycle-listener";
277 
278     /***
279      * The name of the instance lifecycle listener element's "listener"
280      * attribute.
281      */
282     static String INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_LISTENER
283         = "listener";
284     /***
285      * The name of the instance lifecycle listener element's "classes"
286      * attribute.
287      */
288     static String INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_CLASSES
289         = "classes";
290 
291     /***
292      * "javax.jdo.option.TransientTransactional"
293      *
294      * @see PersistenceManagerFactory#supportedOptions()
295      * @since 2.1
296      */
297     static String OPTION_TRANSACTIONAL_TRANSIENT
298         = "javax.jdo.option.TransientTransactional";
299     /***
300      * "javax.jdo.option.NontransactionalRead"
301      *
302      * @see PersistenceManagerFactory#supportedOptions()
303      * @since 2.1
304      */
305     static String OPTION_NONTRANSACTIONAL_READ
306         = "javax.jdo.option.NontransactionalRead";
307     /***
308      * "javax.jdo.option.NontransactionalWrite"
309      *
310      * @see PersistenceManagerFactory#supportedOptions()
311      * @since 2.1
312      */
313     static String OPTION_NONTRANSACTIONAL_WRITE
314         = "javax.jdo.option.NontransactionalWrite";
315     /***
316      * "javax.jdo.option.RetainValues"
317      *
318      * @see PersistenceManagerFactory#supportedOptions()
319      * @since 2.1
320      */
321     static String OPTION_RETAIN_VALUES
322         = "javax.jdo.option.RetainValues";
323     /***
324      * "javax.jdo.option.Optimistic"
325      *
326      * @see PersistenceManagerFactory#supportedOptions()
327      * @since 2.1
328      */
329     static String OPTION_OPTIMISTIC
330         = "javax.jdo.option.Optimistic";
331     /***
332      * "javax.jdo.option.ApplicationIdentity"
333      *
334      * @see PersistenceManagerFactory#supportedOptions()
335      * @since 2.1
336      */
337     static String OPTION_APPLICATION_IDENTITY
338         = "javax.jdo.option.ApplicationIdentity";
339     /***
340      * "javax.jdo.option.DatastoreIdentity"
341      *
342      * @see PersistenceManagerFactory#supportedOptions()
343      * @since 2.1
344      */
345     static String OPTION_DATASTORE_IDENTITY
346         = "javax.jdo.option.DatastoreIdentity";
347     /***
348      * "javax.jdo.option.NonDurableIdentity"
349      *
350      * @see PersistenceManagerFactory#supportedOptions()
351      * @since 2.1
352      */
353     static String OPTION_NONDURABLE_IDENTITY
354         = "javax.jdo.option.NonDurableIdentity";
355     /***
356      * "javax.jdo.option.ArrayList"
357      *
358      * @see PersistenceManagerFactory#supportedOptions()
359      * @since 2.1
360      */
361     static String OPTION_ARRAYLIST
362         = "javax.jdo.option.ArrayList";
363     /***
364      * "javax.jdo.option.LinkedList"
365      *
366      * @see PersistenceManagerFactory#supportedOptions()
367      * @since 2.1
368      */
369     static String OPTION_LINKEDLIST
370         = "javax.jdo.option.LinkedList";
371     /***
372      * "javax.jdo.option.TreeMap"
373      *
374      * @see PersistenceManagerFactory#supportedOptions()
375      * @since 2.1
376      */
377     static String OPTION_TREEMAP
378         = "javax.jdo.option.TreeMap";
379     /***
380      * "javax.jdo.option.TreeSet"
381      *
382      * @see PersistenceManagerFactory#supportedOptions()
383      * @since 2.1
384      */
385     static String OPTION_TREESET
386         = "javax.jdo.option.TreeSet";
387     /***
388      * "javax.jdo.option.Vector"
389      *
390      * @see PersistenceManagerFactory#supportedOptions()
391      * @since 2.1
392      */
393     static String OPTION_VECTOR
394         = "javax.jdo.option.Vector";
395     /***
396      * "javax.jdo.option.Array"
397      *
398      * @see PersistenceManagerFactory#supportedOptions()
399      * @since 2.1
400      */
401     static String OPTION_ARRAY
402         = "javax.jdo.option.Array";
403     /***
404      * "javax.jdo.option.NullCollection"
405      *
406      * @see PersistenceManagerFactory#supportedOptions()
407      * @since 2.1
408      */
409     static String OPTION_NULL_COLLECTION
410         = "javax.jdo.option.NullCollection";
411     /***
412      * "javax.jdo.option.ChangeApplicationIdentity"
413      *
414      * @see PersistenceManagerFactory#supportedOptions()
415      * @since 2.1
416      */
417     static String OPTION_CHANGE_APPLICATION_IDENTITY
418         = "javax.jdo.option.ChangeApplicationIdentity";
419     /***
420      * "javax.jdo.option.BinaryCompatibility"
421      *
422      * @see PersistenceManagerFactory#supportedOptions()
423      * @since 2.1
424      */
425     static String OPTION_BINARY_COMPATIBILITY
426         = "javax.jdo.option.BinaryCompatibility";
427     /***
428      * "javax.jdo.option.GetDataStoreConnection"
429      *
430      * @see PersistenceManagerFactory#supportedOptions()
431      * @since 2.1
432      */
433     static String OPTION_GET_DATASTORE_CONNECTION
434         = "javax.jdo.option.GetDataStoreConnection";
435     /***
436      * "javax.jdo.option.GetJDBCConnection"
437      *
438      * @see PersistenceManagerFactory#supportedOptions()
439      * @since 2.1
440      */
441     static String OPTION_GET_JDBC_CONNECTION
442         = "javax.jdo.option.GetJDBCConnection";
443     /***
444      * "javax.jdo.query.SQL"
445      *
446      * @see PersistenceManagerFactory#supportedOptions()
447      * @since 2.1
448      */
449     static String OPTION_QUERY_SQL
450         = "javax.jdo.query.SQL";
451     /***
452      * "javax.jdo.option.UnconstrainedQueryVariables"
453      *
454      * @see PersistenceManagerFactory#supportedOptions()
455      * @since 2.1
456      */
457     static String OPTION_UNCONSTRAINED_QUERY_VARIABLES
458         = "javax.jdo.option.UnconstrainedQueryVariables";
459     /***
460      * "javax.jdo.option.version.DateTime"
461      *
462      * @see PersistenceManagerFactory#supportedOptions()
463      * @since 2.1
464      */
465     static String OPTION_VERSION_DATETIME
466         = "javax.jdo.option.version.DateTime";
467     /***
468      * "javax.jdo.option.version.StateImage"
469      *
470      * @see PersistenceManagerFactory#supportedOptions()
471      * @since 2.1
472      */
473     static String OPTION_VERSION_STATE_IMAGE
474         = "javax.jdo.option.version.StateImage";
475     /***
476      * "javax.jdo.option.PreDirtyEvent"
477      *
478      * @see PersistenceManagerFactory#supportedOptions()
479      * @since 2.1
480      */
481     static String OPTION_PREDIRTY_EVENT
482         = "javax.jdo.option.PreDirtyEvent";
483     /***
484      * "javax.jdo.option.mapping.HeterogeneousObjectType"
485      *
486      * @see PersistenceManagerFactory#supportedOptions()
487      * @since 2.1
488      */
489     static String OPTION_MAPPING_HETEROGENEOUS_OBJECT_TYPE
490         = "javax.jdo.option.mapping.HeterogeneousObjectType";
491     /***
492      * "javax.jdo.option.mapping.HeterogeneousInterfaceType"
493      *
494      * @see PersistenceManagerFactory#supportedOptions()
495      * @since 2.1
496      */
497     static String OPTION_MAPPING_HETEROGENEOUS_INTERFACE_TYPE
498         = "javax.jdo.option.mapping.HeterogeneousInterfaceType";
499     /***
500      * "javax.jdo.option.mapping.JoinedTablePerClass"
501      *
502      * @see PersistenceManagerFactory#supportedOptions()
503      * @since 2.1
504      */
505     static String OPTION_MAPPING_JOINED_TABLE_PER_CLASS
506         = "javax.jdo.option.mapping.JoinedTablePerClass";
507     /***
508      * "javax.jdo.option.mapping.JoinedTablePerConcreteClass"
509      *
510      * @see PersistenceManagerFactory#supportedOptions()
511      * @since 2.1
512      */
513     static String OPTION_MAPPING_JOINED_TABLE_PER_CONCRETE_CLASS
514         = "javax.jdo.option.mapping.JoinedTablePerConcreteClass";
515     /***
516      * "javax.jdo.option.mapping.NonJoinedTablePerConcreteClass"
517      *
518      * @see PersistenceManagerFactory#supportedOptions()
519      * @since 2.1
520      */
521     static String OPTION_MAPPING_NON_JOINED_TABLE_PER_CONCRETE_CLASS
522         = "javax.jdo.option.mapping.NonJoinedTablePerConcreteClass";
523     /***
524      * "javax.jdo.option.mapping.RelationSubclassTable"
525      *
526      * @see PersistenceManagerFactory#supportedOptions()
527      * @since 2.1
528      */
529     static String OPTION_MAPPING_RELATION_SUBCLASS_TABLE
530         = "javax.jdo.option.mapping.RelationSubclassTable";
531 
532     /***
533      * "javax.jdo.PersistenceManagerFactoryClass"
534      *
535      * @see JDOHelper#getPersistenceManagerFactory(java.util.Map)
536      * @since 2.1
537      */
538     static String PROPERTY_PERSISTENCE_MANAGER_FACTORY_CLASS
539         = "javax.jdo.PersistenceManagerFactoryClass";
540 
541     /***
542      * "javax.jdo.option.Optimistic"
543      *
544      * @see PersistenceManagerFactory#getOptimistic()
545      * @since 2.1
546      */
547     static String PROPERTY_OPTIMISTIC
548         = "javax.jdo.option.Optimistic";
549     /***
550      * "javax.jdo.option.RetainValues"
551      *
552      * @see PersistenceManagerFactory#getRetainValues()
553      * @since 2.1
554      */
555     static String PROPERTY_RETAIN_VALUES
556         = "javax.jdo.option.RetainValues";
557     /***
558      * "javax.jdo.option.RestoreValues"
559      *
560      * @see PersistenceManagerFactory#getRestoreValues()
561      * @since 2.1
562      */
563     static String PROPERTY_RESTORE_VALUES
564         = "javax.jdo.option.RestoreValues";
565     /***
566      * "javax.jdo.option.IgnoreCache"
567      *
568      * @see PersistenceManagerFactory#getIgnoreCache()
569      * @since 2.1
570      */
571     static String PROPERTY_IGNORE_CACHE
572         = "javax.jdo.option.IgnoreCache";
573     /***
574      * "javax.jdo.option.NontransactionalRead"
575      *
576      * @see PersistenceManagerFactory#getNontransactionalRead()
577      * @since 2.1
578      */
579     static String PROPERTY_NONTRANSACTIONAL_READ
580         = "javax.jdo.option.NontransactionalRead";
581     /***
582      * "javax.jdo.option.NontransactionalWrite"
583      *
584      * @see PersistenceManagerFactory#getNontransactionalWrite()
585      * @since 2.1
586      */
587     static String PROPERTY_NONTRANSACTIONAL_WRITE
588         = "javax.jdo.option.NontransactionalWrite";
589     /***
590      * "javax.jdo.option.Multithreaded"
591      *
592      * @see PersistenceManagerFactory#getMultithreaded()
593      * @since 2.1
594      */
595     static String PROPERTY_MULTITHREADED
596         = "javax.jdo.option.Multithreaded";
597     /***
598      * "javax.jdo.option.DetachAllOnCommit"
599      *
600      * @see PersistenceManagerFactory#getDetachAllOnCommit()
601      * @since 2.1
602      */
603     static String PROPERTY_DETACH_ALL_ON_COMMIT
604         = "javax.jdo.option.DetachAllOnCommit";
605     /***
606      * "javax.jdo.option.CopyOnAttach"
607      *
608      * @see PersistenceManagerFactory#getCopyOnAttach()
609      * @since 2.1
610      */
611     static String PROPERTY_COPY_ON_ATTACH
612         = "javax.jdo.option.CopyOnAttach";
613     /***
614      * "javax.jdo.option.ConnectionDriverName"
615      *
616      * @see PersistenceManagerFactory#getConnectionDriverName()
617      * @since 2.1
618      */
619     static String PROPERTY_CONNECTION_DRIVER_NAME
620         = "javax.jdo.option.ConnectionDriverName";
621     /***
622      * "javax.jdo.option.ConnectionUserName"
623      *
624      * @see PersistenceManagerFactory#getConnectionUserName()
625      * @since 2.1
626      */
627     static String PROPERTY_CONNECTION_USER_NAME
628         = "javax.jdo.option.ConnectionUserName";
629     /***
630      * "javax.jdo.option.Password"
631      *
632      * @since 2.1
633      */
634     static String PROPERTY_CONNECTION_PASSWORD
635         = "javax.jdo.option.ConnectionPassword";
636     /***
637      * "javax.jdo.option.ConnectionURL"
638      *
639      * @see PersistenceManagerFactory#getConnectionURL()
640      * @since 2.1
641      */
642     static String PROPERTY_CONNECTION_URL
643         = "javax.jdo.option.ConnectionURL";
644     /***
645      * "javax.jdo.option.ConnectionFactoryName"
646      *
647      * @see PersistenceManagerFactory#getConnectionFactoryName()
648      * @since 2.1
649      */
650     static String PROPERTY_CONNECTION_FACTORY_NAME
651         = "javax.jdo.option.ConnectionFactoryName";
652     /***
653      * "javax.jdo.option.ConnectionFactory2Name"
654      *
655      * @see PersistenceManagerFactory#getConnectionFactory2Name()
656      * @since 2.1
657      */
658     static String PROPERTY_CONNECTION_FACTORY2_NAME
659         = "javax.jdo.option.ConnectionFactory2Name";
660     /***
661      * "javax.jdo.option.Mapping"
662      *
663      * @see PersistenceManagerFactory#getMapping()
664      * @since 2.1
665      */
666     static String PROPERTY_MAPPING
667         = "javax.jdo.option.Mapping";
668     /***
669      * "javax.jdo.option.PersistenceUnitName"
670      *
671      * @see PersistenceManagerFactory#getPersistenceUnitName()
672      * @since 2.1
673      */
674     static String PROPERTY_PERSISTENCE_UNIT_NAME
675         = "javax.jdo.option.PersistenceUnitName";
676     /***
677      * "javax.jdo.option.Name"
678      *
679      * @see PersistenceManagerFactory#getName()
680      * @since 2.1
681      */
682     static String PROPERTY_NAME
683         = "javax.jdo.option.Name";
684 
685     /***
686      * "javax.jdo.option.spi.ResourceName"
687      * @since 2.1
688      */
689     static String PROPERTY_SPI_RESOURCE_NAME
690         = "javax.jdo.option.spi.ResourceName";
691 
692     /***
693      * "javax.jdo.listener.InstanceLifecycleListener"
694      *
695      * @see PersistenceManagerFactory#addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener,Class[])
696      * @see PersistenceManagerFactory#removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener)
697      */
698     static String PROPERTY_INSTANCE_LIFECYCLE_LISTENER
699         = "javax.jdo.listener.InstanceLifecycleListener";
700 
701     /***
702      * Prefix used to configure
703      * {@link javax.jdo.listener.InstanceLifecycleListener} instances
704      * externally.
705      * To configure an <code>InstanceLifecycleListener</code> via properties,
706      * create a property name with the prefix of
707      * this constant and append the fully qualified listener class name, then
708      * set its value to the comma- or whitespace-delimited list
709      * of persistence-capable classes whose instances are to be observed.
710      * Use no value to indicate that instances of
711      * all persistence-capable classes are to be observed.<br>
712      * For example,<br>
713      * <code>javax.jdo.option.InstanceLifecycleListener.com.example.MyListener=com.example.Foo,com.example.Bar</code><br>
714      * is equivalent to calling<br>
715      * <code>pmf.addInstanceLifecycleListener(new com.example.MyListener(), new Class[] {com.example.Foo.class, com.example.Bar.class});</code><br>
716      * where <code>pmf</code> is an instance of type
717      * <code>PersistenceManagerFactory</code>.
718      *
719      * @see javax.jdo.PersistenceManagerFactory#addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener,Class[])
720      * @since 2.1
721      */
722     static String PROPERTY_PREFIX_INSTANCE_LIFECYCLE_LISTENER
723         = PROPERTY_INSTANCE_LIFECYCLE_LISTENER + ".";
724 
725     /***
726      * Mapping "javax.jdo.mapping.Catalog"
727      *
728      * @since 2.1
729      */
730     static String PROPERTY_MAPPING_CATALOG
731         = "javax.jdo.mapping.Catalog";
732     /***
733      * Mapping "javax.jdo.mapping.Schema"
734      *
735      * @since 2.1
736      */
737     static String PROPERTY_MAPPING_SCHEMA
738         = "javax.jdo.mapping.Schema";
739 
740     /***
741      * Mapping "javax.jdo.option.ServerTimeZoneID"
742      *
743      * @since 2.1
744      */
745     static String PROPERTY_SERVER_TIME_ZONE_ID
746         = "javax.jdo.option.ServerTimeZoneID";
747 
748     /***
749      * Nonconfigurable property constanct "VendorName"
750      *
751      * @see PersistenceManagerFactory#getProperties()
752      * @since 2.1
753      */
754     static String NONCONFIGURABLE_PROPERTY_VENDOR_NAME
755         = "VendorName";
756     /***
757      * Nonconfigurable property constanct "VersionNumber"
758      *
759      * @see PersistenceManagerFactory#getProperties()
760      * @since 2.1
761      */
762     static String NONCONFIGURABLE_PROPERTY_VERSION_NUMBER
763         = "VersionNumber";
764 
765     /***
766      * The value for TransactionType to specify that transactions
767      * are managed by the Java Transactions API, as documented in
768      * JSR-220.
769      *
770      * @since 2.1
771      */
772     static String JTA
773         = "JTA";
774 
775     /***
776      * The value for TransactionType to specify that transactions
777      * are managed by the javax.jdo.Transaction instance, similar
778      * to the usage as documented in JSR-220.
779      *
780      * @since 2.1
781      */
782     static String RESOURCE_LOCAL
783         = "RESOURCE_LOCAL";
784 
785     /***
786      * The name of the resource for the DTD of the standard JDO configuration
787      * file.
788      *
789      * @since 2.1
790      */
791     static String JDOCONFIG_DTD_RESOURCE
792         = "javax/jdo/jdoconfig_2_1.dtd";
793 
794     /***
795      * The name of the resource for the XML schema of the standard JDO
796      * configuration file.
797      *
798      * @since 2.1
799      */
800     static String JDOCONFIG_XSD_RESOURCE
801         = "javax/jdo/jdoconfig_2_1.xsd";
802 
803     /***
804      * The name of the resource for the DTD of the standard JDO metadata file.
805      *
806      * @since 2.1
807      */
808     static String JDO_DTD_RESOURCE
809         = "javax/jdo/jdo_2_0.dtd";
810 
811     /***
812      * The name of the resource for the XML schema of the standard JDO
813      * metadata file.
814      *
815      * @since 2.1
816      */
817     static String JDO_XSD_RESOURCE
818         = "javax/jdo/jdo_2_1.xsd";
819 
820     /***
821      * The name of the resource for the DTD of the standard JDO
822      * object-relational mapping metadata file.
823      *
824      * @since 2.1
825      */
826     static String ORM_DTD_RESOURCE
827         = "javax/jdo/orm_2_0.dtd";
828 
829     /***
830      * The name of the resource for the XML schema of the standard JDO
831      * object-relational mapping metadata file.
832      *
833      * @since 2.1
834      */
835     static String ORM_XSD_RESOURCE
836         = "javax/jdo/orm_2_1.xsd";
837 
838     /***
839      * The name of the resource for the DTD of the standard JDO query
840      * metadata file.
841      *
842      * @since 2.1
843      */
844     static String JDOQUERY_DTD_RESOURCE
845         = "javax/jdo/jdoquery_2_0.dtd";
846 
847     /***
848      * The name of the resource for the XML schema of the standard JDO query
849      * metadata file.
850      *
851      * @since 2.1
852      */
853     static String JDOQUERY_XSD_RESOURCE
854         = "javax/jdo/jdoquery_2_1.xsd";
855 
856     /***
857      * The name of the anonymous PersistenceManagerFactory, which
858      * is the empty string.
859      *
860      * @since 2.1
861      */
862     static String ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME
863         = "";
864 }
865