接口 ParameterRegistrationImplementor<T>
-
- 所有超级接口:
javax.persistence.Parameter<T>,ParameterRegistration<T>,ProcedureParameter<T>,QueryParameter<T>
- 所有已知子接口:
ProcedureParameterImplementor<T>
- 所有已知实现类:
ProcedureParameterImpl
public interface ParameterRegistrationImplementor<T> extends ParameterRegistration<T>
Additional internal contract for ParameterRegistration- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Textract(CallableStatement statement)Extract value from the statement after execution (used for OUT/INOUT parameters).TypegetHibernateType()Access to the Hibernate type for this parameter registrationint[]getSqlTypes()Access to the SQL type(s) for this parameterbooleanisPassNullsEnabled()If no value is bound for this parameter registration, is the passing of NULL to the JDBC CallableStatement for that parameter enabled?voidprepare(CallableStatement statement, int i)Prepare for execution.-
从接口继承的方法 org.hibernate.procedure.ParameterRegistration
bindValue, bindValue, enablePassingNulls, getBind, getMode, getName, getPosition, getType, setHibernateType
-
从接口继承的方法 org.hibernate.query.QueryParameter
getSourceLocations
-
-
-
-
方法详细资料
-
prepare
void prepare(CallableStatement statement, int i) throws SQLException
Prepare for execution.- 参数:
statement- The statement about to be executedi- The parameter index for this registration (used for positional)- 抛出:
SQLException- Indicates a problem accessing the statement object
-
getHibernateType
Type getHibernateType()
Access to the Hibernate type for this parameter registration- 指定者:
getHibernateType在接口中QueryParameter<T>- 返回:
- The Hibernate Type
-
isPassNullsEnabled
boolean isPassNullsEnabled()
If no value is bound for this parameter registration, is the passing of NULL to the JDBC CallableStatement for that parameter enabled? This effectively controls whether default values for the argument as defined in the database are applied or not.- 指定者:
isPassNullsEnabled在接口中ProcedureParameter<T>- 返回:
trueindicates that NULL will be passed to the JDBC driver, effectively disabling the application of the default argument value defined in the database;falseindicates that the parameter will simply be ignored, with the assumption that the corresponding argument defined a default value.- 另请参阅:
isPassNullsEnabled()
-
getSqlTypes
int[] getSqlTypes()
Access to the SQL type(s) for this parameter- 返回:
- The SQL types (JDBC type codes)
-
extract
T extract(CallableStatement statement)
Extract value from the statement after execution (used for OUT/INOUT parameters).- 参数:
statement- The callable statement- 返回:
- The extracted value
-
-