Class NamedSQLQueryDefinition

  • All Implemented Interfaces:
    java.io.Serializable

    public class NamedSQLQueryDefinition
    extends NamedQueryDefinition
    Definition of a named native SQL query, defined in the mapping metadata.
    See Also:
    Serialized Form
    • Constructor Detail

      • NamedSQLQueryDefinition

        @Deprecated
        public NamedSQLQueryDefinition​(java.lang.String name,
                                       java.lang.String query,
                                       NativeSQLQueryReturn[] queryReturns,
                                       java.util.List<java.lang.String> querySpaces,
                                       boolean cacheable,
                                       java.lang.String cacheRegion,
                                       java.lang.Integer timeout,
                                       java.lang.Integer fetchSize,
                                       FlushMode flushMode,
                                       CacheMode cacheMode,
                                       boolean readOnly,
                                       java.lang.String comment,
                                       java.util.Map parameterTypes,
                                       boolean callable)
        Deprecated.
        This form was initially used to construct a NamedSQLQueryDefinition from the binder code when a the result-set mapping information is not explicitly provided in the query definition (i.e., no resultset-mapping used).
        Parameters:
        name - The name of named query
        query - The sql query string
        queryReturns - The in-lined query return definitions
        querySpaces - Any specified query spaces (used for auto-flushing)
        cacheable - Whether the query results are cacheable
        cacheRegion - If cacheable, the region into which to store the results
        timeout - A JDBC-level timeout to be applied
        fetchSize - A JDBC-level fetch-size to be applied
        flushMode - The flush mode to use for this query
        cacheMode - The cache mode to use during execution and subsequent result loading
        readOnly - Whether returned entities should be marked as read-only in the session
        comment - Any sql comment to be applied to the query
        parameterTypes - parameter type map
        callable - Does the query string represent a callable object (i.e., proc)
      • NamedSQLQueryDefinition

        @Deprecated
        public NamedSQLQueryDefinition​(java.lang.String name,
                                       java.lang.String query,
                                       java.lang.String resultSetRef,
                                       java.util.List<java.lang.String> querySpaces,
                                       boolean cacheable,
                                       java.lang.String cacheRegion,
                                       java.lang.Integer timeout,
                                       java.lang.Integer fetchSize,
                                       FlushMode flushMode,
                                       CacheMode cacheMode,
                                       boolean readOnly,
                                       java.lang.String comment,
                                       java.util.Map parameterTypes,
                                       boolean callable)
        Deprecated.
        This form was initially used to construct a NamedSQLQueryDefinition from the binder code when a resultset-mapping reference is used.
        Parameters:
        name - The name of named query
        query - The sql query string
        resultSetRef - The resultset-mapping name
        querySpaces - Any specified query spaces (used for auto-flushing)
        cacheable - Whether the query results are cacheable
        cacheRegion - If cacheable, the region into which to store the results
        timeout - A JDBC-level timeout to be applied
        fetchSize - A JDBC-level fetch-size to be applied
        flushMode - The flush mode to use for this query
        cacheMode - The cache mode to use during execution and subsequent result loading
        readOnly - Whether returned entities should be marked as read-only in the session
        comment - Any sql comment to be applied to the query
        parameterTypes - parameter type map
        callable - Does the query string represent a callable object (i.e., proc)