Package org.hibernate.procedure.spi
Interface ParameterRegistrationImplementor<T>
-
- All Superinterfaces:
Parameter<T>
,ParameterRegistration<T>
,ProcedureParameter<T>
,QueryParameter<T>
- All Known Subinterfaces:
ProcedureParameterImplementor<T>
public interface ParameterRegistrationImplementor<T> extends ParameterRegistration<T>
Additional internal contract for ParameterRegistration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
extract(java.sql.CallableStatement statement)
Extract value from the statement after execution (used for OUT/INOUT parameters).Type
getHibernateType()
Access to the Hibernate type for this parameter registrationint[]
getSqlTypes()
Access to the SQL type(s) for this parameterboolean
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.void
prepare(java.sql.CallableStatement statement, int i)
Prepare for execution.-
Methods inherited from interface javax.persistence.Parameter
getParameterType
-
Methods inherited from interface org.hibernate.procedure.ParameterRegistration
bindValue, bindValue, enablePassingNulls, getBind, getMode, getName, getPosition, getType, setHibernateType
-
Methods inherited from interface org.hibernate.query.QueryParameter
getSourceLocations
-
-
-
-
Method Detail
-
prepare
void prepare(java.sql.CallableStatement statement, int i) throws java.sql.SQLException
Prepare for execution.- Parameters:
statement
- The statement about to be executedi
- The parameter index for this registration (used for positional)- Throws:
java.sql.SQLException
- Indicates a problem accessing the statement object
-
getHibernateType
Type getHibernateType()
Access to the Hibernate type for this parameter registration- Specified by:
getHibernateType
in interfaceQueryParameter<T>
- Returns:
- 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.- Specified by:
isPassNullsEnabled
in interfaceProcedureParameter<T>
- Returns:
true
indicates that NULL will be passed to the JDBC driver, effectively disabling the application of the default argument value defined in the database;false
indicates that the parameter will simply be ignored, with the assumption that the corresponding argument defined a default value.- See Also:
isPassNullsEnabled()
-
getSqlTypes
int[] getSqlTypes()
Access to the SQL type(s) for this parameter- Returns:
- The SQL types (JDBC type codes)
-
extract
T extract(java.sql.CallableStatement statement)
Extract value from the statement after execution (used for OUT/INOUT parameters).- Parameters:
statement
- The callable statement- Returns:
- The extracted value
-
-