Example usage for org.apache.commons.collections.map ListOrderedMap putAll

List of usage examples for org.apache.commons.collections.map ListOrderedMap putAll

Introduction

In this page you can find the example usage for org.apache.commons.collections.map ListOrderedMap putAll.

Prototype

public void putAll(Map map) 

Source Link

Usage

From source file:org.apache.ddlutils.platform.CreationParameters.java

/**
 * Returns the parameters for the given table.
 * //from  w w w . j  av  a 2s. c om
 * @param table The table
 * @return The parameters
 */
public Map getParametersFor(Table table) {
    ListOrderedMap result = new ListOrderedMap();
    Map globalParams = (Map) _parametersPerTable.get(null);
    Map tableParams = (Map) _parametersPerTable.get(table.getName());

    if (globalParams != null) {
        result.putAll(globalParams);
    }
    if (tableParams != null) {
        result.putAll(tableParams);
    }
    return result;
}