Java 类org.apache.ibatis.annotations.Options.FlushCachePolicy 实例源码

项目:MybatisCode    文件:ImportantPersonMapper.java   
@Select("select id, firstname, lastname from person")
@Options(flushCache = FlushCachePolicy.TRUE)
List<Person> findWithFlushCache();
项目:MybatisCode    文件:PersonMapper.java   
@Insert("insert into person (id, firstname, lastname) values (#{id}, #{firstname}, #{lastname})")
@Options(flushCache = FlushCachePolicy.FALSE)
public void createWithoutFlushCache(Person person);
项目:MybatisCode    文件:PersonMapper.java   
@Select("select id, firstname, lastname from person")
@Options(flushCache = FlushCachePolicy.TRUE)
public List<Person> findWithFlushCache();
项目:mybatis    文件:PersonMapper.java   
@Insert("insert into person (id, firstname, lastname) values (#{id}, #{firstname}, #{lastname})")
@Options(flushCache = FlushCachePolicy.FALSE)
public void createWithoutFlushCache(Person person);
项目:mybatis    文件:PersonMapper.java   
@Select("select id, firstname, lastname from person")
@Options(flushCache = FlushCachePolicy.TRUE)
public List<Person> findWithFlushCache();
项目:spring-boot-mybatis    文件:DealMapper.java   
@Select("select * from deal where id = #{id}")
@Options(flushCache=FlushCachePolicy.DEFAULT)
Deal findById(@Param("id") Long id);
项目:spring-boot-mybatis    文件:DealMapper.java   
@Select("select * from deal")
@Options(flushCache=FlushCachePolicy.DEFAULT)
List<Deal> findAll();
项目:spring-boot-mybatis    文件:DealMapper.java   
@Insert("INSERT into DEAL(id, name, startDate, version, creationTime) VALUES(#{id}, #{name}, #{startDate}, 0, CURRENT_TIMESTAMP)")
@SelectKey(statement="SELECT DEAL_SEQUENCE.NEXTVAL FROM DUAL", keyProperty="id", before=true, resultType=Long.class)
@Options(flushCache=FlushCachePolicy.DEFAULT)
Long insert(Deal deal);
项目:spring-boot-mybatis    文件:DealMapper.java   
@Update("UPDATE DEAL SET name=#{name}, startDate=#{startDate}, version=version+1, lastUpdateTime=CURRENT_TIMESTAMP WHERE id =#{id} and version=#{version}")
@Options(flushCache=FlushCachePolicy.DEFAULT)
int update(Deal deal);
项目:mybatis-3    文件:ImportantPersonMapper.java   
@Select("select id, firstname, lastname from person")
@Options(flushCache = FlushCachePolicy.TRUE)
List<Person> findWithFlushCache();
项目:mybatis-3    文件:SpecialPersonMapper.java   
@Select("select id, firstname, lastname from person")
@Options(flushCache = FlushCachePolicy.TRUE)
List<Person> findWithFlushCache();
项目:mybatis-3    文件:PersonMapper.java   
@Insert("insert into person (id, firstname, lastname) values (#{id}, #{firstname}, #{lastname})")
@Options(flushCache = FlushCachePolicy.FALSE)
public void createWithoutFlushCache(Person person);
项目:mybatis-3    文件:PersonMapper.java   
@Select("select id, firstname, lastname from person")
@Options(flushCache = FlushCachePolicy.TRUE)
public List<Person> findWithFlushCache();