Interface EntitySource

    • Method Detail

      • getPrimaryTable

        TableSpecificationSource getPrimaryTable()
        Obtain the primary table for this entity.
        Returns:
        The primary table.
      • getSecondaryTableMap

        java.util.Map<java.lang.String,​SecondaryTableSource> getSecondaryTableMap()
        Obtain the secondary tables for this entity
        Returns:
        returns an iterator over the secondary tables for this entity
      • getXmlNodeName

        java.lang.String getXmlNodeName()
      • getTuplizerClassMap

        java.util.Map<EntityMode,​java.lang.String> getTuplizerClassMap()
        Obtain the named custom tuplizer classes to be used.
        Returns:
        The custom tuplizer class names
      • getCustomPersisterClassName

        java.lang.String getCustomPersisterClassName()
        Obtain the name of a custom persister class to be used.
        Returns:
        The custom persister class name
      • isLazy

        boolean isLazy()
        Is this entity lazy (proxyable)?
        Returns:
        true indicates the entity is lazy; false non-lazy.
      • getProxy

        java.lang.String getProxy()
        For lazy entities, obtain the interface to use in constructing its proxies.
        Returns:
        The proxy interface name
      • getBatchSize

        int getBatchSize()
        Obtain the batch-size to be applied when initializing proxies of this entity.
        Returns:
        returns the the batch-size.
      • isAbstract

        java.lang.Boolean isAbstract()
        Is the entity abstract?

        The implication is whether the entity maps to a database table.

        Returns:
        true indicates the entity is abstract; false non-abstract; null indicates that a reflection check should be done when building the persister.
      • isDynamicInsert

        boolean isDynamicInsert()
        Did the source specify dynamic inserts?
        Returns:
        true indicates dynamic inserts will be used; false otherwise.
      • isDynamicUpdate

        boolean isDynamicUpdate()
        Did the source specify dynamic updates?
        Returns:
        true indicates dynamic updates will be used; false otherwise.
      • isSelectBeforeUpdate

        boolean isSelectBeforeUpdate()
        Did the source specify to perform selects to decide whether to perform (detached) updates?
        Returns:
        true indicates selects will be done; false otherwise.
      • getCustomLoaderName

        java.lang.String getCustomLoaderName()
        Obtain the name of a named-query that will be used for loading this entity
        Returns:
        THe custom loader query name
      • getCustomSqlInsert

        CustomSql getCustomSqlInsert()
        Obtain the custom SQL to be used for inserts for this entity
        Returns:
        The custom insert SQL
      • getCustomSqlUpdate

        CustomSql getCustomSqlUpdate()
        Obtain the custom SQL to be used for updates for this entity
        Returns:
        The custom update SQL
      • getCustomSqlDelete

        CustomSql getCustomSqlDelete()
        Obtain the custom SQL to be used for deletes for this entity
        Returns:
        The custom delete SQL
      • getSynchronizedTableNames

        java.lang.String[] getSynchronizedTableNames()
        Obtain any additional table names on which to synchronize (auto flushing) this entity.
        Returns:
        Additional synchronized table names or 0 sized String array, never return null.
      • getDiscriminatorMatchValue

        java.lang.String getDiscriminatorMatchValue()
        Get the actual discriminator value in case of a single table inheritance
        Returns:
        the actual discriminator value in case of a single table inheritance or null in case there is no explicit value or a different inheritance scheme
      • getFilterSources

        FilterSource[] getFilterSources()
        Obtain the filters for this entity.
        Returns:
        returns an array of the filters for this entity.
      • quoteIdentifiersLocalToEntity

        TruthValue quoteIdentifiersLocalToEntity()