Examples of OIntegerFkWithDefault


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

     *
     * @throws Exception if a database error occurs.
     */
    public void testGetForeignKeyForDefaultedObjectIntNull() throws Exception
    {
        OIntegerFkWithDefault oIntegerFk = new OIntegerFkWithDefault();
        oIntegerFk.setFk(null);
        ObjectKey foreignKey = oIntegerFk.getForeignKeyForOIntegerPk();
        assertNull(foreignKey.getValue());
    }
View Full Code Here

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

     *
     * @throws Exception if a database error occurs.
     */
    public void testGetForeignKeyForDefaultedObjectIntZero() throws Exception
    {
        OIntegerFkWithDefault oIntegerFk = new OIntegerFkWithDefault();
        oIntegerFk.setFk(0);
        ObjectKey foreignKey = oIntegerFk.getForeignKeyForOIntegerPk();
        assertEquals(new NumberKey(0), foreignKey);
    }
View Full Code Here

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

     *
     * @throws Exception if a database error occurs.
     */
    public void testGetForeignKeyForDefaultedObjectIntDefault() throws Exception
    {
        OIntegerFkWithDefault oIntegerFk = new OIntegerFkWithDefault();
        oIntegerFk.setFk(2);
        ObjectKey foreignKey = oIntegerFk.getForeignKeyForOIntegerPk();
        assertEquals(new NumberKey(2), foreignKey);
    }
View Full Code Here

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

     *
     * @throws Exception if a database error occurs.
     */
    public void testGetForeignKeyForDefaultedObjectIntNotZero() throws Exception
    {
        OIntegerFkWithDefault oIntegerFk = new OIntegerFkWithDefault();
        oIntegerFk.setFk(3);
        ObjectKey foreignKey = oIntegerFk.getForeignKeyForOIntegerPk();
        assertEquals(new NumberKey(3), foreignKey);
    }
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.