Examples of BintBcharType


Examples of org.apache.torque.test.dbobject.BintBcharType

     */
    public void testInsertBooleanIntCharTrueValue() throws Exception
    {
        // prepare
        fillTables();
        BintBcharType bc = new BintBcharType();
        bc.setPrimaryKey("new");
        bc.setBintValue(true);
        bc.setBcharValue(true);
        bc.setBintObjectValue(Boolean.TRUE);
        bc.setBcharObjectValue(Boolean.TRUE);

        // execute
        bc.save();

        // verify
        bc = BintBcharTypePeer.retrieveByPK(new StringKey("new"));
        assertEquals(true, bc.getBintValue());
        assertEquals(true, bc.getBcharValue());
        assertEquals(Boolean.TRUE, bc.getBintObjectValue());
        assertEquals(Boolean.TRUE, bc.getBcharObjectValue());
    }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BintBcharType

     */
    public void testInsertBooleanIntCharFalseValue() throws Exception
    {
        // prepare
        fillTables();
        BintBcharType bc = new BintBcharType();
        bc.setPrimaryKey("new");
        bc.setBintValue(false);
        bc.setBcharValue(false);
        bc.setBintObjectValue(Boolean.FALSE);
        bc.setBcharObjectValue(Boolean.FALSE);

        // execute
        bc.save();

        // verify
        bc = BintBcharTypePeer.retrieveByPK(new StringKey("new"));
        assertEquals(false, bc.getBintValue());
        assertEquals(false, bc.getBcharValue());
        assertEquals(Boolean.FALSE, bc.getBintObjectValue());
        assertEquals(Boolean.FALSE, bc.getBcharObjectValue());
    }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BintBcharType

     */
    public void testInserteBooleanIntCharNullValue() throws Exception
    {
        // prepare
        fillTables();
        BintBcharType bc = new BintBcharType();
        bc.setPrimaryKey("new");
        bc.setBintObjectValue(null);
        bc.setBcharObjectValue(null);

        // execute
        bc.save();

        // verify
        bc = BintBcharTypePeer.retrieveByPK(new StringKey("new"));
        assertEquals(null, bc.getBintObjectValue());
        assertEquals(null, bc.getBcharObjectValue());
    }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BintBcharType

     */
    public void testUpdateBooleanIntCharTrueValue() throws Exception
    {
        // prepare
        fillTables();
        BintBcharType bc
                = BintBcharTypePeer.retrieveByPK(new StringKey("f1"));
        bc.setBintValue(true);
        bc.setBcharValue(true);
        bc.setBintObjectValue(Boolean.TRUE);
        bc.setBcharObjectValue(Boolean.TRUE);

        // execute
        bc.save();

        // verify
        bc = BintBcharTypePeer.retrieveByPK(new StringKey("f1"));
        assertEquals(true, bc.getBintValue());
        assertEquals(true, bc.getBcharValue());
        assertEquals(Boolean.TRUE, bc.getBintObjectValue());
        assertEquals(Boolean.TRUE, bc.getBcharObjectValue());
    }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BintBcharType

     */
    public void testWriteBooleanIntCharFalseValue() throws Exception
    {
        // prepare
        fillTables();
        BintBcharType bc
                = BintBcharTypePeer.retrieveByPK(new StringKey("t1"));
        bc.setBintValue(false);
        bc.setBcharValue(false);
        bc.setBintObjectValue(Boolean.FALSE);
        bc.setBcharObjectValue(Boolean.FALSE);

        // execute
        bc.save();

        // verify
        bc = BintBcharTypePeer.retrieveByPK(new StringKey("t1"));
        assertEquals(false, bc.getBintValue());
        assertEquals(false, bc.getBcharValue());
        assertEquals(Boolean.FALSE, bc.getBintObjectValue());
        assertEquals(Boolean.FALSE, bc.getBcharObjectValue());
    }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BintBcharType

     */
    public void testUpdateBooleanIntCharNullValue() throws Exception
    {
        // prepare
        fillTables();
        BintBcharType bc
                = BintBcharTypePeer.retrieveByPK(new StringKey("t1"));
        bc.setBintObjectValue(null);
        bc.setBcharObjectValue(null);

        // execute
        bc.save();

        // verify
        bc = BintBcharTypePeer.retrieveByPK(new StringKey("t1"));
        assertEquals(null, bc.getBintObjectValue());
        assertEquals(null, bc.getBcharObjectValue());
    }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BintBcharType

                .and(BintBcharTypePeer.BCHAR_OBJECT_VALUE, new Boolean(true))
                .and(BintBcharTypePeer.BINT_OBJECT_VALUE, new Boolean(true));
        List<BintBcharType> selectedList
            = BintBcharTypePeer.doSelect(criteria);
        assertEquals(1, selectedList.size());
        BintBcharType bintBcharType = selectedList.get(0);
        assertEquals("t1", bintBcharType.getId());
    }
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.