Issue Details (XML | Word | Printable)

Key: JDO-462
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Add methods to PersistenceManager and PersistenceManagerFactory to get server Date and set TimeZoneID

Created: 06/Feb/07 10:28 PM   Updated: 20/Feb/07 11:35 PM
Return to search
Component/s: api2, api2-legacy
Affects Version/s: JDO 2 final
Fix Version/s: JDO 2 maintenance release 1

Time Tracking:
Not Specified

Resolution Date: 20/Feb/07 11:35 PM


 Description  « Hide
Add methods to PersistenceManager and PersistenceManagerFactory to allow a user to get the current time and date from the server. Allow the PersistenceManagerFactory to be configured statically with TimeZone ID in case the information is not available from the server itself.

This will add a method to PersistenceManager java.util.Date getServerDate() and to PersistenceManagerFactory get/setServerTimeZoneID. The PersistenceManagerFactory methods are needed in case the information needed to construct the Date are not available via the connection to the server itself.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell added a comment - 15/Feb/07 11:48 PM
Updated the description to match the specification.

Craig Russell added a comment - 15/Feb/07 11:52 PM
Please see related issue JDO-445 for the combined patch for this issue.

Craig Russell added a comment - 20/Feb/07 11:35 PM
svn commit -m "JDO-445 JDO-449 JDO-462 Updated PersistenceManager and PersistenceManagerFactory with new methods" api20/src/java/javax/jdo/PersistenceManagerFactory.java api20/src/java/javax/jdo/PersistenceManager.java tck20/src/conf/jdo-2_0-signatures.txt
Sending api20/src/java/javax/jdo/PersistenceManager.java
Sending api20/src/java/javax/jdo/PersistenceManagerFactory.java
Sending tck20/src/conf/jdo-2_0-signatures.txt
Transmitting file data ...
Committed revision 509809.