org.hibernate.engine.query.NamedParameterDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate Show documentation
Show all versions of hibernate Show documentation
Relational Persistence for Java
package org.hibernate.engine.query;
import org.hibernate.type.Type;
import java.io.Serializable;
/**
* Descriptor regarding a named parameter.
*
* @author Steve Ebersole
*/
public class NamedParameterDescriptor implements Serializable {
private final String name;
private final Type expectedType;
private final int[] sourceLocations;
private final boolean jpaStyle;
public NamedParameterDescriptor(String name, Type expectedType, int[] sourceLocations, boolean jpaStyle) {
this.name = name;
this.expectedType = expectedType;
this.sourceLocations = sourceLocations;
this.jpaStyle = jpaStyle;
}
public String getName() {
return name;
}
public Type getExpectedType() {
return expectedType;
}
public int[] getSourceLocations() {
return sourceLocations;
}
public boolean isJpaStyle() {
return jpaStyle;
}
}