Examples of updateByExample()


Examples of mbg.test.ib2j2.generated.hierarchical.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.hierarchical.dao.PkblobsDAO.updateByExample()

            PkblobsKey newRecord = new PkblobsKey();
            newRecord.setId(new Integer(8));
           
            PkblobsExample example = new PkblobsExample();
            example.createCriteria().andIdGreaterThan(new Integer(4));
            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.hierarchical.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.hierarchical.dao.PkfieldsblobsDAO.updateByExample()

            newRecord.setId1(new Integer(5));
            newRecord.setId2(new Integer(8));
            newRecord.setFirstname("Fred");
            PkfieldsblobsExample example = new PkfieldsblobsExample();
            example.createCriteria().andId1EqualTo(new Integer(5));
            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.hierarchical.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.hierarchical.dao.subpackage.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.ib2j5.generated.conditional.dao.AwfulTableDAO.updateByExample()

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

            example.clear();
            example.createCriteria().andCustomerIdEqualTo(58);
            List<AwfulTable> answer = dao.selectByExample(example);
View Full Code Here

Examples of mbg.test.ib2j5.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<FieldsblobsWithBLOBs> answer = dao.selectByExampleWithBLOBs(example);
            assertEquals(1, answer.size());
           
View Full Code Here

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

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

            example.clear();
            example.createCriteria().andIntegerfieldEqualTo(22);
            List<Fieldsonly> answer = dao.selectByExample(example);
View Full Code Here

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

            PkfieldsExample example = new PkfieldsExample();
            example.createCriteria()
                .andId1EqualTo(3)
                .andId2EqualTo(4);
           
            int rows = dao.updateByExample(record, example);
            assertEquals(1, rows);
           
            example.clear();
            example.createCriteria()
                .andFirstnameEqualTo("Fred")
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.