Class NamedStoredProcedureQueryMetadata

  • Direct Known Subclasses:
    NamedStoredFunctionQueryMetadata

    public class NamedStoredProcedureQueryMetadata
    extends NamedNativeQueryMetadata
    INTERNAL: Object to hold onto a named stored procedure query. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - all metadata mapped from XML should be initialized in the initXMLObject method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
    Since:
    TopLink 11g
    Author:
    Guy Pelletier
    • Constructor Detail

      • NamedStoredProcedureQueryMetadata

        public NamedStoredProcedureQueryMetadata()
        INTERNAL: Used for XML loading.
      • NamedStoredProcedureQueryMetadata

        public NamedStoredProcedureQueryMetadata​(java.lang.String elementName)
        INTERNAL: Used for XML loading.
    • Method Detail

      • callByIndex

        public boolean callByIndex()
        INTERNAL:
      • getCallByIndex

        public java.lang.Boolean getCallByIndex()
        INTERNAL: Used for OX mapping.
      • getMultipleResultSets

        public java.lang.Boolean getMultipleResultSets()
        INTERNAL: Used for OX mapping
      • getProcedureName

        public java.lang.String getProcedureName()
        INTERNAL: Used for OX mapping.
      • getResultClassNames

        public java.util.List<java.lang.String> getResultClassNames()
        INTERNAL: Used for OX mapping.
      • getResultSetMappings

        public java.util.List<java.lang.String> getResultSetMappings()
        INTERNAL: Used for OX mapping.
      • getReturnsResultSet

        public java.lang.Boolean getReturnsResultSet()
        INTERNAL: Used for OX mapping
      • hasMultipleResultSets

        public boolean hasMultipleResultSets()
        INTERNAL: If there is no user setting and there are not multiple result classes or result set mappings, assume a single result is returned. There is no way to set this parameter via JPA, only through EclipseLink's metadata.
      • process

        public void process​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL:
        Overrides:
        process in class NamedNativeQueryMetadata
      • returnsResultSet

        public boolean returnsResultSet​(boolean hasOutParameters)
        INTERNAL: If there is no user setting and there are no out parameters, assume a result set is returned. There is no way to set this parameter via JPA, only through EclipseLink's metadata.
      • setCallByIndex

        public void setCallByIndex​(java.lang.Boolean callByIndex)
        INTERNAL: Used for OX mapping.
      • setMultipleResultSets

        public void setMultipleResultSets​(java.lang.Boolean multipleResultSets)
        INTERNAL: Used for OX mapping
      • setProcedureName

        public void setProcedureName​(java.lang.String procedureName)
        INTERNAL: Used for OX mapping.
      • setResultClassNames

        public void setResultClassNames​(java.util.List<java.lang.String> resultClassNames)
        INTERNAL: Used for OX mapping.
      • setResultSetMappings

        public void setResultSetMappings​(java.util.List<java.lang.String> resultSetMappings)
        INTERNAL: Used for OX mapping.
      • setReturnsResultSet

        public void setReturnsResultSet​(java.lang.Boolean returnsResultSet)
        INTERNAL: Used for OX mapping.