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