次の方法で共有


Command (ADO - WFC 構文)

package com.ms.wfc.data

コンストラクタ

public Command()  
public Command(String commandtext)  

メソッド

public void cancel()  
public com.ms.wfc.data.Parameter createParameter(String  
    Name, int Type, int Direction, int Size, Object Value)  
public Recordset execute()  
public Recordset execute(Object[] parameters)  
public Recordset execute(Object[] parameters, int options)  
public int executeUpdate(Object[] parameters)  
public int executeUpdate(Object[] parameters, int options)  
public int executeUpdate()  

executeUpdate メソッドは、特定のパラメーターを使用して基になる ADO 実行メソッドを呼び出す特殊なケース メソッドです。 executeUpdate メソッドは Recordset オブジェクトの戻り値をサポートしていないため、execute メソッドの options パラメーターは AdoEnums.ExecuteOptions.NORECORDS で変更されます。 execute メソッドが完了すると、更新された RecordsAffected パラメーターが executeUpdate メソッドに渡され、最終的に int として返されます。

特性

public com.ms.wfc.data.Connection getActiveConnection()  
public void setActiveConnection(com.ms.wfc.data.Connection con)  
public void setActiveConnection(String conString)  
public String getCommandText()  
public void setCommandText(String command)  
public int getCommandTimeout()  
public void setCommandTimeout(int timeout)  
public int getCommandType()  
public void setCommandType(int type)  
public String getName()  
public void setName(String name)  
public boolean getPrepared()  
public void setPrepared(boolean prepared)  
public int getState()  
public com.ms.wfc.data.Parameter getParameter(int n)  
public com.ms.wfc.data.Parameter getParameter(String n)  
public com.ms.wfc.data.Parameters getParameters()  
public AdoProperties getProperties()  

こちらもご覧ください

Command オブジェクト (ADO)