Package com.impetus.client.oraclenosql.entities

Examples of com.impetus.client.oraclenosql.entities.PersonOracleNoSQLAllDataType


   }

    @Test
    public void executeTest()
    {
        PersonOracleNoSQLAllDataType person1 = buildPerson1();
        PersonOracleNoSQLAllDataType person2 = buildPerson2();

        // Insert Records
        persistPerson(person1);
        persistPerson(person2);

        // Find Records
        em.clear();
        PersonOracleNoSQLAllDataType p1 = findById(1234567l);
        PersonOracleNoSQLAllDataType p2 = findById(1234568l);
        assertPerson1(p1);
        assertPerson2(p2);

        // Delete records
        em.remove(p1);
View Full Code Here


    }

    private PersonOracleNoSQLAllDataType buildPerson1()
    {

        PersonOracleNoSQLAllDataType person = new PersonOracleNoSQLAllDataType(1234567l, "Labs", false, 31, 'C',
                (byte) 8, (short) 5, (float) 10.0, 163.12, new Date(Long.parseLong("1344079065781")), new Date(
                        Long.parseLong("1344079067623")), new Date(Long.parseLong("1344079069105")), 2, new Long(
                        3634521523423L), new Double(0.23452342343), new java.sql.Date(new Date(
                        Long.parseLong("1344079061111")).getTime()), new java.sql.Time(new Date(
                        Long.parseLong("1344079062222")).getTime()), new java.sql.Timestamp(new Date(
View Full Code Here

    }

    private PersonOracleNoSQLAllDataType buildPerson2()
    {

        PersonOracleNoSQLAllDataType person = new PersonOracleNoSQLAllDataType(1234568l, "ODC", true, 32, 'A',
                (byte) 10, (short) 8, (float) 9.80, 323.3, new Date(Long.parseLong("1344079063412")), new Date(
                        Long.parseLong("1344079068266")), new Date(Long.parseLong("1344079061078")), 5, new Long(
                        25423452343L), new Double(0.76452343), new java.sql.Date(new Date(
                        Long.parseLong("1344079064444")).getTime()), new java.sql.Time(new Date(
                        Long.parseLong("1344079065555")).getTime()), new java.sql.Timestamp(new Date(
View Full Code Here

TOP

Related Classes of com.impetus.client.oraclenosql.entities.PersonOracleNoSQLAllDataType

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.