Interface DiscriminatorStrategy

    • Method Detail

      • setDiscriminator

        void setDiscriminator​(Discriminator owner)
        Set the Discriminator that uses this strategy. This will be called before use.
      • select

        boolean select​(Select sel,
                       ClassMapping mapping)
        Select the data for this Discriminator.
        Parameters:
        mapping - the known base class being selected; this may not be the base class in the inheritance hierarchy
        Returns:
        true if anything was selected; false otherwise
      • loadSubclasses

        void loadSubclasses​(JDBCStore store)
                     throws java.sql.SQLException,
                            java.lang.ClassNotFoundException
        Load all subclasses of the owning class mapping into the JVM.
        Throws:
        java.sql.SQLException
        java.lang.ClassNotFoundException
      • getClass

        java.lang.Class<?> getClass​(JDBCStore store,
                                    ClassMapping base,
                                    Result result)
                             throws java.sql.SQLException,
                                    java.lang.ClassNotFoundException
        Return the class for the current result row.
        Throws:
        java.sql.SQLException
        java.lang.ClassNotFoundException
      • getClassConditions

        SQLBuffer getClassConditions​(Select sel,
                                     Joins joins,
                                     ClassMapping base,
                                     boolean subs)
        Return SQL to limit the classes selected as much as possible to the given base class, and optionally its subclasses. The select and joins instances are supplied in order to get column aliases.