Examples of countByExample()


Examples of mbg.test.mb3.generated.hierarchical.immutable.mapper.FieldsblobsMapper.countByExample()

            record = new FieldsblobsWithBLOBs("Scott", "Jones", generateRandomBlob(), generateRandomBlob(), null);
            mapper.insert(record);

            FieldsblobsExample example = new FieldsblobsExample();
            example.createCriteria().andFirstnameLike("S%");
            int rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(2, rows);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.immutable.mapper.FieldsonlyMapper.countByExample()

            record = new Fieldsonly(9, 88.99, 100.111);
            mapper.insert(record);

            FieldsonlyExample example = new FieldsonlyExample();
            example.createCriteria().andIntegerfieldGreaterThan(5);
            int rows = mapper.countByExample(example);
            assertEquals(2, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(3, rows);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.immutable.mapper.PkblobsMapper.countByExample()

                    "Long String 2");
            mapper.insert(record);

            PkblobsExample example = new PkblobsExample();
            example.createCriteria().andIdLessThan(4);
            int rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(2, rows);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.immutable.mapper.PkfieldsMapper.countByExample()

            example.clear();
            example.createCriteria().andFirstnameEqualTo("Fred")
                    .andLastnameEqualTo("Jones").andId1EqualTo(3)
                    .andId2EqualTo(4);

            rows = mapper.countByExample(example);
            assertEquals(1, rows);
        } finally {
            sqlSession.close();
        }
    }
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.immutable.mapper.PkfieldsblobsMapper.countByExample()

            record = new PkfieldsblobsWithBLOBs(5, 6, "Scott", "Jones", generateRandomBlob());
            mapper.insert(record);

            PkfieldsblobsExample example = new PkfieldsblobsExample();
            example.createCriteria().andId1NotEqualTo(3);
            int rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(2, rows);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.immutable.mapper.PkonlyMapper.countByExample()

            assertEquals(2, rows);

            example.clear();
            example.createCriteria().andIdEqualTo(5).andSeqNumEqualTo(3);

            rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            example.createCriteria().andIdEqualTo(7).andSeqNumEqualTo(3);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.mapper.AwfulTableMapper.countByExample()

            mapper.insert(record);

            AwfulTableExample example = new AwfulTableExample();
            example.createCriteria().andEMailLike("fred@%");
            int rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(2, rows);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.mapper.FieldsblobsMapper.countByExample()

            record.setBlob2(generateRandomBlob());
            mapper.insert(record);

            FieldsblobsExample example = new FieldsblobsExample();
            example.createCriteria().andFirstnameLike("S%");
            int rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(2, rows);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.mapper.PkblobsMapper.countByExample()

            record.setBlob2(generateRandomBlob());
            mapper.insert(record);

            PkblobsExample example = new PkblobsExample();
            example.createCriteria().andIdLessThan(4);
            int rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(2, rows);
View Full Code Here

Examples of mbg.test.mb3.generated.hierarchical.mapper.PkfieldsMapper.countByExample()

            mapper.insert(record);

            PkfieldsExample example = new PkfieldsExample();
            example.createCriteria().andLastnameLike("J%");
            int rows = mapper.countByExample(example);
            assertEquals(1, rows);

            example.clear();
            rows = mapper.countByExample(example);
            assertEquals(2, rows);
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.