Examples of cachedKey()


Examples of cn.org.zeronote.orm.ORMTable.cachedKey()

   */
  private List<String> generaCacheKey(Object obj) {
    ORMTable ormTable = obj.getClass().getAnnotation(ORMTable.class);
    if (ormTable != null) {
      String cachedTableKey = "".equalsIgnoreCase(ormTable.cachedShortAlias()) ? ormTable.tableName() : ormTable.cachedShortAlias();
      String[] cachedKeys = ormTable.cachedKey();
     
      if (cachedKeys.length > 0) {
        List<String> ks = new ArrayList<String>();
        for (int i = 0; i < cachedKeys.length; i++) {
          String cachedCol = cachedKeys[i];
View Full Code Here

Examples of cn.org.zeronote.orm.ORMTable.cachedKey()

        T t = null;
        // 先在redis里找 XXX Annotation可以cache
        ORMTable ormTable = pojoType.getAnnotation(ORMTable.class);
        String cachedTableKey = "".equalsIgnoreCase(ormTable.cachedShortAlias()) ? ormTable.tableName() : ormTable.cachedShortAlias();
       
        String[] cachedKeys = ormTable.cachedKey();
        for (String cachedKey : cachedKeys) {
          String[] ks = cachedKey.split("=");
          Object arg = args.get(ks[0]);
          if (arg != null) {
            // 存在key值,则查找,否则数据库中差
View Full Code Here

Examples of cn.org.zeronote.orm.ORMTable.cachedKey()

   */
  private List<String> generaCacheKey(Object obj) {
    ORMTable ormTable = obj.getClass().getAnnotation(ORMTable.class);
    if (ormTable != null) {
      String cachedTableKey = "".equalsIgnoreCase(ormTable.cachedShortAlias()) ? ormTable.tableName() : ormTable.cachedShortAlias();
      String[] cachedKeys = ormTable.cachedKey();
     
      if (cachedKeys.length > 0) {
        List<String> ks = new ArrayList<String>();
        for (int i = 0; i < cachedKeys.length; i++) {
          String cachedCol = cachedKeys[i];
View Full Code Here

Examples of cn.org.zeronote.orm.ORMTable.cachedKey()

        T t = null;
        // 先在redis里找 XXX Annotation可以cache
        ORMTable ormTable = pojoType.getAnnotation(ORMTable.class);
        String cachedTableKey = "".equalsIgnoreCase(ormTable.cachedShortAlias()) ? ormTable.tableName() : ormTable.cachedShortAlias();
       
        String[] cachedKeys = ormTable.cachedKey();
        for (String cachedKey : cachedKeys) {
          String[] ks = cachedKey.split("=");
          Object arg = args.get(ks[0]);
          if (arg != null) {
            // 存在key值,则查找,否则数据库中差
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.