Interface JDBCFetchConfiguration

    • Method Detail

      • getEagerFetchMode

        int getEagerFetchMode()
        Return the eager fetch mode. Defaults to the openjpa.jdbc.EagerFetchMode setting.
      • setEagerFetchMode

        JDBCFetchConfiguration setEagerFetchMode​(int mode)
        Set the eager fetch mode. Defaults to the openjpa.jdbc.EagerFetchMode setting.
      • getSubclassFetchMode

        int getSubclassFetchMode()
        Return the subclass fetch mode. Defaults to the openjpa.jdbc.SubclassFetchMode setting.
      • getSubclassFetchMode

        int getSubclassFetchMode​(ClassMapping cls)
        Return the effective subclass fetch mode for the given type.
      • setSubclassFetchMode

        JDBCFetchConfiguration setSubclassFetchMode​(int mode)
        Set the subclass fetch mode. Defaults to the openjpa.jdbc.SubclassFetchMode setting.
      • getResultSetType

        int getResultSetType()
        The result set type to use as a constant from ResultSet. Defaults to the openjpa.jdbc.ResultSetType setting.
      • setResultSetType

        JDBCFetchConfiguration setResultSetType​(int type)
        The result set type to use as a constant from ResultSet. Defaults to the openjpa.jdbc.ResultSetType setting.
      • getFetchDirection

        int getFetchDirection()
        The fetch direction to use as a constant from ResultSet. Defaults to the openjpa.jdbc.FetchDirection setting.
      • setFetchDirection

        JDBCFetchConfiguration setFetchDirection​(int direction)
        The fetch direction to use as a constant from ResultSet. Defaults to the openjpa.jdbc.FetchDirection setting.
      • getLRSSize

        int getLRSSize()
        The large result set size mode to use. Defaults to the openjpa.jdbc.LRSSize setting.
      • setLRSSize

        JDBCFetchConfiguration setLRSSize​(int lrsSize)
        The large result set size mode to use. Defaults to the openjpa.jdbc.LRSSize setting.
      • getJoinSyntax

        int getJoinSyntax()
        The join syntax to use.
      • getJoins

        Set<String> getJoins()
        Returns the names of the joins that this component will use when loading objects. Defaults to the empty set. This set is not thread safe.
        Since:
        0.4.0.0
      • hasJoin

        boolean hasJoin​(String field)
        Return true if the given fully-qualified join has been added.
        Since:
        0.4.0.0
      • addJoin

        JDBCFetchConfiguration addJoin​(String field)
        Adds field to the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.
        Since:
        0.4.0.0
      • addJoins

        JDBCFetchConfiguration addJoins​(Collection<String> fields)
        Adds fields to the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.
        Since:
        0.4.0.0
      • removeJoin

        JDBCFetchConfiguration removeJoin​(String field)
        Removes field to the set of fully-qualified field names to eagerly join when loading objects.
        Since:
        0.4.0.0
      • removeJoins

        JDBCFetchConfiguration removeJoins​(Collection<String> fields)
        Removes fields from the set of fully-qualified field names to eagerly join when loading objects.
        Since:
        0.4.0.0
      • clearJoins

        JDBCFetchConfiguration clearJoins()
        Clears the set of field names to join when loading data.
        Since:
        0.4.0.0
      • getFetchInnerJoins

        Set<String> getFetchInnerJoins()
        Returns the names of the inner fetch joins that this component will use when loading objects. Defaults to the empty set. This set is not thread safe.
        Since:
        1.0.3
      • hasFetchInnerJoin

        boolean hasFetchInnerJoin​(String field)
        Return true if the given fully-qualified inner fetch join has been added.
        Since:
        1.0.3
      • addFetchInnerJoin

        JDBCFetchConfiguration addFetchInnerJoin​(String field)
        Adds field to the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.
        Since:
        1.0.3
      • addFetchInnerJoins

        JDBCFetchConfiguration addFetchInnerJoins​(Collection<String> fields)
        Adds fields to the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.
        Since:
        1.0.3
      • getIgnoreDfgForFkSelect

        boolean getIgnoreDfgForFkSelect()
        Affirms if foreign key for a relation field will be pre-fetched as part of the owning object irrespective of whether the field is included in the default fetch group of this fetch configuration.
        By default, foreign key for a relation field is pre-fetched as part of the owning object only if the field in included in the default fetch group of this fetch configuration.
        Since:
        2.2.0
      • setIgnoreDfgForFkSelect

        void setIgnoreDfgForFkSelect​(boolean b)
        Affirms if foreign key for a relation field will be pre-fetched as part of the owning object irrespective of whether the field is included in the default fetch group of this fetch configuration.
        By default, foreign key for a relation field is pre-fetched as part of the owning object only if the field in included in the default fetch group of this fetch configuration.
        Since:
        2.2.0