当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
DeclaredSQLQueryCommand (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.ejb.plugins.cmp.jdbc2
Class DeclaredSQLQueryCommand
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc2.AbstractQueryCommand
org.jboss.ejb.plugins.cmp.jdbc2.DeclaredSQLQueryCommand
- All Implemented Interfaces:
- QueryCommand
- public class DeclaredSQLQueryCommand
- extends AbstractQueryCommand
- Version:
- $Revision: 1.1.4.1 $
- Author:
- Alexey Loubyansky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeclaredSQLQueryCommand
public DeclaredSQLQueryCommand(JDBCEntityBridge2 entity,
JDBCDeclaredQueryMetaData metadata)
throws org.jboss.deployment.DeploymentException
parseParameters
protected String parseParameters(String sql,
JDBCDeclaredQueryMetaData metadata)
throws org.jboss.deployment.DeploymentException
- Replaces the parameters in the specific sql with question marks, and
initializes the parameter setting code. Parameters are encoded in curly
brackets use a zero based index.
- Parameters:
sql
- the sql statement that is parsed for parameters
- Returns:
- the original sql statement with the parameters replaced with a
question mark
- Throws:
org.jboss.deployment.DeploymentException
- if a error occures while parsing the sql
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.