Examples of ORMHash


Examples of cn.org.zeronote.orm.ORMHash

   
    ORMTable ormTable = pojoClazz.getAnnotation(ORMTable.class);
    if (ormTable == null) {
      throw new IllegalAccessException("It not a ORMTable Class!");
    }
    ORMHash ormHashTable = pojoClazz.getAnnotation(ORMHash.class);
   
   
    String tableName = ormHashTable == null ? ormTable.tableName() : DBUtils.getInstance().getHashTableName(ormHashTable, ormTable, pojo);
    generate(tableName);
   
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

  public void init() throws SQLException {
    // 初始化表
    if (clzss != null) {
      int inCount = 0;
      for (Class<?> clz : clzss) {
        ORMHash ht = clz.getAnnotation(ORMHash.class);
        if (ht == null) {
          logger.warn("class[{}] not have ORMHashTable Annotation!", clz.toString());
          continue;
        }
        ORMTable table = clz.getAnnotation(ORMTable.class);
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

    ORMTable ormTable = pojoClazz.getAnnotation(ORMTable.class);
    if (ormTable == null) {
      throw new IllegalAccessException("It not a ORMTable Class!");
    }
   
    ORMHash ormHashTable = pojoClazz.getAnnotation(ORMHash.class);
   
    String tableName = null;
    if (ormHashTable == null) {
      tableName = ormTable.tableName();
    } else {
      String hashKey = this.pojoClazz.getDeclaredField(ormHashTable.hashRefColumn()).getName();
      long hashCol = Long.valueOf(String.valueOf(this.delArgs.get(hashKey)));
      tableName = DBUtils.getInstance().findHashTableName(ormHashTable, ormTable, hashCol);
    }
   
    generate(tableName);
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

   
    ORMTable ormTable = pojoClazz.getAnnotation(ORMTable.class);
    if (ormTable == null) {
      throw new IllegalAccessException("It not a ORMTable Class!");
    }
    ORMHash ormHashTable = pojoClazz.getAnnotation(ORMHash.class);
   
    String refCol = ormHashTable.hashRefColumn();

    Map<String, Map<String, List<Object>>> tableArgsMap = new HashMap<String, Map<String,List<Object>>>();
    // 装填 散列列
    for (String colKey : argsMap.keySet()) {
      if (colKey.equals(refCol)) {
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

   
    ORMTable ormTable = pojoClazz.getAnnotation(ORMTable.class);
    if (ormTable == null) {
      throw new IllegalAccessException("It not a ORMTable Class!");
    }
    ORMHash ormHashTable = pojoClazz.getAnnotation(ORMHash.class);
   
   
    String tableName = ormHashTable == null ? ormTable.tableName() : DBUtils.getInstance().getHashTableName(ormHashTable, ormTable, pojo);
    generate(tableName);
  }
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

   */
  @Override
  public <T> PaginationSupport<T> queryForPaginatedPojoList(
      Class<T> pojoType, Map<String, Object> args,
      RowSelection rowSelection) throws DataAccessException {
    ORMHash orma = pojoType.getAnnotation(ORMHash.class);
    if (orma != null) {
      // 散列表,暂不支持分页查询
      throw new DataAccessException("pagination select not support hash table");
    }
   
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

   
    ORMTable ormTable = pojoClazz.getAnnotation(ORMTable.class);
    if (ormTable == null) {
      throw new IllegalAccessException("It not a ORMTable Class!");
    }
    ORMHash ormHashTable = pojoClazz.getAnnotation(ORMHash.class);
   
   
    String tableName = ormHashTable == null ? ormTable.tableName() : DBUtils.getInstance().getHashTableName(ormHashTable, ormTable, pojo);
    generate(tableName);
   
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

  public void init() throws SQLException {
    // 初始化表
    if (clzss != null) {
      int inCount = 0;
      for (Class<?> clz : clzss) {
        ORMHash ht = clz.getAnnotation(ORMHash.class);
        if (ht == null) {
          logger.warn("class[{}] not have ORMHashTable Annotation!", clz.toString());
          continue;
        }
        ORMTable table = clz.getAnnotation(ORMTable.class);
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

    ORMTable ormTable = pojoClazz.getAnnotation(ORMTable.class);
    if (ormTable == null) {
      throw new IllegalAccessException("It not a ORMTable Class!");
    }
   
    ORMHash ormHashTable = pojoClazz.getAnnotation(ORMHash.class);
   
    String tableName = null;
    if (ormHashTable == null) {
      tableName = ormTable.tableName();
    } else {
      String hashKey = this.pojoClazz.getDeclaredField(ormHashTable.hashRefColumn()).getName();
      long hashCol = Long.valueOf(String.valueOf(this.delArgs.get(hashKey)));
      tableName = DBUtils.getInstance().findHashTableName(ormHashTable, ormTable, hashCol);
    }
   
    generate(tableName);
View Full Code Here

Examples of cn.org.zeronote.orm.ORMHash

   
    ORMTable ormTable = pojoClazz.getAnnotation(ORMTable.class);
    if (ormTable == null) {
      throw new IllegalAccessException("It not a ORMTable Class!");
    }
    ORMHash ormHashTable = pojoClazz.getAnnotation(ORMHash.class);
   
    String refCol = ormHashTable.hashRefColumn();

    Map<String, Map<String, List<Object>>> tableArgsMap = new HashMap<String, Map<String,List<Object>>>();
    // 装填 散列列
    for (String colKey : argsMap.keySet()) {
      if (colKey.equals(refCol)) {
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.