QueryImplpublic class QueryImpl extends AbstractQueryImpl default implementation of the Query interface,
for "ordinary" HQL queries (not collection filters) |
Fields Summary |
---|
private Map | lockModes |
Constructors Summary |
---|
public QueryImpl(String queryString, org.hibernate.FlushMode flushMode, org.hibernate.engine.SessionImplementor session, org.hibernate.engine.query.ParameterMetadata parameterMetadata)
super( queryString, flushMode, session, parameterMetadata );
| public QueryImpl(String queryString, org.hibernate.engine.SessionImplementor session, org.hibernate.engine.query.ParameterMetadata parameterMetadata)
this( queryString, null, session, parameterMetadata );
|
Methods Summary |
---|
public int | executeUpdate()
verifyParameters();
Map namedParams = getNamedParams();
before();
try {
return getSession().executeUpdate(
expandParameterLists( namedParams ),
getQueryParameters( namedParams )
);
}
finally {
after();
}
| protected java.util.Map | getLockModes()
return lockModes;
| public java.util.Iterator | iterate()
verifyParameters();
Map namedParams = getNamedParams();
before();
try {
return getSession().iterate(
expandParameterLists(namedParams),
getQueryParameters(namedParams)
);
}
finally {
after();
}
| public java.util.List | list()
verifyParameters();
Map namedParams = getNamedParams();
before();
try {
return getSession().list(
expandParameterLists(namedParams),
getQueryParameters(namedParams)
);
}
finally {
after();
}
| public org.hibernate.ScrollableResults | scroll()
return scroll( ScrollMode.SCROLL_INSENSITIVE );
| public org.hibernate.ScrollableResults | scroll(org.hibernate.ScrollMode scrollMode)
verifyParameters();
Map namedParams = getNamedParams();
before();
QueryParameters qp = getQueryParameters(namedParams);
qp.setScrollMode(scrollMode);
try {
return getSession().scroll( expandParameterLists(namedParams), qp );
}
finally {
after();
}
| public org.hibernate.Query | setLockMode(java.lang.String alias, org.hibernate.LockMode lockMode)
lockModes.put(alias, lockMode);
return this;
|
|