DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.SqlQuery.QueryParameterCollection Class Reference
Inheritance diagram for Deveel.Data.Sql.SqlQuery.QueryParameterCollection:

Public Member Functions

 QueryParameterCollection (SqlQuery sqlQuery)
 

Protected Member Functions

override void InsertItem (int index, QueryParameter item)
 
override void SetItem (int index, QueryParameter item)
 

Properties

SqlQuery SqlQuery [get, set]
 

Private Member Functions

void ValidateParameter (QueryParameter item)
 

Detailed Description

Definition at line 77 of file SqlQuery.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.SqlQuery.QueryParameterCollection.QueryParameterCollection ( SqlQuery  sqlQuery)
inline

Definition at line 80 of file SqlQuery.cs.

80  {
81  SqlQuery = sqlQuery;
82  }

Member Function Documentation

override void Deveel.Data.Sql.SqlQuery.QueryParameterCollection.InsertItem ( int  index,
QueryParameter  item 
)
inlineprotected

Definition at line 100 of file SqlQuery.cs.

100  {
101  ValidateParameter(item);
102  base.InsertItem(index, item);
103  }
void ValidateParameter(QueryParameter item)
Definition: SqlQuery.cs:84
override void Deveel.Data.Sql.SqlQuery.QueryParameterCollection.SetItem ( int  index,
QueryParameter  item 
)
inlineprotected

Definition at line 105 of file SqlQuery.cs.

105  {
106  ValidateParameter(item);
107  base.SetItem(index, item);
108  }
void ValidateParameter(QueryParameter item)
Definition: SqlQuery.cs:84
void Deveel.Data.Sql.SqlQuery.QueryParameterCollection.ValidateParameter ( QueryParameter  item)
inlineprivate

Definition at line 84 of file SqlQuery.cs.

84  {
85  if (item == null)
86  throw new ArgumentNullException("item");
87 
89  !String.Equals(item.Name, QueryParameter.Marker, StringComparison.Ordinal))
90  throw new ArgumentException(String.Format("The query accepts markers, but the parameter '{0}' is named.", item.Name));
92  if (item.Name.Equals(QueryParameter.Marker, StringComparison.Ordinal))
93  throw new ArgumentException("The query accepts named parameters, but a marker was set.");
94 
95  if (Items.Any(x => String.Equals(x.Name, item.Name)))
96  throw new ArgumentException(String.Format("A parameter named {0} was already inserted in the query.", item.Name));
97  }
98  }
A long string in the system.
QueryParameterStyle ParameterStyle
Definition: SqlQuery.cs:55
QueryParameterStyle
In a SQL query object, this is the form of parameters passed from the client side to the server side...

Property Documentation

SqlQuery Deveel.Data.Sql.SqlQuery.QueryParameterCollection.SqlQuery
getsetprivate

Definition at line 78 of file SqlQuery.cs.


The documentation for this class was generated from the following file: