Definition at line 31 of file DeveelDbCommand.cs.
Deveel.Data.Client.DeveelDbCommand.DeveelDbCommand |
( |
| ) |
|
|
inline |
Deveel.Data.Client.DeveelDbCommand.DeveelDbCommand |
( |
string |
commandText | ) |
|
|
inline |
Deveel.Data.Client.DeveelDbCommand.DeveelDbCommand |
( |
DeveelDbConnection |
connection, |
|
|
string |
commandText |
|
) |
| |
|
inline |
Definition at line 56 of file DeveelDbCommand.cs.
60 parameters =
new DeveelDbParameterCollection(
this);
new DeveelDbConnection Connection
override string CommandText
DeveelDbParameterCollection parameters
DeveelDbConnection connection
void Deveel.Data.Client.DeveelDbCommand.AssertConnectionOpen |
( |
| ) |
|
|
inlineprivate |
Definition at line 294 of file DeveelDbCommand.cs.
296 throw new DeveelDbException(
"The command is not associated to any connection.");
301 }
catch (DeveelDbException) {
303 }
catch (Exception ex) {
304 throw new DeveelDbException(
"Failed to open the underlying connection", ex);
new DeveelDbConnection Connection
override ConnectionState State
override void Deveel.Data.Client.DeveelDbCommand.Cancel |
( |
| ) |
|
|
inline |
Definition at line 260 of file DeveelDbCommand.cs.
263 foreach (var result
in results) {
LocalQueryResult[] results
void DisposeResult(int resultId)
DeveelDbConnection connection
override DbParameter Deveel.Data.Client.DeveelDbCommand.CreateDbParameter |
( |
| ) |
|
|
inlineprotected |
SqlQuery Deveel.Data.Client.DeveelDbCommand.CreateQuery |
( |
| ) |
|
|
inlineprivate |
Definition at line 139 of file DeveelDbCommand.cs.
148 queryParameters[i] = queryParam;
155 foreach (var parameter
in queryParameters) {
157 if (!
String.IsNullOrEmpty(parameter.Name) &&
159 throw new InvalidOperationException();
161 if (
String.IsNullOrEmpty(parameter.Name))
162 throw new InvalidOperationException(
"Named parameters must have a name defined.");
165 throw new InvalidOperationException();
166 if (parameter.Name.Length <= 1)
167 throw new InvalidOperationException();
168 if (!
Char.IsLetter(parameter.Name[0]) &&
170 throw new InvalidOperationException();
173 query.Parameters.Add(parameter);
A long string in the system.
QueryParameter PrepareParameter(DeveelDbParameter parameter)
QueryParameterStyle ParameterStyle
List< QueryParameter > preparedParameters
override string CommandText
QueryParameterStyle
In a SQL query object, this is the form of parameters passed from the client side to the server side...
DeveelDbConnectionStringBuilder Settings
DeveelDbParameterCollection parameters
DeveelDbConnection connection
void Deveel.Data.Client.DeveelDbCommand.CreateResults |
( |
IQueryResponse[] |
response | ) |
|
|
inlineprivate |
Definition at line 105 of file DeveelDbCommand.cs.
108 for (
int i = 0; i < response.Length; i++) {
111 for (
int j = 0; j < columns.Length; j++) {
112 columns[j] = r.GetColumn(j);
116 result.QueryTime = r.QueryTimeMillis;
118 result.Setup(r.ResultId, columns, r.RowCount);
125 bool hasLargeObject = result.HasLargeObject;
129 if (!hasLargeObject && result.RowCount < 40) {
130 result.DownloadAndClose();
132 result.Download(0,
System.Math.Min(10, result.RowCount));
LocalQueryResult[] results
DeveelDbConnectionStringBuilder Settings
DeveelDbConnection connection
override void Deveel.Data.Client.DeveelDbCommand.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotected |
Definition at line 384 of file DeveelDbCommand.cs.
387 foreach (var result
in results) {
393 foreach (IDbDataParameter parameter
in parameters) {
394 if (parameter.Value is IDisposable) {
396 ((IDisposable)parameter.Value).Dispose();
397 }
catch (Exception) {
407 if (parameter.Value is IDisposable) {
409 ((IDisposable)parameter.Value).Dispose();
410 }
catch (Exception) {
417 preparedParameters = null;
421 base.Dispose(disposing);
LocalQueryResult[] results
List< QueryParameter > preparedParameters
DeveelDbParameterCollection parameters
override DbDataReader Deveel.Data.Client.DeveelDbCommand.ExecuteDbDataReader |
( |
CommandBehavior |
behavior | ) |
|
|
inlineprotected |
override int Deveel.Data.Client.DeveelDbCommand.ExecuteNonQuery |
( |
| ) |
|
|
inline |
Definition at line 335 of file DeveelDbCommand.cs.
347 if (!result.IsUpdate)
351 }
catch (Exception ex) {
352 throw new DeveelDbException(
"An error occurred while executing the non-query command.", ex);
LocalQueryResult[] results
void ChangeState(ConnectionState newState)
void AssertConnectionOpen()
DeveelDbConnection connection
void Deveel.Data.Client.DeveelDbCommand.ExecuteQuery |
( |
| ) |
|
|
inlineprivate |
Definition at line 97 of file DeveelDbCommand.cs.
new DeveelDbTransaction Transaction
void CreateResults(IQueryResponse[] response)
IQueryResponse[] ExecuteQuery(int commitId, SqlQuery query)
DeveelDbConnection connection
new DeveelDbDataReader Deveel.Data.Client.DeveelDbCommand.ExecuteReader |
( |
CommandBehavior |
behavior | ) |
|
|
inline |
Definition at line 313 of file DeveelDbCommand.cs.
318 throw new InvalidOperationException(
"Another reader is already open for the connection.");
321 throw new InvalidOperationException(
"The connection is not open.");
325 return new DeveelDbDataReader(
this, behavior);
326 }
catch (Exception ex) {
327 throw new DeveelDbException(
"An error occurred when executing the reader.", ex);
override ConnectionState State
void AssertConnectionOpen()
DeveelDbConnection connection
override object Deveel.Data.Client.DeveelDbCommand.ExecuteScalar |
( |
| ) |
|
|
inline |
Definition at line 358 of file DeveelDbCommand.cs.
373 if (result.RowCount == 0)
377 }
catch (Exception ex) {
378 throw new DeveelDbException(
"Error when selecting a scalar value.", ex);
LocalQueryResult[] results
void ChangeState(ConnectionState newState)
void AssertConnectionOpen()
object GetRuntimeValue(int ordinal)
DeveelDbConnection connection
bool Deveel.Data.Client.DeveelDbCommand.NextResult |
( |
| ) |
|
|
inlinepackage |
override void Deveel.Data.Client.DeveelDbCommand.Prepare |
( |
| ) |
|
|
inline |
void Deveel.Data.Client.DeveelDbCommand.PrepareCommand |
( |
| ) |
|
|
inlineprivate |
Definition at line 74 of file DeveelDbCommand.cs.
78 var name = parameter.ParameterName;
79 if (
String.IsNullOrEmpty(name))
84 new DataTypeMeta(
"Precision", parameter.Precision.ToString()),
90 var value = dataType.
CreateFrom(parameter.Value);
94 return queryParameter;
A long string in the system.
QueryParameterDirection GetParamDirection(SysParameterDirection direction)
Defines the properties of a specific SQL Type and handles the values compatible.
static SqlType Resolve(SqlTypeCode typeCode)
virtual ISqlObject CreateFrom(object value)
IQToolkit.Data.Common.QueryParameter QueryParameter
bool Deveel.Data.Client.DeveelDbCommand.prepared |
|
private |
List<QueryParameter> Deveel.Data.Client.DeveelDbCommand.preparedParameters |
|
private |
int Deveel.Data.Client.DeveelDbCommand.resultIndex |
|
private |
int Deveel.Data.Client.DeveelDbCommand.timeout |
|
private |
override string Deveel.Data.Client.DeveelDbCommand.CommandText |
|
getset |
override int Deveel.Data.Client.DeveelDbCommand.CommandTimeout |
|
getset |
override CommandType Deveel.Data.Client.DeveelDbCommand.CommandType |
|
getset |
override DbConnection Deveel.Data.Client.DeveelDbCommand.DbConnection |
|
getsetprotected |
override DbParameterCollection Deveel.Data.Client.DeveelDbCommand.DbParameterCollection |
|
getprotected |
override DbTransaction Deveel.Data.Client.DeveelDbCommand.DbTransaction |
|
getsetprotected |
override bool Deveel.Data.Client.DeveelDbCommand.DesignTimeVisible |
|
getset |
override UpdateRowSource Deveel.Data.Client.DeveelDbCommand.UpdatedRowSource |
|
getset |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Client/DeveelDbCommand.cs