x4Trace Documentation v1.0
|
Represents a command list of SQL. This makes one execution of all commands. Only update/insert is available. More...
Public Member Functions | |
SQLGroupCommand (Controller controller) | |
Constructor. | |
override Database.SQLDataTable | Select (string select) |
Do not use! | |
override Database.SQLDataTable | Select (string select, string[] names, object[] objects) |
Do not use! | |
override string | DDL (string ddl) |
Executes SQL command. Adds the command to buffer. | |
override string | DDL (string ddl, string[] names, object[] values) |
Executes SQL command. Adds the command to buffer. | |
void | Send () |
Sends all message. Executes all buffered command. | |
void | SaveCommandsToXML (string fileName) |
Saves the commands to XML. | |
void | LoadCommandsFromXML (string fileName) |
Loads the command list from XML. | |
string | GetTempTableName (string name) |
Returns a temporary table name of this connection. Temporary tables will be deleted when the connection is closed. | |
void | OnDatabaseRecordLocked (Entity.Entity obj, ISQL sqlConnection, string tableName, string pKey) |
Fires DatabaseRecordLocked event. | |
void | OnDatabaseRecordUnLocked (Entity.Entity obj, ISQL sqlConnection, string tableName, string pKey) |
Fires DatabaseRecordUnLocked event. | |
void | OnDatabaseRecordInserted (Entity.Entity obj, ISQL sqlConnection, string tableName, string pKey) |
Fires DatabaseRecordInserted event. | |
void | OnDatabaseRecordUpdated (Entity.Entity obj, ISQL sqlConnection, string tableName, string pKey) |
Fires DatabaseRecordUpdated event. | |
List< T > | SelectGenericList< T > (string select) |
Executes a selection and create list of entities. | |
List< T > | SelectGenericList< T > (string select, string[] names, object[] objects) |
Executes a selection and create list of entities. | |
List< Entity.Entity > | SelectEntityList< T > (string select) |
Executes a selection and create list of entities. | |
List< Entity.Entity > | SelectEntityList< T > (string select, string[] names, object[] objects) |
Executes a selection and create list of entities. | |
Dictionary< string, T > | SelectDictionaryByKey< T > (string select) |
Executes a selection and create dictonary of entities. | |
Dictionary< string, T > | SelectDictionaryByKey< T > (string select, string[] names, object[] objects) |
Executes a selection and create dictonary of entities. | |
Static Public Member Functions | |
static Dictionary< string, T > | ListToDictionaryByKey< T > (List< T > entities) |
Public Attributes | |
int | lockUserID = 0 |
ID of user flor record lock. | |
string | lockUserName = "" |
Name of user for record lock. | |
string | lockIPAddress = "" |
IP address for record lock. | |
Protected Attributes | |
int | connectionID = 0 |
ID of network connection. | |
Properties | |
int | ConnectionID [get, set] |
ID of network connection. | |
Private Attributes | |
Controller | controller |
Controller. | |
List< Ix4Trace.Messages.SQLQuery > | commands = new List<Messages.SQLQuery>() |
List of command messages. | |
Represents a command list of SQL. This makes one execution of all commands. Only update/insert is available.
Ix4Trace.Engine.SQLGroupCommand.SQLGroupCommand | ( | Controller | controller | ) |
Constructor.
controller | Controller. |
override string Ix4Trace.Engine.SQLGroupCommand.DDL | ( | string | ddl | ) |
Executes SQL command. Adds the command to buffer.
ddl | Command of SQL. |
override string Ix4Trace.Engine.SQLGroupCommand.DDL | ( | string | ddl, |
string[] | names, | ||
object[] | values ) |
Executes SQL command. Adds the command to buffer.
ddl | Command of SQL. |
names | Name of variables. |
values | Values of variables. |
|
inherited |
Returns a temporary table name of this connection. Temporary tables will be deleted when the connection is closed.
name | Name of table. |
|
staticinherited |
T | : | Entity.Entity |
void Ix4Trace.Engine.SQLGroupCommand.LoadCommandsFromXML | ( | string | fileName | ) |
Loads the command list from XML.
fileName | Name of XML file. |
|
inherited |
Fires DatabaseRecordInserted event.
obj | Entity to lock. |
sqlConnection | Connection. |
tableName | Name of thable. |
pKey | Key of table. |
|
inherited |
Fires DatabaseRecordLocked event.
obj | Entity to lock. |
sqlConnection | Connection. |
tableName | Name of thable. |
pKey | Key of table. |
|
inherited |
Fires DatabaseRecordUnLocked event.
obj | Entity to lock. |
sqlConnection | Connection. |
tableName | Name of thable. |
pKey | Key of table. |
|
inherited |
Fires DatabaseRecordUpdated event.
obj | Entity to lock. |
sqlConnection | Connection. |
tableName | Name of thable. |
pKey | Key of table. |
void Ix4Trace.Engine.SQLGroupCommand.SaveCommandsToXML | ( | string | fileName | ) |
Saves the commands to XML.
fileName | name of the xml file. |
override Database.SQLDataTable Ix4Trace.Engine.SQLGroupCommand.Select | ( | string | select | ) |
Do not use!
select | Select query. |
override Database.SQLDataTable Ix4Trace.Engine.SQLGroupCommand.Select | ( | string | select, |
string[] | names, | ||
object[] | objects ) |
Do not use!
select | Select query. |
names | Name of variables. |
objects | Values of variables. |
|
inherited |
Executes a selection and create dictonary of entities.
T | Type of entity. |
select | Command. |
T | : | Entity.Entity |
|
inherited |
Executes a selection and create dictonary of entities.
T | Type of entity. |
select | Command. |
names | Name of parameters. |
objects | Value of parameters. |
T | : | Entity.Entity |
|
inherited |
Executes a selection and create list of entities.
T | Type of entity. |
select | Command. |
T | : | Entity.Entity |
|
inherited |
Executes a selection and create list of entities.
T | Type of entity. |
select | Command. |
names | Name of parameters. |
objects | Value of parameters. |
T | : | Entity.Entity |
|
inherited |
Executes a selection and create list of entities.
T | Type of entity. |
select | Command. |
T | : | Entity.Entity |
|
inherited |
Executes a selection and create list of entities.
T | Type of entity. |
select | Command. |
names | Name of parameters. |
objects | Value of parameters. |
T | : | Entity.Entity |