Package org.conserve.objects

Examples of org.conserve.objects.DateObject


   */
  @Test
  public void testSqlDate() throws Exception
  {
    PersistenceManager persist = new PersistenceManager(driver, database, login, password);
    DateObject dateO = new DateObject();
    dateO.setDate(new java.sql.Date(System.currentTimeMillis()));
    dateO.setTime(new java.sql.Time(System.currentTimeMillis()));
    dateO.setTimeStamp(new java.sql.Timestamp(System.currentTimeMillis()));
    persist.saveObject(dateO);

    // make sure only one object exists
    List<Object> all = persist.getObjectsMatching(new Object());
    assertEquals(1, all.size());
View Full Code Here

TOP

Related Classes of org.conserve.objects.DateObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.