C# Class Deveel.Data.Client.DeveelDbCommandBuilder

Inheritance: System.Data.Common.DbCommandBuilder
Show file Open project: deveel/deveeldb Class Usage Examples

Private Properties

Property Type Description
HasPrimaryKey bool
OnRowUpdating void
ResetIsUniqueColumn void

Public Methods

Method Description
DeveelDbCommandBuilder ( ) : System
DeveelDbCommandBuilder ( DeveelDbDataAdapter dataAdapter ) : System
GetDeleteCommand ( ) : DeveelDbCommand
GetDeleteCommand ( bool useColumnsForParameterNames ) : DeveelDbCommand
GetInsertCommand ( ) : DeveelDbCommand
GetInsertCommand ( bool useColumnsForParameterNames ) : DeveelDbCommand
GetUpdateCommand ( ) : DeveelDbCommand
GetUpdateCommand ( bool useColumnsForParameterNames ) : DeveelDbCommand

Protected Methods

Method Description
ApplyParameterInfo ( DbParameter parameter, DataRow row, StatementType statementType, bool whereClause ) : void
GetParameterName ( int parameterOrdinal ) : string
GetParameterName ( string parameterName ) : string
GetParameterPlaceholder ( int parameterOrdinal ) : string
GetSchemaTable ( DbCommand sourceCommand ) : DataTable
SetRowUpdatingHandler ( DbDataAdapter adapter ) : void

Private Methods

Method Description
HasPrimaryKey ( DataTable table ) : bool
OnRowUpdating ( object sender, RowUpdatingEventArgs e ) : void
ResetIsUniqueColumn ( DataTable schema ) : void

Method Details

ApplyParameterInfo() protected method

protected ApplyParameterInfo ( DbParameter parameter, DataRow row, StatementType statementType, bool whereClause ) : void
parameter System.Data.Common.DbParameter
row System.Data.DataRow
statementType StatementType
whereClause bool
return void

DeveelDbCommandBuilder() public method

public DeveelDbCommandBuilder ( ) : System
return System

DeveelDbCommandBuilder() public method

public DeveelDbCommandBuilder ( DeveelDbDataAdapter dataAdapter ) : System
dataAdapter DeveelDbDataAdapter
return System

GetDeleteCommand() public method

public GetDeleteCommand ( ) : DeveelDbCommand
return DeveelDbCommand

GetDeleteCommand() public method

public GetDeleteCommand ( bool useColumnsForParameterNames ) : DeveelDbCommand
useColumnsForParameterNames bool
return DeveelDbCommand

GetInsertCommand() public method

public GetInsertCommand ( ) : DeveelDbCommand
return DeveelDbCommand

GetInsertCommand() public method

public GetInsertCommand ( bool useColumnsForParameterNames ) : DeveelDbCommand
useColumnsForParameterNames bool
return DeveelDbCommand

GetParameterName() protected method

protected GetParameterName ( int parameterOrdinal ) : string
parameterOrdinal int
return string

GetParameterName() protected method

protected GetParameterName ( string parameterName ) : string
parameterName string
return string

GetParameterPlaceholder() protected method

protected GetParameterPlaceholder ( int parameterOrdinal ) : string
parameterOrdinal int
return string

GetSchemaTable() protected method

protected GetSchemaTable ( DbCommand sourceCommand ) : DataTable
sourceCommand System.Data.Common.DbCommand
return System.Data.DataTable

GetUpdateCommand() public method

public GetUpdateCommand ( ) : DeveelDbCommand
return DeveelDbCommand

GetUpdateCommand() public method

public GetUpdateCommand ( bool useColumnsForParameterNames ) : DeveelDbCommand
useColumnsForParameterNames bool
return DeveelDbCommand

SetRowUpdatingHandler() protected method

protected SetRowUpdatingHandler ( DbDataAdapter adapter ) : void
adapter System.Data.Common.DbDataAdapter
return void