org.castor.jdo.jpa.natures
Class JPAClassNature

java.lang.Object
  extended by org.castor.core.nature.BaseNature
      extended by org.castor.jdo.jpa.natures.JPAClassNature

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:
PropertyHolder

Constructor Summary
JPAClassNature(PropertyHolder holder)
          Instantiate a JPAClassNature to access the given PropertyHolder.
 
Method Summary
 String getEntityName()
           
 String getId()
          
 String getTableCatalog()
           
 String getTableName()
           
 String getTableSchema()
           
 void setEntityName(String entityname)
           
 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
 

Constructor Detail

JPAClassNature

public JPAClassNature(PropertyHolder holder)
Instantiate a JPAClassNature to access the given PropertyHolder.

Parameters:
holder - The underlying PropertyHolder (obviously a ClassInfo).
See Also:
PropertyHolder
Method Detail

getId

public String getId()

See Also:
Nature.getId()

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


Copyright © 2010. All Rights Reserved.