Class SelectImpl.SelectResult

    • Constructor Detail

      • SelectResult

        public SelectResult​(java.sql.Connection conn,
                            java.sql.Statement stmnt,
                            java.sql.ResultSet rs,
                            DBDictionary dict)
        Constructor.
    • Method Detail

      • getSelect

        public SelectImpl getSelect()
        Select for this result.
      • setSelect

        public void setSelect​(SelectImpl sel)
        Select for this result.
      • pushBack

        public void pushBack()
                      throws java.sql.SQLException
        Description copied from interface: Result
        Push back the last result. In other words, just ignore the next call to Result.next(). After the first time this method is called, additional calls before a call to Result.next() or Result.absolute(int) should have no further affect.
        Specified by:
        pushBack in interface Result
        Overrides:
        pushBack in class AbstractResult
        Throws:
        java.sql.SQLException
      • absoluteInternal

        protected boolean absoluteInternal​(int row)
                                    throws java.sql.SQLException
        Description copied from class: AbstractResult
        Throws an exception by default.
        Overrides:
        absoluteInternal in class ResultSetResult
        Throws:
        java.sql.SQLException
      • nextInternal

        protected boolean nextInternal()
                                throws java.sql.SQLException
        Description copied from class: AbstractResult
        Advance this row.
        Overrides:
        nextInternal in class ResultSetResult
        Throws:
        java.sql.SQLException
      • findObject

        protected int findObject​(java.lang.Object obj,
                                 Joins joins)
                          throws java.sql.SQLException
        Description copied from class: ResultSetResult
        Return the 1-based result set index for the given column or id, or a non-positive number if the column is not contained in this result.
        Overrides:
        findObject in class ResultSetResult
        Throws:
        java.sql.SQLException
      • isOuter

        public boolean isOuter()
        Description copied from interface: Joins
        Whether this joins path results in outer joins.
        Specified by:
        isOuter in interface Joins
      • setOuter

        public org.apache.openjpa.jdbc.sql.PathJoins setOuter​(boolean outer)
      • isDirty

        public boolean isDirty()
      • path

        public java.lang.StringBuilder path()
      • getPathStr

        public java.lang.String getPathStr()
      • joins

        public org.apache.openjpa.jdbc.sql.JoinSet joins()
      • joinCount

        public int joinCount()
      • nullJoins

        public void nullJoins()
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: Joins
        Whether we have any joins.
        Specified by:
        isEmpty in interface Joins
      • crossJoin

        public Joins crossJoin​(Table localTable,
                               Table foreignTable)
        Description copied from interface: Joins
        Perform a cross join on the given tables.
        Specified by:
        crossJoin in interface Joins
      • join

        public Joins join​(ForeignKey fk,
                          boolean inverse,
                          boolean toMany)
        Description copied from interface: Joins
        Join the columns of the given foreign key.
        Specified by:
        join in interface Joins
      • outerJoin

        public Joins outerJoin​(ForeignKey fk,
                               boolean inverse,
                               boolean toMany)
        Description copied from interface: Joins
        Join the columns of the given foreign key.
        Specified by:
        outerJoin in interface Joins
      • joinRelation

        public Joins joinRelation​(java.lang.String name,
                                  ForeignKey fk,
                                  ClassMapping target,
                                  int subs,
                                  boolean inverse,
                                  boolean toMany)
        Description copied from interface: Joins
        Join the columns of the given foreign key, which represents a relation via the given field name.
        Specified by:
        joinRelation in interface Joins
      • outerJoinRelation

        public Joins outerJoinRelation​(java.lang.String name,
                                       ForeignKey fk,
                                       ClassMapping target,
                                       int subs,
                                       boolean inverse,
                                       boolean toMany)
        Description copied from interface: Joins
        Join the columns of the given foreign key, which represents a relation via the given field name.
        Specified by:
        outerJoinRelation in interface Joins
      • setVariable

        public Joins setVariable​(java.lang.String var)
        Description copied from interface: Joins
        Set the variable name being traversed into with the next join.
        Specified by:
        setVariable in interface Joins
      • setSubselect

        public Joins setSubselect​(java.lang.String alias)
        Description copied from interface: Joins
        Set the subquery alias.
        Specified by:
        setSubselect in interface Joins
      • setCorrelatedVariable

        public Joins setCorrelatedVariable​(java.lang.String var)
        Description copied from interface: Joins
        Set the correlated variable name being traversed into with the next join.
        Specified by:
        setCorrelatedVariable in interface Joins
      • setJoinContext

        public Joins setJoinContext​(Context ctx)
        Description copied from interface: Joins
        Set subquery context when traversing into the next join is in transition from parent context to subquery.
        Specified by:
        setJoinContext in interface Joins
      • getCorrelatedVariable

        public java.lang.String getCorrelatedVariable()
        Description copied from interface: Joins
        Return correlated variable name
        Specified by:
        getCorrelatedVariable in interface Joins
      • moveJoinsToParent

        public void moveJoinsToParent()
        Description copied from interface: Joins
        Move joins that belong to subquery's parent
        Specified by:
        moveJoinsToParent in interface Joins