package io.ebeaninternal.server.deploy;

import java.util.Collections;
import java.util.Map;
import java.util.Set;

Converts logical property names to database columns using a Map.
/** * Converts logical property names to database columns using a Map. */
public class DeployPropertyParserMap extends DeployParser { private final Map<String, String> map; public DeployPropertyParserMap(Map<String, String> map) { this.map = map; }
Returns null for raw sql queries.
/** * Returns null for raw sql queries. */
@Override public Set<String> getIncludes() { return Collections.emptySet(); } @Override public String convertWord() { String r = getDeployWord(word); return r == null ? word : r; } @Override public String getDeployWord(String expression) { return map.get(expression); } }