Package org.apache.torque.test.dbobject

Examples of org.apache.torque.test.dbobject.DateTimeTimestampType.save()


        DateTimeTimestampType dateTimeTimestamp = new DateTimeTimestampType();
        dateTimeTimestamp.setDateValue(new Date());
        dateTimeTimestamp.setTimeValue(new Date());
        dateTimeTimestamp.setTimestampValue(
                new GregorianCalendar(2010, 1, 23).getTime());
        dateTimeTimestamp.save();

        // execute select
        Criteria criteria = new Criteria();
        Date toSelect = new GregorianCalendar(2010, 1, 23).getTime();
        criteria.where(
View Full Code Here


                new GregorianCalendar(2000, 1, 1).getTime());
        dateTimeTimestamp.setTimeValue(
                new GregorianCalendar(2000, 1, 1).getTime());
        dateTimeTimestamp.setTimestampValue(
                new GregorianCalendar(2000, 1, 1).getTime());
        dateTimeTimestamp.save();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.