当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
JDBCEntityBridge2 (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.ejb.plugins.cmp.jdbc2.bridge
Class JDBCEntityBridge2
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc2.bridge.JDBCEntityBridge2
- All Implemented Interfaces:
- EntityBridge, JDBCAbstractEntityBridge
- public class JDBCEntityBridge2
- extends Object
- implements JDBCAbstractEntityBridge
- Version:
- $Revision: 1.5.2.1 $
- Author:
- Alexey Loubyansky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCEntityBridge2
public JDBCEntityBridge2(JDBCStoreManager2 manager,
JDBCEntityMetaData metadata)
throws org.jboss.deployment.DeploymentException
init
public void init()
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
getVersionField
public JDBCCMPFieldBridge2 getVersionField()
resolveRelationships
public void resolveRelationships()
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
start
public void start()
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
stop
public void stop()
throws Exception
- Throws:
Exception
getMetaData
public JDBCEntityMetaData getMetaData()
- Specified by:
getMetaData
in interface JDBCAbstractEntityBridge
getTable
public EntityTable getTable()
getPrimaryKeyFields
public JDBCFieldBridge[] getPrimaryKeyFields()
- Specified by:
getPrimaryKeyFields
in interface JDBCAbstractEntityBridge
getTableFields
public JDBCFieldBridge[] getTableFields()
- Specified by:
getTableFields
in interface JDBCAbstractEntityBridge
getCMRFields
public JDBCAbstractCMRFieldBridge[] getCMRFields()
- Specified by:
getCMRFields
in interface JDBCAbstractEntityBridge
getManager
public JDBCEntityPersistenceStore getManager()
- Specified by:
getManager
in interface JDBCAbstractEntityBridge
getContainer
public EntityContainer getContainer()
extractPrimaryKeyFromInstance
public Object extractPrimaryKeyFromInstance(EntityEnterpriseContext ctx)
destroyPersistenceContext
public static void destroyPersistenceContext(EntityEnterpriseContext ctx)
initPersistenceContext
public void initPersistenceContext(EntityEnterpriseContext ctx)
initInstance
public void initInstance(EntityEnterpriseContext ctx)
getFields
public List getFields()
- hacky method needed at deployment time
isStoreRequired
public boolean isStoreRequired(EntityEnterpriseContext instance)
isModified
public boolean isModified(EntityEnterpriseContext instance)
getPrimaryKeyClass
public Class getPrimaryKeyClass()
getHomeClass
public Class getHomeClass()
getLocalHomeClass
public Class getLocalHomeClass()
getTableName
public String getTableName()
- Specified by:
getTableName
in interface JDBCAbstractEntityBridge
getQualifiedTableName
public String getQualifiedTableName()
- Specified by:
getQualifiedTableName
in interface JDBCAbstractEntityBridge
getDataSource
public DataSource getDataSource()
- Specified by:
getDataSource
in interface JDBCAbstractEntityBridge
getLoadGroupMask
public boolean[] getLoadGroupMask(String eagerLoadGroupName)
- Specified by:
getLoadGroupMask
in interface JDBCAbstractEntityBridge
getNextCMRIndex
public int getNextCMRIndex()
remove
public void remove(EntityEnterpriseContext ctx)
throws javax.ejb.RemoveException
- Throws:
javax.ejb.RemoveException
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interface EntityBridge
getAbstractSchemaName
public String getAbstractSchemaName()
- Specified by:
getAbstractSchemaName
in interface EntityBridge
getFieldByName
public FieldBridge getFieldByName(String fieldName)
- Specified by:
getFieldByName
in interface EntityBridge
getRemoteInterface
public Class getRemoteInterface()
- Specified by:
getRemoteInterface
in interface EntityBridge
getLocalInterface
public Class getLocalInterface()
- Specified by:
getLocalInterface
in interface EntityBridge
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.