Examples of MappedStatement


Examples of org.apache.ibatis.mapping.MappedStatement

public class FlushCacheInterceptor implements Interceptor {

  private Map<String, Set<Cache>> flushCacheMap = new HashMap<String, Set<Cache>>();

  public Object intercept(Invocation invocation) throws Throwable {
    MappedStatement statement = (MappedStatement) invocation.getArgs()[0];
    if (statement != null) {
      Set<Cache> cachesToFlush = flushCacheMap.get(statement.getId());
      if (cachesToFlush != null) {
        for (Cache c : cachesToFlush) {
          c.clear();
        }
      }
View Full Code Here

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.mapping.statement.MappedStatement

  }

  protected void addStatementNodelets() {
    parser.addNodelet("/sqlMap/statement", new Nodelet() {
      public void process(Node node) throws Exception {
        statementParser.parseGeneralStatement(node, new MappedStatement());
      }
    });
    parser.addNodelet("/sqlMap/insert", new Nodelet() {
      public void process(Node node) throws Exception {
        statementParser.parseGeneralStatement(node, new InsertStatement());
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.