All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.hql.spi.ParameterInformation Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * 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.hql.spi;

import org.hibernate.type.Type;

/**
 * @author Steve Ebersole
 */
public interface ParameterInformation {
	/**
	 * The positions (relative to all parameters) that this parameter
	 * was discovered in the source query (HQL, etc).  E.g., given a query
	 * like `.. where a.name = :name or a.nickName = :name` this would
	 * return `[0,1]`
	 */
	int[] getSourceLocations();

	Type getExpectedType();

	void setExpectedType(Type expectedType);

	void addSourceLocation(int position);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy