4 // Part of the Mono class libraries at
5 // mcs/class/System.Data.OracleClient/System.Data.OracleClient
7 // Assembly: System.Data.OracleClient.dll
8 // Namespace: System.Data.OracleClient
10 // Author: Daniel Morgan <danmorg@sc.rr.com>
12 // Copyright (C) Daniel Morgan, 2002
14 // Licensed under the MIT/X11 License.
19 using System.Data.OracleClient.OCI;
21 namespace System.Data.OracleClient
23 public class OracleCommand
26 OracleConnection conn = null;
28 public OracleCommand ()
33 public int ExecuteNonQuery ()
35 int rowsAffected = -1;
38 throw new Exception("Connection is null");
39 if(conn.State != ConnectionState.Open)
40 throw new Exception("ConnectionState not Open");
42 throw new Exception("CommandText is StringEmpty");
45 status = conn.Oci.PrepareAndExecuteNonQuerySimple (sql);
48 statusText = conn.Oci.CheckError(status);
53 throw new Exception(msg);
59 public string CommandText {
68 public OracleConnection Connection {