Class JPAQuery

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class JPAQuery
    extends DatabaseQuery
    Purpose: A JPA placeholder Query object to store JPQL strings so that processing the string is delayed until Login.
    Since:
    TopLink Essentials
    Author:
    Chris Delahunt
    See Also:
    Serialized Form
    • Method Detail

      • addResultClassNames

        public void addResultClassNames​(String className)
      • addResultSetMapping

        public void addResultSetMapping​(String resultSetMapping)
      • getDescriptors

        public List<ClassDescriptor> getDescriptors()
        INTERNAL: For table per tenant queries the descriptor list will extracted from parsing the jpql query and cached here.
        Overrides:
        getDescriptors in class DatabaseQuery
      • getHints

        public Map<String,​Object> getHints()
        Return the JPA query hints.
      • isJPQLQuery

        public boolean isJPQLQuery()
        Return true if this query is a jpql query.
      • isSQLQuery

        public boolean isSQLQuery()
        Return true if this query is an sql query.
      • prepare

        public void prepare()
        INTERNAL: Generate the DatabaseQuery query from the JPA named query.
        Overrides:
        prepare in class DatabaseQuery
      • processJPQLQuery

        public DatabaseQuery processJPQLQuery​(Session session)
        INTERNAL: Convert the JPA query into a DatabaseQuery.
      • processSQLQuery

        public DatabaseQuery processSQLQuery​(Session session)
        INTERNAL: Convert the SQL string into a DatabaseQuery.
      • processStoredProcedureQuery

        public DatabaseQuery processStoredProcedureQuery​(Session session)
        INTERNAL: Convert the StoredProc call into a DatabaseQuery.
      • setDatabaseQuery

        public void setDatabaseQuery​(DatabaseQuery databaseQuery)
      • setDescriptors

        public void setDescriptors​(List<ClassDescriptor> descriptors)
        INTERNAL: For table per tenant queries the descriptor list will extracted from parsing the jpql query and cached here.
      • setResultClassName

        public void setResultClassName​(String className)
      • setResultSetMappings

        public void setResultSetMappings​(List<String> resultSetMappings)