|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.core.nature.BaseNature
org.castor.cpa.jpa.natures.JPAClassNature
public class JPAClassNature
A BaseNature extension that gives access to information derived from
class bound JPA annotations.
PropertyHolder| Field Summary | |
|---|---|
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 Summary | |
|---|---|
JPAClassNature(PropertyHolder holder)
Instantiate a JPAClassNature to access the given
PropertyHolder. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.castor.core.nature.BaseNature |
|---|
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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.
| Constructor Detail |
|---|
public JPAClassNature(PropertyHolder holder)
JPAClassNature to access the given
PropertyHolder.
holder - The underlying PropertyHolder (obviously a
ClassInfo).PropertyHolder| Method Detail |
|---|
public 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_PROPERTIES
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||