|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData
This immutable class contains information about an entity
Constructor Summary | |
JDBCEntityMetaData(JDBCApplicationMetaData (src) jdbcApplication,
org.w3c.dom.Element element,
JDBCEntityMetaData (src) defaultValues)
Constructs entity meta data with the data contained in the entity xml element from a jbosscmp-jdbc xml file. |
|
JDBCEntityMetaData(JDBCApplicationMetaData (src) jdbcApplication,
EntityMetaData (src) 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(java.lang.Object o)
Compares this JDBCEntityMetaData against the specified object. |
java.lang.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 (src) |
getAudit()
Returns audit metadata |
java.lang.ClassLoader |
getClassLoader()
Gets the class loaded which is used to load all classes used by this entity |
JDBCCMPFieldMetaData (src) |
getCMPFieldByName(java.lang.String name)
Gets the cmp field with the specified name |
java.util.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. |
java.lang.String |
getDataSourceName()
Gets the name of the datasource in jndi for this entity |
java.lang.String |
getDefaultTableName()
Gets the name of the table to which this entity is persisted |
java.util.ArrayList |
getDefaultTablePostCreateCmd()
Get the (user-defined) SQL commands that sould be issued after table creation |
java.lang.String |
getEagerLoadGroup()
Gets the name of the eager load group. |
java.lang.Class |
getEntityClass()
Gets the implementation class of this entity |
JDBCEntityCommandMetaData (src) |
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. |
java.lang.Class |
getHomeClass()
Gets the home class of this entity |
JDBCApplicationMetaData (src) |
getJDBCApplication()
Gets the meta data for the application of which this entity is a member. |
java.util.List |
getLazyLoadGroups()
Gets the collection of lazy load group names. |
int |
getListCacheMax()
The maximum number of qurey result lists that will be tracked. |
java.util.List |
getLoadGroup(java.lang.String name)
Gets the load group with the specified name. |
java.util.Map |
getLoadGroups()
Gets the map from load grou name to a List of field names, which forms a logical load group. |
java.lang.Class |
getLocalClass()
Gets the local class of this entity |
java.lang.Class |
getLocalHomeClass()
Gets the local home class of this entity |
java.lang.String |
getName()
Gets the name of this entity. |
JDBCOptimisticLockingMetaData (src) |
getOptimisticLocking()
Returns optimistic locking metadata |
java.lang.Class |
getPrimaryKeyClass()
Gets the primary key class for this entity |
java.lang.String |
getPrimaryKeyFieldName()
Gets the name of the primary key field of this entity or null if the primary key is multivalued |
java.lang.Class |
getQLCompiler()
|
java.util.Collection |
getQueries()
Gets the queries defined on this entity |
JDBCQueryMetaData (src) |
getQueryMetaDataForMethod(java.lang.reflect.Method method)
|
JDBCReadAheadMetaData (src) |
getReadAhead()
Gets the read ahead meta data for this entity. |
int |
getReadTimeOut()
How long is a read of this entity valid. |
java.util.Collection |
getRelationshipRoles()
Get the relationsip roles of this entity. |
java.lang.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. |
boolean |
getThrowRuntimeExceptions()
Gets the throw-runtime-exceptions meta data for this entity. |
JDBCTypeMappingMetaData (src) |
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. |
boolean |
isThrowRuntimeExceptions()
Is the throw-runtime-exceptions meta data for this entity is true. |
static JDBCTypeMappingMetaData (src) |
obtainTypeMappingFromLibrary(java.lang.String dataSourceName)
|
java.lang.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 (src) jdbcApplication, EntityMetaData (src) entity) throws DeploymentException (src)
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
DeploymentException (src)
- 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 (src) jdbcApplication, org.w3c.dom.Element element, JDBCEntityMetaData (src) defaultValues) throws DeploymentException (src)
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
DeploymentException (src)
- if the xml element is not semantically correctMethod Detail |
public JDBCApplicationMetaData (src) getJDBCApplication()
public java.lang.String getDataSourceName()
public JDBCTypeMappingMetaData (src) getTypeMapping() throws DeploymentException (src)
DeploymentException (src)
public java.lang.String getName()
public java.lang.String getAbstractSchemaName()
public java.lang.ClassLoader getClassLoader()
public java.lang.Class getEntityClass()
public java.lang.Class getHomeClass()
public java.lang.Class getRemoteClass()
public java.lang.Class getLocalHomeClass()
public java.lang.Class getLocalClass()
public boolean isCMP1x()
public java.util.List getCMPFields()
public java.lang.String getEagerLoadGroup()
public java.util.List getLazyLoadGroups()
public java.util.Map getLoadGroups()
public java.util.List getLoadGroup(java.lang.String name) throws DeploymentException (src)
DeploymentException (src)
- if group with the specified name is not foundpublic JDBCOptimisticLockingMetaData (src) getOptimisticLocking()
public JDBCAuditMetaData (src) getAudit()
public JDBCCMPFieldMetaData (src) getCMPFieldByName(java.lang.String name)
name
- the name of the desired field
public java.lang.String getDefaultTableName()
public boolean getCreateTable()
public boolean getRemoveTable()
public boolean getAlterTable()
public java.util.ArrayList getDefaultTablePostCreateCmd()
public boolean hasPrimaryKeyConstraint()
public boolean hasRowLocking()
public int getListCacheMax()
public int getFetchSize()
public java.util.Collection getQueries()
public JDBCQueryMetaData (src) getQueryMetaDataForMethod(java.lang.reflect.Method method)
method
- finder method name.
public java.util.Collection getRelationshipRoles()
public java.lang.Class getPrimaryKeyClass()
public JDBCEntityCommandMetaData (src) getEntityCommand()
public boolean isReadOnly()
public int getReadTimeOut()
public java.lang.String getPrimaryKeyFieldName()
public JDBCReadAheadMetaData (src) getReadAhead()
public java.lang.Class getQLCompiler()
public boolean isThrowRuntimeExceptions()
public boolean getThrowRuntimeExceptions()
public boolean isCleanReadAheadOnLoad()
public static JDBCTypeMappingMetaData (src) obtainTypeMappingFromLibrary(java.lang.String dataSourceName) throws DeploymentException (src)
DeploymentException (src)
public boolean equals(java.lang.Object o)
o
- the reference object with which to compare
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |