org.hibernate.spatial.dialect.SpatialFunctionsRegistry Maven / Gradle / Ivy
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.spatial.dialect;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.hibernate.query.sqm.function.SqmFunctionDescriptor;
/**
* Registers all available spatial functions for a Dialect
*
* Created by Karel Maesen, Geovise BVBA on 29/10/16.
* @Deprecated Use KeyedSqmFunctionDescriptors
*/
public abstract class SpatialFunctionsRegistry implements Iterable>, Serializable {
protected final Map functionMap = new HashMap();
public void put(String name, SqmFunctionDescriptor function) {
this.functionMap.put( name, function );
}
@Override
public Iterator> iterator() {
return functionMap.entrySet().iterator();
}
public SqmFunctionDescriptor get(String functionName) {
return functionMap.get( functionName );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy