Package com.jfinal.plugin.activerecord

Examples of com.jfinal.plugin.activerecord.IAtom


      actionKeySet.add(actionKey.trim());
  }
 
  public void intercept(final ActionInvocation ai) {
    if (actionKeySet.contains(ai.getActionKey())) {
      Db.tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here


      actionMethodSet.add(actionMethod.trim());
  }
 
  public void intercept(final ActionInvocation ai) {
    if (actionMethodSet.contains(ai.getMethodName())) {
      Db.tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

    pattern = caseSensitive ? Pattern.compile(regex) : Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
  }
 
  public void intercept(final ActionInvocation ai) {
    if (pattern.matcher(ai.getActionKey()).matches()) {
      Db.tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

    Config config = Tx.getConfigWithTxConfig(ai);
    if (config == null)
      config = DbKit.getConfig();
   
    if (actionKeySet.contains(ai.getActionKey())) {
      DbPro.use(config.getName()).tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

    Config config = Tx.getConfigWithTxConfig(ai);
    if (config == null)
      config = DbKit.getConfig();
   
    if (actionMethodSet.contains(ai.getMethodName())) {
      DbPro.use(config.getName()).tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

    Config config = Tx.getConfigWithTxConfig(ai);
    if (config == null)
      config = DbKit.getConfig();
   
    if (pattern.matcher(ai.getActionKey()).matches()) {
      DbPro.use(config.getName()).tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

    Config config = Tx.getConfigWithTxConfig(ai);
    if (config == null)
      config = DbKit.getConfig();
   
    if (actionKeySet.contains(ai.getActionKey())) {
      Db.tx(config.getName(), new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

    Config config = Tx.getConfigWithTxConfig(ai);
    if (config == null)
      config = DbKit.getConfig();
   
    if (actionMethodSet.contains(ai.getMethodName())) {
      Db.tx(config.getName(), new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

    Config config = Tx.getConfigWithTxConfig(ai);
    if (config == null)
      config = DbKit.getConfig();
   
    if (pattern.matcher(ai.getActionKey()).matches()) {
      Db.tx(config.getName(), new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

      actionKeySet.add(actionKey.trim());
  }
 
  public void intercept(final ActionInvocation ai) {
    if (actionKeySet.contains(ai.getActionKey())) {
      Db.tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
View Full Code Here

TOP

Related Classes of com.jfinal.plugin.activerecord.IAtom

Copyright © 2018 www.massapicom. 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.