Class JPAClassNature

java.lang.Object
org.castor.core.nature.BaseNature
org.castor.cpa.jpa.natures.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:
  • Field Details

  • Constructor Details

  • Method Details

    • getId

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

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

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

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

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

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

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

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

      public 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:
    • getInheritanceStrategy

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

      public Map<String,String> getNamedQuery()
      Returns:
      The value ofNamedQuery
      See Also:
    • setMappedSuperclass

      public void setMappedSuperclass(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(Map<String,String> namedQuery)
      Parameters:
      namedQuery - The value of NamedQuery
      See Also:
    • getNamedNativeQuery

      public Map<String,String> getNamedNativeQuery()
      Returns:
      The value ofNamedNativeQuery
      See Also:
    • setNamedNativeQuery

      public void setNamedNativeQuery(Map<String,String> namedNativeQueryMap)
      Parameters:
      namedNativeQueryMap - The value of NamedNativeQuery
      See Also:
    • setCacheProperties

      public void setCacheProperties(Properties cacheProperties)
      Parameters:
      schema - The value of Cache
      See Also:
    • getCacheProperties

      public Properties getCacheProperties()
      Returns:
      The value of Cache
      See Also: