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
All Implemented Interfaces:
Nature

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
 java.lang.String getEntityName()
           
 java.lang.String getId()
          
 java.lang.String getTableCatalog()
           
 java.lang.String getTableName()
           
 java.lang.String getTableSchema()
           
 void setEntityName(java.lang.String entityname)
           
 void setTableCatalog(java.lang.String catalog)
           
 void setTableName(java.lang.String tablename)
           
 void setTableSchema(java.lang.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 java.lang.String getId()

See Also:
Nature.getId()

setEntityName

public void setEntityName(java.lang.String entityname)
Parameters:
entityname - The value of Entity.name().
See Also:
ENTITY_NAME

getEntityName

public java.lang.String getEntityName()
Returns:
The value of Entity.name().
See Also:
ENTITY_NAME

setTableName

public void setTableName(java.lang.String tablename)
Parameters:
tablename - The value of Table.name()
See Also:
TABLE_NAME

getTableName

public java.lang.String getTableName()
Returns:
The value of Table.name()
See Also:
TABLE_NAME

setTableCatalog

public void setTableCatalog(java.lang.String catalog)
Parameters:
catalog - The value of Table.catalog()
See Also:
TABLE_CATALOG

getTableCatalog

public java.lang.String getTableCatalog()
Returns:
The value of Table.catalog()
See Also:
TABLE_CATALOG

setTableSchema

public void setTableSchema(java.lang.String schema)
Parameters:
schema - The value of Table.schema()
See Also:
TABLE_SCHEMA

getTableSchema

public java.lang.String getTableSchema()
Returns:
The value ofTable.schema()
See Also:
TABLE_SCHEMA


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com