Example class Mybatis Generator generating method explained

The following is the official explanation from mybatisgengertor, translated by Google is made possible to understand a problem, I hope you point it out

IS NULL - indicates that the associated column must be NULL
the IS the NOT NULL - indicates that the associated column is not NULL
= (equals) - indicates that the associated column must be equal to the value passed in the method call
<> (not equal) - indicates that the associated column is not equal to the method call afferent value
> (greater than) - indicates that the associated column must be greater than the value passed in the method call
> = (greater than or equal to) - indicates that the associated column must be greater than or equal to the value passed in the method call
<(less than) - represents Related column must be less than the value of the method call is passed
<= (less than or equal to) - indicates that the associated column must be less than or equal to the value of the method call is passed
the LIKE - means associated column must be "similar" method call is passed value . Code does not add the required '%', you must set the value of their own passed in the method call values.
NO LIKE relevant column must mean "dislike" method call incoming value. Code does not add the required '%', you must set the value of their own passed in the method call values.
BETWEEN - means the relevant column must be passed "in the" method call between the two values.
NOT BETWEEN - means the relevant columns must "not" between two values passed in the method call.
IN - indicates that the associated column must be one method call in the incoming list of values.
NOT IN - indicates that the associated column can not be passed in one method call list of values.
The following is my understanding:

//         according to criteria query 
        menuService.selectByExample ();
 //         update according to the conditions 
        menuService.updateByExampleSelective ();
 //         according to the condition number of queries 
        () menuService.countByExample;
 //         delete according to the conditions 
        menuService.deleteByExample ();
 //         create instance of the class standard, and then set the appropriate settings, query 
        SysMenuExample.Criteria criteria = new new SysMenuExample () createCriteria ();.
 //         whether the query according to the same attribute value 
        criteria.andNameEqualTo ();
 //        according to the attribute values are not identical 
        criteria.andNameNotEqualTo ();
 //        the property value between what
        criteria.andNameBetween (VALUE1, value2); 
        criteria.andNameNotBetween (); 
//        if the number of columns in accordance with an attribute value query 
        criteria.andNameIn (); 
        criteria.andNameNotIn (); 
//         The null attribute value query 
        criteria.andNameIsNotNull () ; 
        criteria.andNameIsNull (); 
//         The attribute value> value query 
        criteria.andNameGreaterThan (value); 
        criteria.andNameGreaterThanOrEqualTo (value); 
//         The attribute value <value query 
        criteria.andNameLessThan (); 
        criteria.andNameLessThanOrEqualTo () ; 
//         for value fuzzy query 
        criteria.andNameNotLike (); 
        criteria.andNameLike ();

 

Guess you like

Origin www.cnblogs.com/dekevin/p/12301843.html