org.jboss.ejb.plugins.cmp.jdbc
Class JDBCLoadEntityCommand
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand
public final class JDBCLoadEntityCommand
- extends Object
JDBCLoadEntityCommand loads the data for an instance from the table.
This command implements specified eager loading. For CMP 2.x, the
entity can be configured to only load some of the fields, which is
helpful for entitys with lots of data.
- Version:
- $Revision: 57209 $
- Author:
- Dain Sundstrom, Oleg Nitz, Rickard �berg, Marc Fleury, Joe Shevland, Justin Forder, Dirk Zimmermann, danch (Dan Christopherson), Alexey Loubyansky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCLoadEntityCommand
public JDBCLoadEntityCommand(JDBCStoreManager manager)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
execute
public boolean execute(EntityEnterpriseContext ctx,
boolean failIfNotFound)
- Loads entity.
If failIfNotFound is true and entity wasn't found then NoSuchEntityException is thrown.
Otherwise, if entity wasn't found, returns false.
If entity was loaded successfully return true.
- Parameters:
ctx
- - entity context;failIfNotFound
- - whether to fail if entity wasn't found;
- Returns:
- true if entity was loaded, false - otherwise.
execute
public void execute(JDBCCMPFieldBridge requiredField,
EntityEnterpriseContext ctx)
- Loads entity or required field. If entity not found throws NoSuchEntityException.
- Parameters:
requiredField
- - required field or null;ctx
- - the corresponding context;
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.