Nature
public 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, setProperty
public 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
).PropertyHolder
public java.lang.String getId()
Nature.getId()
public void setEntityName(java.lang.String entityname)
entityname
- The value of Entity.name()
.ENTITY_NAME
public java.lang.String getEntityName()
Entity.name()
.ENTITY_NAME
public void setTableName(java.lang.String tablename)
tablename
- The value of Table.name()
TABLE_NAME
public java.lang.String getTableName()
Table.name()
TABLE_NAME
public void setTableCatalog(java.lang.String catalog)
catalog
- The value of Table.catalog()
TABLE_CATALOG
public java.lang.String getTableCatalog()
Table.catalog()
TABLE_CATALOG
public void setTableSchema(java.lang.String schema)
schema
- The value of Table.schema()
TABLE_SCHEMA
public java.lang.String getTableSchema()
Table.schema()
TABLE_SCHEMA
public void setInheritanceStrategy(javax.persistence.InheritanceType strategy)
strategy
- The value of Inheritance.strategy()
INHERITANCE_STRATEGY
public javax.persistence.InheritanceType getInheritanceStrategy()
Inheritance.strategy()
INHERITANCE_STRATEGY
public java.util.Map<java.lang.String,java.lang.String> getNamedQuery()
NamedQuery
NAMED_QUERY
public 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 NamedQuery
NAMED_QUERY
public java.util.Map<java.lang.String,java.lang.String> getNamedNativeQuery()
NamedNativeQuery
NAMED_NATIVE_QUERY
public void setNamedNativeQuery(java.util.Map<java.lang.String,java.lang.String> namedNativeQueryMap)
namedNativeQueryMap
- The value of NamedNativeQuery
NAMED_NATIVE_QUERY
public void setCacheProperties(java.util.Properties cacheProperties)
schema
- The value of Cache
CACHE_PROPERTIES
public java.util.Properties getCacheProperties()
Cache
CACHE_PROPERTIES
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com