NamedSQLQueryDefinitionpublic class NamedSQLQueryDefinition extends NamedQueryDefinition Definition of a named native SQL query, defined
in the mapping metadata. |
Fields Summary |
---|
private org.hibernate.engine.query.sql.NativeSQLQueryReturn[] | queryReturns | private final List | querySpaces | private final boolean | callable | private String | resultSetRef |
Constructors Summary |
---|
public NamedSQLQueryDefinition(String query, org.hibernate.engine.query.sql.NativeSQLQueryReturn[] queryReturns, List querySpaces, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, org.hibernate.FlushMode flushMode, org.hibernate.CacheMode cacheMode, boolean readOnly, String comment, Map parameterTypes, boolean callable)This form used to construct a NamedSQLQueryDefinition from the binder
code when a the result-set mapping information is explicitly
provided in the query definition (i.e., no resultset-mapping used)
super(
query.trim(), /* trim done to workaround stupid oracle bug that cant handle whitespaces before a { in a sp */
cacheable,
cacheRegion,
timeout,
fetchSize,
flushMode,
cacheMode,
readOnly,
comment,
parameterTypes
);
this.queryReturns = queryReturns;
this.querySpaces = querySpaces;
this.callable = callable;
| public NamedSQLQueryDefinition(String query, String resultSetRef, List querySpaces, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, org.hibernate.FlushMode flushMode, org.hibernate.CacheMode cacheMode, boolean readOnly, String comment, Map parameterTypes, boolean callable)This form used to construct a NamedSQLQueryDefinition from the binder
code when a resultset-mapping reference is used.
super(
query.trim(), /* trim done to workaround stupid oracle bug that cant handle whitespaces before a { in a sp */
cacheable,
cacheRegion,
timeout,
fetchSize,
flushMode,
cacheMode,
readOnly,
comment,
parameterTypes
);
this.resultSetRef = resultSetRef;
this.querySpaces = querySpaces;
this.callable = callable;
| public NamedSQLQueryDefinition(String query, String resultSetRef, List querySpaces, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, org.hibernate.FlushMode flushMode, Map parameterTypes, boolean callable)This form used from annotations (?). Essentially the same as the above using a
resultset-mapping reference, but without cacheMode, readOnly, and comment.
FIXME: annotations do not use it, so it can be remove from my POV
this(
query,
resultSetRef,
querySpaces,
cacheable,
cacheRegion,
timeout,
fetchSize,
flushMode,
null,
false,
null,
parameterTypes,
callable
);
|
|