io.ebeaninternal.server.deploy.DeployPropertyParserMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
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.
*/
public class DeployPropertyParserMap extends DeployParser {
private final Map map;
public DeployPropertyParserMap(Map map) {
this.map = map;
}
/**
* Returns null for raw sql queries.
*/
@Override
public Set 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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy