Package org.apache.torque.test

Examples of org.apache.torque.test.LargePk


                (Long) null,
                Criteria.NOT_EQUAL);
        LargePkPeer.doDelete(criteria);

        long longId = 8771507845873286l;
        LargePk largePk = new LargePk();
        largePk.setLargePkId(longId);
        largePk.setName("testLargePk");
        largePk.save();

        List largePkList = LargePkPeer.doSelect(new Criteria());
        LargePk readLargePk = (LargePk) largePkList.get(0);
        assertTrue("the inserted Id, " + largePk.getLargePkId()
            + " , and the read id, " + readLargePk.getLargePkId()
        + " , should be equal",
        readLargePk.getLargePkId() == largePk.getLargePkId());
        assertTrue("the inserted Id, " + largePk.getLargePkId()
            + " , should be equal to " + longId,
            longId == largePk.getLargePkId());
    }
View Full Code Here


                LargePkPeer.LARGE_PK_ID,
                (Long) null,
                Criteria.NOT_EQUAL);
        LargePkPeer.doDelete(criteria);

        LargePk largePk = new LargePk();
        largePk.setLargePkId(1);
        largePk.setName("testLargePk");
        largePk.save();

        largePk = new LargePk();
        largePk.setLargePkId(2);
        largePk.setName("testLargePk");
        largePk.save();

        criteria = new Criteria();
        criteria.add(LargePkPeer.LARGE_PK_ID, 2, Criteria.LESS_THAN);
        LargePkPeer.addSelectColumns(criteria);
        List result = BasePeer.doPSSelect(criteria);
View Full Code Here

                (Long) null,
                Criteria.NOT_EQUAL);
        LargePkPeer.doDelete(criteria);

        long longId = 8771507845873286l;
        LargePk largePk = new LargePk();
        largePk.setLargePkId(longId);
        largePk.setName("testLargePk");
        largePk.save();
       
        List largePkList = LargePkPeer.doSelect(new Criteria());
        LargePk readLargePk = (LargePk) largePkList.get(0);
        assertTrue("the inserted Id, " + largePk.getLargePkId()
            + " , and the read id, " + readLargePk.getLargePkId()
        + " , should be equal",
        readLargePk.getLargePkId() == largePk.getLargePkId());
        assertTrue("the inserted Id, " + largePk.getLargePkId()
            + " , should be equal to " + longId,
            longId == largePk.getLargePkId());
    }
View Full Code Here

                LargePkPeer.LARGE_PK_ID,
                (Long) null,
                Criteria.NOT_EQUAL);
        LargePkPeer.doDelete(criteria);

        LargePk largePk = new LargePk();
        largePk.setLargePkId(1);
        largePk.setName("testLargePk");
        largePk.save();
       
        largePk = new LargePk();
        largePk.setLargePkId(2);
        largePk.setName("testLargePk");
        largePk.save();
       
        criteria = new Criteria();
        criteria.add(LargePkPeer.LARGE_PK_ID, 2, Criteria.LESS_THAN);
        LargePkPeer.addSelectColumns(criteria);
        List result = BasePeer.doPSSelect(criteria);
View Full Code Here

TOP

Related Classes of org.apache.torque.test.LargePk

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.