Package jodd.db.oom

Examples of jodd.db.oom.ColumnData


  public void registerColumnDataForTableRef(String tableRef, String tableName) {
    if (columnData == null) {
      columnData = new NamedValuesHashMap<ColumnData>();
    }
    columnData.put(tableRef, new ColumnData(tableName));
  }
View Full Code Here


  public String registerColumnDataForColumnCode(String tableName, String column) {
    if (columnData == null) {
      columnData = new NamedValuesHashMap<ColumnData>();
    }
    String columnCode = COL_CODE_PREFIX + Integer.toString(columnCount++) + '_';
    columnData.put(columnCode, new ColumnData(tableName, column));
    return columnCode;
  }
View Full Code Here

        int sepNdx = columnName.indexOf(dbOomManager.getColumnAliasSeparator());
        if (sepNdx != -1) {
          // column alias exist, result set is ignored and columnAliases contains table data
          tableName = columnName.substring(0, sepNdx);
          if (columnAliases != null) {
            ColumnData columnData = columnAliases.get(tableName);
            if (columnData != null) {
              tableName = columnData.getTableName();
            }
          }
          columnName = columnName.substring(sepNdx + 1);
        } else {
          // column alias does not exist, table name is read from columnAliases and result set (if available)
          if (columnAliases != null) {
            ColumnData columnData = columnAliases.get(columnName);
            if (columnData != null) {
              tableName = columnData.getTableName();
              columnName = columnData.getColumnName();
            }
          }
          if (tableName == null) {
            try {
              tableName = rsMetaData.getTableName(i + 1);
View Full Code Here

TOP

Related Classes of jodd.db.oom.ColumnData

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.