org.jboss.ejb.plugins.jaws.jdbc
Class JDBCBeanExistsCommand
java.lang.Object
   org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
       org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand
org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand
           org.jboss.ejb.plugins.jaws.jdbc.JDBCBeanExistsCommand
org.jboss.ejb.plugins.jaws.jdbc.JDBCBeanExistsCommand
- public class JDBCBeanExistsCommand- extends JDBCQueryCommand
JDBCBeanExistsCommand
- Version:
- $Revision: 1.11 $
   Revisions:
    20010812 vincent.harcq@hubmethods.com:
    
   -  Get Rid of debug flag, use log4j instead
   
 
- Author:
- Marc Fleury, Justin Forder
- See Also:
 
 
 
 
 
| Methods inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand | 
| getCMPFieldValue, getConnection, getJawsCMPFieldJDBCType, getJDBCType, getJDBCTypeName, getName, getPkColumnList, getPkColumnWhereList, getPkFieldValue, getResultObject, getResultObject, getSQL, getState, isBinaryType, jdbcExecute, setCMPFieldValue, setParameter, setPrimaryKeyParameters, setSQL | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JDBCBeanExistsCommand
public JDBCBeanExistsCommand(JDBCCommandFactory factory)
execute
public boolean execute(Object id)
- 
 
setParameters
protected void setParameters(PreparedStatement stmt,
                             Object argOrArgs)
                      throws Exception
- Description copied from class: JDBCCommand
- Default implementation does nothing.
 Override if parameters need to be set.
 
- 
- Overrides:
- setParametersin class- JDBCCommand
 
- 
- Parameters:
- stmt- the PreparedStatement which will be executed by this Command.
- argOrArgs- argument or array of arguments passed in from
  subclass execute method.
- Throws:
- Exception- if parameter setting fails.
 
handleResult
protected Object handleResult(ResultSet rs,
                              Object argOrArgs)
                       throws Exception
- Description copied from class: JDBCQueryCommand
- Handles the result of successful execution of the query.
 
- 
- Specified by:
- handleResultin class- JDBCQueryCommand
 
- 
- Parameters:
- rs- the result set from the query.
- argOrArgs- argument or array of arguments passed in from
  subclass execute method.
- Returns:
- any result produced by the handling of the result of executing
  the prepared statement.
- Throws:
- Exception- if execution or result handling fails.
 
      
      
        Copyright © 2002 JBoss Group, LLC. All Rights Reserved.