114 Primary interfaces and classes interface Extent +iterator(
PersistenceCapable 115 Candidate Class: BusinessPartner Has Subclasses: true PersistenceManager getPersistenceManager() This method returns a reference to the persistence manager from which the extent was obtained. void close(Iterator i) This method closes an Iterator previously obtained from the Extent. Subsequent to this, the iterator s hasNext() method will return false. However, the extent can still be used to obtain further iterators or as the candi date collection for queries. void closeAll() This method closes all open (i.e. not yet closed) Iterators that have been pre viously obtained from the extent. Iterator iterator() The Iterator returned from this method can be used to iterate through the contents of the extent. The objects returned at each call to the iterator s next() method will be persistent JDO instances of the candidate class or sub classes thereof. 6.6 PersistenceCapable JDO is split into two packages. Package javax.jdo is the API and contains classes and interfaces that applications will use. Package javax.jdo.spi is the SPI containing those classes and interfaces internal to JDO implementations. The PersistenceCapable interface, which is implemented by hand coding or by enhancement by all persistence-capable classes, is part of the SPI. The operations present in the PersistenceCapable interface all have names beginning with jdo . Thus, to avoid potential conflicts, you should not use this prefix for methods in your persistence-capable classes. These methods allow the persistence infrastructure to interrogate and manipulate persistent field values and perform a number of administrative functions, such as state interrogation. Application developers should never make use of the PersistenceCapable interface. All of the functionality they require is available through the PersistenceManager interface and the JDOHelper class. Indeed, even the name and structure of the PersistenceCapable interface represent implementation choices internal to JDO. The principle of encapsulation dictates that applications maintain a clear separation between the external and internal
Note: If you are looking for best hosting provider to host and run your tomcat application check Astra tomcat hosting services