当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
ParameterTranslationsImpl (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.hql.ast
Class ParameterTranslationsImpl
java.lang.Object
org.hibernate.hql.ast.ParameterTranslationsImpl
- All Implemented Interfaces:
- ParameterTranslations
- public class ParameterTranslationsImpl
- extends Object
- implements ParameterTranslations
Defines the information available for parameters encountered during
query translation through the antlr-based parser.
- Author:
- Steve Ebersole
Constructor Summary |
ParameterTranslationsImpl(List parameterSpecifications)
Constructs a parameter metadata object given a list of parameter
specifications. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterTranslationsImpl
public ParameterTranslationsImpl(List parameterSpecifications)
- Constructs a parameter metadata object given a list of parameter
specifications.
Note: the order in the incoming list denotes the parameter's
psudeo-position within the resulting sql statement.
- Parameters:
parameterSpecifications
-
supportsOrdinalParameterMetadata
public boolean supportsOrdinalParameterMetadata()
- Specified by:
supportsOrdinalParameterMetadata
in interface ParameterTranslations
getOrdinalParameterCount
public int getOrdinalParameterCount()
- Specified by:
getOrdinalParameterCount
in interface ParameterTranslations
getOrdinalParameterInfo
public ParameterTranslationsImpl.ParameterInfo getOrdinalParameterInfo(int ordinalPosition)
getOrdinalParameterSqlLocation
public int getOrdinalParameterSqlLocation(int ordinalPosition)
- Specified by:
getOrdinalParameterSqlLocation
in interface ParameterTranslations
getOrdinalParameterExpectedType
public Type getOrdinalParameterExpectedType(int ordinalPosition)
- Specified by:
getOrdinalParameterExpectedType
in interface ParameterTranslations
getNamedParameterNames
public Set getNamedParameterNames()
- Specified by:
getNamedParameterNames
in interface ParameterTranslations
getNamedParameterInfo
public ParameterTranslationsImpl.ParameterInfo getNamedParameterInfo(String name)
getNamedParameterSqlLocations
public int[] getNamedParameterSqlLocations(String name)
- Specified by:
getNamedParameterSqlLocations
in interface ParameterTranslations
getNamedParameterExpectedType
public Type getNamedParameterExpectedType(String name)
- Specified by:
getNamedParameterExpectedType
in interface ParameterTranslations