Package org.hibernate.sql.exec.spi
Class AbstractJdbcOperationQuery
- java.lang.Object
-
- org.hibernate.sql.exec.spi.AbstractJdbcOperationQuery
-
- All Implemented Interfaces:
JdbcOperation
,JdbcOperationQuery
- Direct Known Subclasses:
AbstractJdbcOperationQueryInsert
,JdbcOperationQueryDelete
,JdbcOperationQuerySelect
,JdbcOperationQueryUpdate
public class AbstractJdbcOperationQuery extends Object implements JdbcOperationQuery
Executable JDBC command
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
affectedTableNames
protected Map<JdbcParameter,JdbcParameterBinding>
appliedParameters
protected List<JdbcParameterBinder>
parameterBinders
protected String
sql
-
Constructor Summary
Constructors Constructor Description AbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames)
AbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames, Map<JdbcParameter,JdbcParameterBinding> appliedParameters)
AbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames, Set<FilterJdbcParameter> filterJdbcParameters)
Deprecated.filterJdbcParameters
is no longer usedAbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames, Set<FilterJdbcParameter> filterJdbcParameters, Map<JdbcParameter,JdbcParameterBinding> appliedParameters)
Deprecated.filterJdbcParameters
is no longer used
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dependsOnParameterBindings()
Signals that the SQL depends on the parameter bindings e.g.Set<String>
getAffectedTableNames()
The names of tables this operation refers toMap<JdbcParameter,JdbcParameterBinding>
getAppliedParameters()
The parameters which were inlined into the query as literals.List<JdbcParameterBinder>
getParameterBinders()
Get the list of parameter binders for the generated PreparedStatementString
getSqlString()
Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatementboolean
isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.exec.spi.JdbcOperationQuery
getFilterJdbcParameters
-
-
-
-
Field Detail
-
sql
protected final String sql
-
parameterBinders
protected final List<JdbcParameterBinder> parameterBinders
-
appliedParameters
protected final Map<JdbcParameter,JdbcParameterBinding> appliedParameters
-
-
Constructor Detail
-
AbstractJdbcOperationQuery
@Deprecated public AbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames, Set<FilterJdbcParameter> filterJdbcParameters)
Deprecated.filterJdbcParameters
is no longer used
-
AbstractJdbcOperationQuery
public AbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames)
-
AbstractJdbcOperationQuery
@Deprecated public AbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames, Set<FilterJdbcParameter> filterJdbcParameters, Map<JdbcParameter,JdbcParameterBinding> appliedParameters)
Deprecated.filterJdbcParameters
is no longer used
-
AbstractJdbcOperationQuery
public AbstractJdbcOperationQuery(String sql, List<JdbcParameterBinder> parameterBinders, Set<String> affectedTableNames, Map<JdbcParameter,JdbcParameterBinding> appliedParameters)
-
-
Method Detail
-
getSqlString
public String getSqlString()
Description copied from interface:JdbcOperation
Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatement- Specified by:
getSqlString
in interfaceJdbcOperation
-
getParameterBinders
public List<JdbcParameterBinder> getParameterBinders()
Description copied from interface:JdbcOperation
Get the list of parameter binders for the generated PreparedStatement- Specified by:
getParameterBinders
in interfaceJdbcOperation
-
getAffectedTableNames
public Set<String> getAffectedTableNames()
Description copied from interface:JdbcOperationQuery
The names of tables this operation refers to- Specified by:
getAffectedTableNames
in interfaceJdbcOperationQuery
-
dependsOnParameterBindings
public boolean dependsOnParameterBindings()
Description copied from interface:JdbcOperationQuery
Signals that the SQL depends on the parameter bindings e.g. due to the need for inlining of parameter values or multiValued parameters.- Specified by:
dependsOnParameterBindings
in interfaceJdbcOperationQuery
-
getAppliedParameters
public Map<JdbcParameter,JdbcParameterBinding> getAppliedParameters()
Description copied from interface:JdbcOperationQuery
The parameters which were inlined into the query as literals.- Specified by:
getAppliedParameters
in interfaceJdbcOperationQuery
-
isCompatibleWith
public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)
- Specified by:
isCompatibleWith
in interfaceJdbcOperationQuery
-
-