public class JPAClassNature extends BaseNature
BaseNature extension that gives access to information derived from
class bound JPA annotations.PropertyHolder| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_PROPERTIES
Property Key for
Cache. |
static String |
INHERITANCE_STRATEGY
Property Key for
Inheritance.strategy(). |
static String |
MAPPED_SUPERCLASS
Nature property name for abstract.
|
static String |
NAMED_NATIVE_QUERY
Property Key for
NamedNativeQuery. |
static String |
NAMED_QUERY
Property Key for
NamedQuery. |
| Constructor and Description |
|---|
JPAClassNature(PropertyHolder holder)
Instantiate a
JPAClassNature to access the given
PropertyHolder. |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getCacheProperties() |
String |
getEntityName() |
String |
getId() |
javax.persistence.InheritanceType |
getInheritanceStrategy() |
Map<String,String> |
getNamedNativeQuery() |
Map<String,String> |
getNamedQuery() |
String |
getTableCatalog() |
String |
getTableName() |
String |
getTableSchema() |
boolean |
hasMappedSuperclass()
Returns if class has a mapped super class.
|
void |
setCacheProperties(Properties cacheProperties) |
void |
setEntityName(String entityname) |
void |
setInheritanceStrategy(javax.persistence.InheritanceType strategy) |
void |
setMappedSuperclass(Boolean hasMappedSuperclass)
Set class to have a mapped super class.
|
void |
setNamedNativeQuery(Map<String,String> namedNativeQueryMap) |
void |
setNamedQuery(Map<String,String> namedQuery) |
void |
setTableCatalog(String catalog) |
void |
setTableName(String tablename) |
void |
setTableSchema(String schema) |
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setPropertypublic static final String INHERITANCE_STRATEGY
Inheritance.strategy().public static final String MAPPED_SUPERCLASS
public static final String NAMED_QUERY
NamedQuery.public static final String NAMED_NATIVE_QUERY
NamedNativeQuery.public static final String CACHE_PROPERTIES
Cache.public JPAClassNature(PropertyHolder holder)
JPAClassNature to access the given
PropertyHolder.holder - The underlying PropertyHolder (obviously a
ClassInfo).PropertyHolderpublic String getId()
Nature.getId()public void setEntityName(String entityname)
entityname - The value of Entity.name().ENTITY_NAMEpublic String getEntityName()
Entity.name().ENTITY_NAMEpublic void setTableName(String tablename)
tablename - The value of Table.name()TABLE_NAMEpublic String getTableName()
Table.name()TABLE_NAMEpublic void setTableCatalog(String catalog)
catalog - The value of Table.catalog()TABLE_CATALOGpublic String getTableCatalog()
Table.catalog()TABLE_CATALOGpublic void setTableSchema(String schema)
schema - The value of Table.schema()TABLE_SCHEMApublic String getTableSchema()
Table.schema()TABLE_SCHEMApublic void setInheritanceStrategy(javax.persistence.InheritanceType strategy)
strategy - The value of Inheritance.strategy()INHERITANCE_STRATEGYpublic javax.persistence.InheritanceType getInheritanceStrategy()
Inheritance.strategy()INHERITANCE_STRATEGYpublic Map<String,String> getNamedQuery()
NamedQueryNAMED_QUERYpublic void setMappedSuperclass(Boolean hasMappedSuperclass)
abstract - Boolean True if the given class has a mapped super class.public boolean hasMappedSuperclass()
public void setNamedQuery(Map<String,String> namedQuery)
namedQuery - The value of NamedQueryNAMED_QUERYpublic Map<String,String> getNamedNativeQuery()
NamedNativeQueryNAMED_NATIVE_QUERYpublic void setNamedNativeQuery(Map<String,String> namedNativeQueryMap)
namedNativeQueryMap - The value of NamedNativeQueryNAMED_NATIVE_QUERYpublic void setCacheProperties(Properties cacheProperties)
schema - The value of CacheCACHE_PROPERTIESpublic Properties getCacheProperties()
CacheCACHE_PROPERTIESCopyright © 2014. All rights reserved.