Class JPAClassNature

  • All Implemented Interfaces:
    Nature

    public class JPAClassNature
    extends BaseNature
    A BaseNature extension that gives access to information derived from class bound JPA annotations.
    Since:
    1.3
    Author:
    Peter Schmidt
    See Also:
    PropertyHolder
    • Field Detail

      • INHERITANCE_STRATEGY

        public static final java.lang.String INHERITANCE_STRATEGY
        Property Key for Inheritance.strategy().
        See Also:
        Constant Field Values
      • MAPPED_SUPERCLASS

        public static final java.lang.String MAPPED_SUPERCLASS
        Nature property name for abstract.
        See Also:
        Constant Field Values
      • NAMED_QUERY

        public static final java.lang.String NAMED_QUERY
        Property Key for NamedQuery.
        See Also:
        Constant Field Values
      • NAMED_NATIVE_QUERY

        public static final java.lang.String NAMED_NATIVE_QUERY
        Property Key for NamedNativeQuery.
        See Also:
        Constant Field Values
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the fully qualified name of the Nature.
        Returns:
        qualified name of the nature.
        See Also:
        Nature.getId()
      • setEntityName

        public void setEntityName​(java.lang.String entityname)
        Parameters:
        entityname - The value of Entity.name().
        See Also:
        ENTITY_NAME
      • getEntityName

        public java.lang.String getEntityName()
        Returns:
        The value of Entity.name().
        See Also:
        ENTITY_NAME
      • setTableName

        public void setTableName​(java.lang.String tablename)
        Parameters:
        tablename - The value of Table.name()
        See Also:
        TABLE_NAME
      • getTableName

        public java.lang.String getTableName()
        Returns:
        The value of Table.name()
        See Also:
        TABLE_NAME
      • setTableCatalog

        public void setTableCatalog​(java.lang.String catalog)
        Parameters:
        catalog - The value of Table.catalog()
        See Also:
        TABLE_CATALOG
      • getTableCatalog

        public java.lang.String getTableCatalog()
        Returns:
        The value of Table.catalog()
        See Also:
        TABLE_CATALOG
      • setTableSchema

        public void setTableSchema​(java.lang.String schema)
        Parameters:
        schema - The value of Table.schema()
        See Also:
        TABLE_SCHEMA
      • getTableSchema

        public java.lang.String getTableSchema()
        Returns:
        The value ofTable.schema()
        See Also:
        TABLE_SCHEMA
      • setInheritanceStrategy

        public void setInheritanceStrategy​(javax.persistence.InheritanceType strategy)
        Parameters:
        strategy - The value of Inheritance.strategy()
        See Also:
        INHERITANCE_STRATEGY
      • getInheritanceStrategy

        public javax.persistence.InheritanceType getInheritanceStrategy()
        Returns:
        The value ofInheritance.strategy()
        See Also:
        INHERITANCE_STRATEGY
      • getNamedQuery

        public java.util.Map<java.lang.String,​java.lang.String> getNamedQuery()
        Returns:
        The value ofNamedQuery
        See Also:
        NAMED_QUERY
      • setMappedSuperclass

        public void setMappedSuperclass​(java.lang.Boolean hasMappedSuperclass)
        Set class to have a mapped super class.
        Parameters:
        abstract - Boolean True if the given class has a mapped super class.
      • hasMappedSuperclass

        public boolean hasMappedSuperclass()
        Returns if class has a mapped super class.
        Returns:
        true if class has a mapped super class.
      • setNamedQuery

        public void setNamedQuery​(java.util.Map<java.lang.String,​java.lang.String> namedQuery)
        Parameters:
        namedQuery - The value of NamedQuery
        See Also:
        NAMED_QUERY
      • getNamedNativeQuery

        public java.util.Map<java.lang.String,​java.lang.String> getNamedNativeQuery()
        Returns:
        The value ofNamedNativeQuery
        See Also:
        NAMED_NATIVE_QUERY
      • setNamedNativeQuery

        public void setNamedNativeQuery​(java.util.Map<java.lang.String,​java.lang.String> namedNativeQueryMap)
        Parameters:
        namedNativeQueryMap - The value of NamedNativeQuery
        See Also:
        NAMED_NATIVE_QUERY
      • setCacheProperties

        public void setCacheProperties​(java.util.Properties cacheProperties)
        Parameters:
        schema - The value of Cache
        See Also:
        CACHE_PROPERTIES
      • getCacheProperties

        public java.util.Properties getCacheProperties()
        Returns:
        The value of Cache
        See Also:
        CACHE_PROPERTIES