public final class JDBCEntityMetaData extends Object
Constructor and Description |
---|
JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication) |
JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication,
org.jboss.metadata.ejb.spec.EntityBeanMetaData 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.
|
JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication,
JDBCEntityMetaData defaultValues) |
JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication,
ParsedEntity parsed,
JDBCEntityMetaData defaultValues) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares this JDBCEntityMetaData against the specified object.
|
String |
getAbstractSchemaName()
Gets the abstract schema 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
|
JDBCCMPFieldMetaData |
getCMPFieldByName(String name)
Gets the cmp field with the specified name
|
List<JDBCCMPFieldMetaData> |
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
|
List<String> |
getDefaultTablePostCreateCmd()
Get the (user-defined) SQL commands that should 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<String> |
getLazyLoadGroups()
Gets the collection of lazy load group names.
|
int |
getListCacheMax()
The maximum number of query result lists that will be tracked.
|
List<String> |
getLoadGroup(String name)
Gets the load group with the specified name.
|
Map<String,List<String>> |
getLoadGroups()
Gets the map from load group 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<JDBCQueryMetaData> |
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<JDBCRelationshipRoleMetaData> |
getRelationshipRoles()
Get the relationship 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.
|
boolean |
getThrowRuntimeExceptions()
Gets the throw-runtime-exceptions meta data for this entity.
|
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
primary 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.
|
String |
toString()
Returns a string describing this JDBCEntityMetaData.
|
public JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication)
public JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication, org.jboss.metadata.ejb.spec.EntityBeanMetaData entity)
jdbcApplication
- the application in which this entity is definedentity
- the entity meta data for this entity that is loaded
from the ejb-jar.xml filepublic JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication, JDBCEntityMetaData defaultValues)
public JDBCEntityMetaData(JDBCApplicationMetaData jdbcApplication, ParsedEntity parsed, JDBCEntityMetaData defaultValues)
public JDBCApplicationMetaData getJDBCApplication()
public String getDataSourceName()
public JDBCTypeMappingMetaData getTypeMapping()
public String getName()
public String getAbstractSchemaName()
public Class<?> getEntityClass()
public Class<?> getHomeClass()
public Class<?> getRemoteClass()
public Class<?> getLocalHomeClass()
public Class<?> getLocalClass()
public boolean isCMP1x()
public List<JDBCCMPFieldMetaData> getCMPFields()
public String getEagerLoadGroup()
public List<String> getLazyLoadGroups()
public Map<String,List<String>> getLoadGroups()
public List<String> getLoadGroup(String name)
public JDBCOptimisticLockingMetaData getOptimisticLocking()
public JDBCAuditMetaData getAudit()
public JDBCCMPFieldMetaData getCMPFieldByName(String name)
name
- the name of the desired fieldpublic String getDefaultTableName()
public boolean getCreateTable()
public boolean getRemoveTable()
public boolean getAlterTable()
public List<String> getDefaultTablePostCreateCmd()
public boolean hasPrimaryKeyConstraint()
public boolean hasRowLocking()
public int getListCacheMax()
public int getFetchSize()
public Collection<JDBCQueryMetaData> getQueries()
public JDBCQueryMetaData getQueryMetaDataForMethod(Method method)
method
- finder method name.public Collection<JDBCRelationshipRoleMetaData> getRelationshipRoles()
public Class<?> getPrimaryKeyClass()
public JDBCEntityCommandMetaData getEntityCommand()
public boolean isReadOnly()
public int getReadTimeOut()
public String getPrimaryKeyFieldName()
public JDBCReadAheadMetaData getReadAhead()
public Class<?> getQlCompiler()
public boolean isThrowRuntimeExceptions()
public boolean getThrowRuntimeExceptions()
public boolean isCleanReadAheadOnLoad()
public boolean equals(Object o)
public int hashCode()
public String toString()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.