Package org.apache.torque.om

Examples of org.apache.torque.om.StringKey


    public void testReadBooleanIntCharNullValue() throws Exception
    {
        fillTables();

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


        // 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

        // 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

        // execute
        bc.save();

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

    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

    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

    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

        // execute
        BintBcharTypePeer.doInsert(columnValues);

        // verify
        BintBcharType 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

        // execute
        BintBcharTypePeer.doInsert(columnValues);

        // verify
        BintBcharType 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

        // execute
        BintBcharTypePeer.doInsert(columnValues);

        // verify
        BintBcharType 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

TOP

Related Classes of org.apache.torque.om.StringKey

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.