Package org.apache.torque.test.dbobject

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


                .and(BintBcharTypePeer.BCHAR_OBJECT_VALUE, new Boolean(false))
                .and(BintBcharTypePeer.BINT_OBJECT_VALUE, new Boolean(false));
        List<BintBcharType> selectedList
                = BintBcharTypePeer.doSelect(criteria);
        assertEquals(1, selectedList.size());
        BintBcharType bintBcharType = selectedList.get(0);
        assertEquals("f1", bintBcharType.getId());
    }
View Full Code Here


                .where(BintBcharTypePeer.BCHAR_OBJECT_VALUE, null)
                .and(BintBcharTypePeer.BINT_OBJECT_VALUE, null);
        List<BintBcharType> selectedList
                = BintBcharTypePeer.doSelect(criteria);
        assertEquals(1, selectedList.size());
        BintBcharType bintBcharType = selectedList.get(0);
        assertEquals("null", bintBcharType.getId());
    }
View Full Code Here

        List<BintBcharType> selectedList
                = BintBcharTypePeer.doSelect(criteria);
        assertTrue("Should have read 1 dataset with both values false "
                + "but read " + selectedList.size(),
                selectedList.size() == 1);
        BintBcharType bintBcharType = selectedList.get(0);
        assertEquals("f1", bintBcharType.getId());
    }
View Full Code Here

        List<BintBcharType> selectedList
                = BintBcharTypePeer.doSelect(criteria);
        assertTrue("Should have read 1 dataset complex Criteria "
                + "but read " + selectedList.size(),
                selectedList.size() == 1);
        BintBcharType selected = selectedList.get(0);
        // use trim() for testkey because some databases will return the
        // testkey filled up with blanks, as it is defined as char(10)
        assertTrue("Primary key of data set should be f1 but is "
                + selected.getId(),
                "f1".equals(selected.getId()));
    }
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

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

        // execute
        BintBcharTypePeer.doInsert(columnValues);

        // verify
        BintBcharType bc
                = BintBcharTypePeer.retrieveByPK(new StringKey("new"));
        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(null, bc.getBintObjectValue());
        assertEquals(null, bc.getBcharObjectValue());
    }
View Full Code Here

TOP

Related Classes of org.apache.torque.test.dbobject.BintBcharType

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.