Examples of updateByExample()


Examples of mbg.test.ib2j2.generated.conditional.dao.AwfulTableDAO.updateByExample()

            newRecord.setId5(new Integer(555));
            newRecord.setId6(new Integer(666));
            newRecord.setId7(new Integer(777));
            AwfulTableExample example = new AwfulTableExample();
            example.createCriteria().andEMailLike("fred2@%");
            int rows = dao.updateByExample(newRecord, example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria().andCustomerIdEqualTo(new Integer(58));
            List answer = dao.selectByExample(example);
View Full Code Here

Examples of mbg.test.ib2j2.generated.conditional.dao.FieldsblobsDAO.updateByExample()

            Fieldsblobs newRecord = new Fieldsblobs();
            newRecord.setFirstname("Scott");
            newRecord.setLastname("Doe");
            FieldsblobsExample example = new FieldsblobsExample();
            example.createCriteria().andFirstnameLike("S%");
            int rows = dao.updateByExample(newRecord, example);
            assertEquals(1, rows);
           
            List answer = dao.selectByExampleWithBLOBs(example);
            assertEquals(1, answer.size());
           
View Full Code Here

Examples of mbg.test.ib2j2.generated.conditional.dao.FieldsonlyDAO.updateByExample()

            record = new Fieldsonly();
            record.setIntegerfield(new Integer(22));
            FieldsonlyExample example = new FieldsonlyExample();
            example.createCriteria().andIntegerfieldEqualTo(new Integer(5));
           
            int rows = dao.updateByExample(record, example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria().andIntegerfieldEqualTo(new Integer(22));
            List answer = dao.selectByExample(example);
View Full Code Here

Examples of mbg.test.ib2j2.generated.conditional.dao.PkfieldsDAO.updateByExample()

            PkfieldsExample example = new PkfieldsExample();
            example.createCriteria()
                .andId1EqualTo(new Integer(3))
                .andId2EqualTo(new Integer(4));
           
            int rows = dao.updateByExample(record, example);
            assertEquals(1, rows);
           
            example.clear();
            example.createCriteria()
                .andFirstnameEqualTo("Fred")
View Full Code Here

Examples of mbg.test.ib2j2.generated.conditional.dao.PkonlyDAO.updateByExample()

            example.createCriteria()
                .andIdEqualTo(new Integer(7));
            key = new PkonlyKey();
            key.setSeqNum(new Integer(3));
            key.setId(new Integer(22));
            int rows = dao.updateByExample(key, example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria()
                .andIdEqualTo(new Integer(22))
View Full Code Here

Examples of mbg.test.ib2j2.generated.flat.dao.AwfulTableDAO.updateByExample()

            newRecord.setId5(new Integer(555));
            newRecord.setId6(new Integer(666));
            newRecord.setId7(new Integer(777));
            AwfulTableExample example = new AwfulTableExample();
            example.createCriteria().andEMailLike("fred2@%");
            int rows = dao.updateByExample(newRecord, example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria().andCustomerIdEqualTo(new Integer(58));
            List answer = dao.selectByExample(example);
View Full Code Here

Examples of mbg.test.ib2j2.generated.flat.dao.FieldsonlyDAO.updateByExample()

            record = new Fieldsonly();
            record.setIntegerfield(new Integer(22));
            FieldsonlyExample example = new FieldsonlyExample();
            example.createCriteria().andIntegerfieldEqualTo(new Integer(5));
           
            int rows = dao.updateByExample(record, example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria().andIntegerfieldEqualTo(new Integer(22));
            List answer = dao.selectByExample(example);
View Full Code Here

Examples of mbg.test.ib2j2.generated.flat.dao.PkfieldsDAO.updateByExample()

            PkfieldsExample example = new PkfieldsExample();
            example.createCriteria()
                .andId1EqualTo(new Integer(3))
                .andId2EqualTo(new Integer(4));
           
            int rows = dao.updateByExample(record, example);
            assertEquals(1, rows);
           
            example.clear();
            example.createCriteria()
                .andFirstnameEqualTo("Fred")
View Full Code Here

Examples of mbg.test.ib2j2.generated.flat.dao.PkonlyDAO.updateByExample()

            example.createCriteria()
                .andIdEqualTo(new Integer(7));
            key = new Pkonly();
            key.setSeqNum(new Integer(3));
            key.setId(new Integer(22));
            int rows = dao.updateByExample(key, example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria()
                .andIdEqualTo(new Integer(22))
View Full Code Here

Examples of mbg.test.ib2j2.generated.hierarchical.dao.AwfulTableDAO.updateByExample()

            newRecord.setId5(new Integer(555));
            newRecord.setId6(new Integer(666));
            newRecord.setId7(new Integer(777));
            AwfulTableExample example = new AwfulTableExample();
            example.createCriteria().andEMailLike("fred2@%");
            int rows = dao.updateByExample(newRecord, example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria().andCustomerIdEqualTo(new Integer(58));
            List answer = dao.selectByExample(example);
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.