|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData
This immutable class contains information about an entity
Constructor Summary | |
JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication,
Element element,
JDBCEntityMetaData defaultValues)
Constructs entity meta data with the data contained in the entity xml element from a jbosscmp-jdbc xml file. |
|
JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication,
EntityMetaData entity)
Constructs jdbc entity meta data defined in the jdbcApplication and with the data from the entity meta data which is loaded from the ejb-jar.xml file. |
Method Summary | |
boolean |
equals(Object o)
Compares this JDBCEntityMetaData against the specified object. |
String |
getAbstractSchemaName()
Gets the abstract shcema name of this entity. |
boolean |
getAlterTable()
Gets the flag used to determine if the store manager should attempt to alter table when the entity is deployed. |
JDBCAuditMetaData |
getAudit()
Returns audit metadata |
ClassLoader |
getClassLoader()
Gets the class loaded which is used to load all classes used by this entity |
JDBCCMPFieldMetaData |
getCMPFieldByName(String name)
Gets the cmp field with the specified name |
List |
getCMPFields()
Gets the cmp fields of this entity |
boolean |
getCreateTable()
Gets the flag used to determine if the store manager should attempt to create database table when the entity is deployed. |
String |
getDataSourceName()
Gets the name of the datasource in jndi for this entity |
String |
getDefaultTableName()
Gets the name of the table to which this entity is persisted |
ArrayList |
getDefaultTablePostCreateCmd()
Get the (user-defined) SQL commands that sould be issued after table creation |
String |
getEagerLoadGroup()
Gets the name of the eager load group. |
Class |
getEntityClass()
Gets the implementation class of this entity |
JDBCEntityCommandMetaData |
getEntityCommand()
Gets the entity command metadata |
int |
getFetchSize()
The number of rows that the database driver should get in a single trip to the database. |
Class |
getHomeClass()
Gets the home class of this entity |
JDBCApplicationMetaData |
getJDBCApplication()
Gets the meta data for the application of which this entity is a member. |
List |
getLazyLoadGroups()
Gets the collection of lazy load group names. |
int |
getListCacheMax()
The maximum number of qurey result lists that will be tracked. |
List |
getLoadGroup(String name)
Gets the load group with the specified name. |
Map |
getLoadGroups()
Gets the map from load grou name to a List of field names, which forms a logical load group. |
Class |
getLocalClass()
Gets the local class of this entity |
Class |
getLocalHomeClass()
Gets the local home class of this entity |
String |
getName()
Gets the name of this entity. |
JDBCOptimisticLockingMetaData |
getOptimisticLocking()
Returns optimistic locking metadata |
Class |
getPrimaryKeyClass()
Gets the primary key class for this entity |
String |
getPrimaryKeyFieldName()
Gets the name of the primary key field of this entity or null if the primary key is multivalued |
Class |
getQLCompiler()
|
Collection |
getQueries()
Gets the queries defined on this entity |
JDBCQueryMetaData |
getQueryMetaDataForMethod(Method method)
|
JDBCReadAheadMetaData |
getReadAhead()
Gets the read ahead meta data for this entity. |
int |
getReadTimeOut()
How long is a read of this entity valid. |
Collection |
getRelationshipRoles()
Get the relationsip roles of this entity. |
Class |
getRemoteClass()
Gets the remote class of this entity |
boolean |
getRemoveTable()
Gets the flag used to determine if the store manager should attempt to remove database table when the entity is undeployed. |
JDBCTypeMappingMetaData |
getTypeMapping()
Gets the jdbc type mapping for this entity |
int |
hashCode()
Returns a hashcode for this JDBCEntityMetaData. |
boolean |
hasPrimaryKeyConstraint()
Gets the flag used to determine if the store manager should add a priary key constraint when creating the table |
boolean |
hasRowLocking()
Gets the flag used to determine if the store manager should do row locking when loading entity beans |
boolean |
isCleanReadAheadOnLoad()
|
boolean |
isCMP1x()
Does this entity use CMP version 1.x |
boolean |
isReadOnly()
Is this entity read only? A readonly entity will never be stored into the database. |
static JDBCTypeMappingMetaData |
obtainTypeMappingFromLibrary(String dataSourceName)
|
String |
toString()
Returns a string describing this JDBCEntityMetaData. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication, EntityMetaData entity) throws org.jboss.deployment.DeploymentException
jdbcApplication
- the application in which this entity is definedentity
- the entity meta data for this entity that is loaded
from the ejb-jar.xml file
org.jboss.deployment.DeploymentException
- if an problem occures while loading the
classes or if data in the ejb-jar.xml is inconsistent with data
from jbosscmp-jdbc.xml filepublic JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication, Element element, JDBCEntityMetaData defaultValues) throws org.jboss.deployment.DeploymentException
jdbcApplication
- the application in which this entity is definedelement
- the xml Element which contains the metadata about
this entitydefaultValues
- the JDBCEntityMetaData which contains the values
for optional elements of the element
org.jboss.deployment.DeploymentException
- if the xml element is not semantically correctMethod Detail |
public JDBCApplicationMetaData getJDBCApplication()
public String getDataSourceName()
public JDBCTypeMappingMetaData getTypeMapping() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public String getName()
public String getAbstractSchemaName()
public ClassLoader getClassLoader()
public Class getEntityClass()
public Class getHomeClass()
public Class getRemoteClass()
public Class getLocalHomeClass()
public Class getLocalClass()
public boolean isCMP1x()
public List getCMPFields()
public String getEagerLoadGroup()
public List getLazyLoadGroups()
public Map getLoadGroups()
public List getLoadGroup(String name) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
- if group with the specified name is not foundpublic JDBCOptimisticLockingMetaData getOptimisticLocking()
public JDBCAuditMetaData getAudit()
public JDBCCMPFieldMetaData getCMPFieldByName(String name)
name
- the name of the desired field
public String getDefaultTableName()
public boolean getCreateTable()
public boolean getRemoveTable()
public boolean getAlterTable()
public ArrayList getDefaultTablePostCreateCmd()
public boolean hasPrimaryKeyConstraint()
public boolean hasRowLocking()
public int getListCacheMax()
public int getFetchSize()
public Collection getQueries()
public JDBCQueryMetaData getQueryMetaDataForMethod(Method method)
method
- finder method name.
public Collection getRelationshipRoles()
public Class getPrimaryKeyClass()
public JDBCEntityCommandMetaData getEntityCommand()
public boolean isReadOnly()
public int getReadTimeOut()
public String getPrimaryKeyFieldName()
public JDBCReadAheadMetaData getReadAhead()
public Class getQLCompiler()
public boolean isCleanReadAheadOnLoad()
public static JDBCTypeMappingMetaData obtainTypeMappingFromLibrary(String dataSourceName) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public boolean equals(Object o)
o
- the reference object with which to compare
public int hashCode()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |