Examples of updateByExampleSelective()


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

   
            AwfulTable newRecord = new AwfulTable();
            newRecord.setFirstFirstName("Alonzo");
            AwfulTableExample example = new AwfulTableExample();
            example.createCriteria().andEMailLike("fred2@%");
            int rows = dao.updateByExampleSelective(newRecord, example);
            assertEquals(1, rows);
   
            List answer = dao.selectByExample(example);
            assertEquals(1, answer.size());
View Full Code Here

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

            FieldsblobsWithBLOBs newRecord = new FieldsblobsWithBLOBs();
            newRecord.setLastname("Doe");
            FieldsblobsExample example = new FieldsblobsExample();
            example.createCriteria().andFirstnameLike("S%");
            int rows = dao.updateByExampleSelective(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.updateByExampleSelective()

            record = new Fieldsonly();
            record.setDoublefield(new Double(99));
            FieldsonlyExample example = new FieldsonlyExample();
            example.createCriteria().andIntegerfieldGreaterThan(new Integer(5));
           
            int rows = dao.updateByExampleSelective(record, example);
            assertEquals(2, rows);

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

Examples of mbg.test.ib2j2.generated.conditional.dao.PkblobsDAO.updateByExampleSelective()

            Pkblobs newRecord = new Pkblobs();
            newRecord.setBlob1(TestUtilities.generateRandomBlob());
           
            PkblobsExample example = new PkblobsExample();
            example.createCriteria().andIdGreaterThan(new Integer(4));
            int rows = dao.updateByExampleSelective(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.PkfieldsDAO.updateByExampleSelective()

            record = new Pkfields();
            record.setFirstname("Fred");
            PkfieldsExample example = new PkfieldsExample();
            example.createCriteria().andLastnameLike("J%");
            int rows = dao.updateByExampleSelective(record, example);
            assertEquals(1, rows);
           
            example.clear();
            example.createCriteria()
                .andFirstnameEqualTo("Fred")
View Full Code Here

Examples of mbg.test.ib2j2.generated.conditional.dao.PkfieldsblobsDAO.updateByExampleSelective()

            Pkfieldsblobs newRecord = new Pkfieldsblobs();
            newRecord.setFirstname("Fred");
            PkfieldsblobsExample example = new PkfieldsblobsExample();
            example.createCriteria().andId1NotEqualTo(new Integer(3));
            int rows = dao.updateByExampleSelective(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.PkonlyDAO.updateByExampleSelective()

            PkonlyExample example = new PkonlyExample();
            example.createCriteria().andIdGreaterThan(new Integer(4));
            key = new PkonlyKey();
            key.setSeqNum(new Integer(3));
            int rows = dao.updateByExampleSelective(key, example);
            assertEquals(2, rows);

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

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

   
            AwfulTable newRecord = new AwfulTable();
            newRecord.setFirstFirstName("Alonzo");
            AwfulTableExample example = new AwfulTableExample();
            example.createCriteria().andEMailLike("fred2@%");
            int rows = dao.updateByExampleSelective(newRecord, example);
            assertEquals(1, rows);
   
            List answer = dao.selectByExample(example);
            assertEquals(1, answer.size());
View Full Code Here

Examples of mbg.test.ib2j2.generated.flat.dao.FieldsblobsDAO.updateByExampleSelective()

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

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

            record = new Fieldsonly();
            record.setDoublefield(new Double(99));
            FieldsonlyExample example = new FieldsonlyExample();
            example.createCriteria().andIntegerfieldGreaterThan(new Integer(5));
           
            int rows = dao.updateByExampleSelective(record, example);
            assertEquals(2, rows);

            example.clear();
            example.createCriteria().andIntegerfieldEqualTo(new Integer(5));
            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.