C# Класс Deveel.Data.Sql.Tables.TableQueryExtensions

Provides a set of extension methods to ITable and IMutableTable objects.
Показать файл Открыть проект

Открытые методы

Метод Описание
AllRowsMatchColumnValue ( this table, int columnOffset, SqlExpressionType op, Field value ) : bool
AnyRowMatchesColumnValue ( this table, int columnOffset, SqlExpressionType op, Field value ) : bool
Composite ( this table, ITable other, CompositeFunction function, bool all ) : ITable
DistinctBy ( this table, ObjectName columnNames ) : ITable
DistinctBy ( this table, int columns ) : ITable
EmptySelect ( this table ) : ITable
Execept ( this table, ITable other, bool all ) : ITable
ExhaustiveSelect ( this table, IRequest context, SqlExpression expression ) : ITable
Exists ( this table, int columnOffset, Field value ) : bool
Exists ( this table, int columnOffset1, Field value1, int columnOffset2, Field value2 ) : bool
FindKeys ( this table, int columnOffsets, Field keyValue ) : IEnumerable
GetColumn ( this table, int columnOffset ) : Column
GetColumn ( this table, string columnName ) : Column
GetFirstValue ( this table, int columnOffset ) : Field
GetFirstValue ( this table, string columnName ) : Field
GetFirstValues ( this table, int columnOffsets ) : Field[]
GetLastValue ( this table, int columnOffset ) : Field
GetLastValue ( this table, string columnName ) : Field
GetLastValues ( this table, int columnOffsets ) : Field[]
GetRow ( this table, int rowNumber ) : Deveel.Data.Sql.Tables.Row
GetSingleValue ( this table, int columnOffset ) : Field
GetSingleValue ( this table, string columnName ) : Field
GetSingleValues ( this table, int columnOffsets ) : Field[]
GetValue ( this table, int rowIndex, ObjectName columnName ) : Field
GetValue ( this table, int rowIndex, string columnName ) : Field
IndexOfColumn ( this table, ObjectName columnName ) : int
IndexOfColumn ( this table, string columnName ) : int
Intersect ( this table, ITable other, bool all ) : ITable
Join ( this table, IRequest context, ITable other, ObjectName columnName, SqlExpressionType operatorType, SqlExpression expression ) : ITable
Join ( this table, ITable otherTable, bool quick ) : ITable
NaturalJoin ( this table, ITable otherTable ) : ITable
NotIn ( this table, ITable otherTable, int tableColumns, int otherColumns ) : ITable
OrderBy ( this table, ObjectName columnName, bool ascending ) : ITable
OrderBy ( this table, int columns ) : ITable
OrderBy ( this table, int columnIndex, bool ascending ) : ITable
OrderBy ( this table, string columnName, bool ascending ) : ITable
OrderRowsByColumns ( this table, int columns ) : IEnumerable
OuterJoin ( this table, ITable rightTable ) : ITable
Search ( this table, int column, string pattern ) : IEnumerable
Search ( this table, int column, string pattern, char escapeChar ) : IEnumerable
SelecRowsLess ( this table, int columnOffset, Field value ) : IEnumerable
SelecRowsLess ( this table, int columnOffset, System.Objects value ) : IEnumerable
Select ( this table, IRequest context, SqlExpression expression ) : ITable
SelectAll ( this table, int columnOffset ) : ITable
SelectAllRows ( this table ) : IEnumerable
SelectAllRows ( this table, int columnOffset ) : IEnumerable
SelectAnyAllNonCorrelated ( this table, ObjectName leftColumns, SqlExpressionType op, bool all, ITable rightTable ) : ITable
SelectEqual ( this table, int columnIndex, Field value ) : ITable
SelectEqual ( this table, string columnName, Field value ) : ITable
SelectFirst ( this table, int columnOffset ) : IEnumerable
SelectFromPattern ( this table, int column, SqlExpressionType op, Field ob ) : IEnumerable
SelectLast ( this table, int columnOffset ) : IEnumerable
SelectNotEqual ( this table, int columnOffset, Field value ) : IEnumerable
SelectNotEqual ( this table, int columnOffset, System.Objects value ) : IEnumerable
SelectRange ( this thisTable, ObjectName columnName, IndexRange ranges ) : ITable
SelectRows ( this table, IVariableResolver resolver, IRequest context, SqlBinaryExpression expression ) : IEnumerable
SelectRows ( this table, int columnOffsets, SqlExpressionType op, Field values ) : IEnumerable
SelectRowsBetween ( this table, int column, Field minCell, Field maxCell ) : IEnumerable
SelectRowsEqual ( this table, int columnIndex, Field value ) : IEnumerable
SelectRowsEqual ( this table, int columnIndex1, Field value1, int columnIndex2, Field value2 ) : IEnumerable
SelectRowsEqual ( this table, string columnName, Field value ) : IEnumerable
SelectRowsGreater ( this table, int columnOffset, Field value ) : IEnumerable
SelectRowsGreater ( this table, int columnOffset, System.Objects value ) : IEnumerable
SelectRowsGreaterOrEqual ( this table, int columnOffset, Field value ) : IEnumerable
SelectRowsGreaterOrEqual ( this table, int columnOffset, System.Objects value ) : IEnumerable
SelectRowsIn ( this table, ITable other, int column1, int column2 ) : IEnumerable

This implements the in command.

SelectRowsLessOrEqual ( this table, int columnOffset, Field value ) : IEnumerable
SelectRowsLessOrEqual ( this table, int columnOffset, System.Objects value ) : IEnumerable
SelectRowsNotIn ( this table, ITable other, int col1, int col2 ) : IEnumerable

This implements the not in command.

Issue: This will be less efficient than in if table has many rows and other has few rows.

SelectRowsRange ( this table, int column, IndexRange ranges ) : IEnumerable
SimpleJoin ( this thisTable, IRequest context, ITable other, SqlBinaryExpression binary ) : ITable
SimpleSelect ( this table, IRequest context, ObjectName columnName, SqlExpressionType op, SqlExpression exp ) : ITable
Subset ( this table, ObjectName columnNames, ObjectName aliases ) : ITable
ToDictionary ( this table ) : Objects.ISqlObject>.Dictionary
Union ( this thisTable, ITable otherTable ) : ITable

Приватные методы

Метод Описание
AsVirtual ( this table, Func selector ) : ITable
MakeObject ( this table, int columnOffset, System.Objects value ) : Field

Описание методов

AllRowsMatchColumnValue() публичный статический Метод

public static AllRowsMatchColumnValue ( this table, int columnOffset, SqlExpressionType op, Field value ) : bool
table this
columnOffset int
op SqlExpressionType
value Field
Результат bool

AnyRowMatchesColumnValue() публичный статический Метод

public static AnyRowMatchesColumnValue ( this table, int columnOffset, SqlExpressionType op, Field value ) : bool
table this
columnOffset int
op SqlExpressionType
value Field
Результат bool

Composite() публичный статический Метод

public static Composite ( this table, ITable other, CompositeFunction function, bool all ) : ITable
table this
other ITable
function CompositeFunction
all bool
Результат ITable

DistinctBy() публичный статический Метод

public static DistinctBy ( this table, ObjectName columnNames ) : ITable
table this
columnNames ObjectName
Результат ITable

DistinctBy() публичный статический Метод

public static DistinctBy ( this table, int columns ) : ITable
table this
columns int
Результат ITable

EmptySelect() публичный статический Метод

public static EmptySelect ( this table ) : ITable
table this
Результат ITable

Execept() публичный статический Метод

public static Execept ( this table, ITable other, bool all ) : ITable
table this
other ITable
all bool
Результат ITable

ExhaustiveSelect() публичный статический Метод

public static ExhaustiveSelect ( this table, IRequest context, SqlExpression expression ) : ITable
table this
context IRequest
expression Deveel.Data.Sql.Expressions.SqlExpression
Результат ITable

Exists() публичный статический Метод

public static Exists ( this table, int columnOffset, Field value ) : bool
table this
columnOffset int
value Field
Результат bool

Exists() публичный статический Метод

public static Exists ( this table, int columnOffset1, Field value1, int columnOffset2, Field value2 ) : bool
table this
columnOffset1 int
value1 Field
columnOffset2 int
value2 Field
Результат bool

FindKeys() публичный статический Метод

public static FindKeys ( this table, int columnOffsets, Field keyValue ) : IEnumerable
table this
columnOffsets int
keyValue Field
Результат IEnumerable

GetColumn() публичный статический Метод

public static GetColumn ( this table, int columnOffset ) : Column
table this
columnOffset int
Результат Column

GetColumn() публичный статический Метод

public static GetColumn ( this table, string columnName ) : Column
table this
columnName string
Результат Column

GetFirstValue() публичный статический Метод

public static GetFirstValue ( this table, int columnOffset ) : Field
table this
columnOffset int
Результат Field

GetFirstValue() публичный статический Метод

public static GetFirstValue ( this table, string columnName ) : Field
table this
columnName string
Результат Field

GetFirstValues() публичный статический Метод

public static GetFirstValues ( this table, int columnOffsets ) : Field[]
table this
columnOffsets int
Результат Field[]

GetLastValue() публичный статический Метод

public static GetLastValue ( this table, int columnOffset ) : Field
table this
columnOffset int
Результат Field

GetLastValue() публичный статический Метод

public static GetLastValue ( this table, string columnName ) : Field
table this
columnName string
Результат Field

GetLastValues() публичный статический Метод

public static GetLastValues ( this table, int columnOffsets ) : Field[]
table this
columnOffsets int
Результат Field[]

GetRow() публичный статический Метод

public static GetRow ( this table, int rowNumber ) : Deveel.Data.Sql.Tables.Row
table this
rowNumber int
Результат Deveel.Data.Sql.Tables.Row

GetSingleValue() публичный статический Метод

public static GetSingleValue ( this table, int columnOffset ) : Field
table this
columnOffset int
Результат Field

GetSingleValue() публичный статический Метод

public static GetSingleValue ( this table, string columnName ) : Field
table this
columnName string
Результат Field

GetSingleValues() публичный статический Метод

public static GetSingleValues ( this table, int columnOffsets ) : Field[]
table this
columnOffsets int
Результат Field[]

GetValue() публичный статический Метод

public static GetValue ( this table, int rowIndex, ObjectName columnName ) : Field
table this
rowIndex int
columnName ObjectName
Результат Field

GetValue() публичный статический Метод

public static GetValue ( this table, int rowIndex, string columnName ) : Field
table this
rowIndex int
columnName string
Результат Field

IndexOfColumn() публичный статический Метод

public static IndexOfColumn ( this table, ObjectName columnName ) : int
table this
columnName ObjectName
Результат int

IndexOfColumn() публичный статический Метод

public static IndexOfColumn ( this table, string columnName ) : int
table this
columnName string
Результат int

Intersect() публичный статический Метод

public static Intersect ( this table, ITable other, bool all ) : ITable
table this
other ITable
all bool
Результат ITable

Join() публичный статический Метод

public static Join ( this table, IRequest context, ITable other, ObjectName columnName, SqlExpressionType operatorType, SqlExpression expression ) : ITable
table this
context IRequest
other ITable
columnName ObjectName
operatorType SqlExpressionType
expression Deveel.Data.Sql.Expressions.SqlExpression
Результат ITable

Join() публичный статический Метод

public static Join ( this table, ITable otherTable, bool quick ) : ITable
table this
otherTable ITable
quick bool
Результат ITable

NaturalJoin() публичный статический Метод

public static NaturalJoin ( this table, ITable otherTable ) : ITable
table this
otherTable ITable
Результат ITable

NotIn() публичный статический Метод

public static NotIn ( this table, ITable otherTable, int tableColumns, int otherColumns ) : ITable
table this
otherTable ITable
tableColumns int
otherColumns int
Результат ITable

OrderBy() публичный статический Метод

public static OrderBy ( this table, ObjectName columnName, bool ascending ) : ITable
table this
columnName ObjectName
ascending bool
Результат ITable

OrderBy() публичный статический Метод

public static OrderBy ( this table, int columns ) : ITable
table this
columns int
Результат ITable

OrderBy() публичный статический Метод

public static OrderBy ( this table, int columnIndex, bool ascending ) : ITable
table this
columnIndex int
ascending bool
Результат ITable

OrderBy() публичный статический Метод

public static OrderBy ( this table, string columnName, bool ascending ) : ITable
table this
columnName string
ascending bool
Результат ITable

OrderRowsByColumns() публичный статический Метод

public static OrderRowsByColumns ( this table, int columns ) : IEnumerable
table this
columns int
Результат IEnumerable

OuterJoin() публичный статический Метод

public static OuterJoin ( this table, ITable rightTable ) : ITable
table this
rightTable ITable
Результат ITable

Search() публичный статический Метод

public static Search ( this table, int column, string pattern ) : IEnumerable
table this
column int
pattern string
Результат IEnumerable

Search() публичный статический Метод

public static Search ( this table, int column, string pattern, char escapeChar ) : IEnumerable
table this
column int
pattern string
escapeChar char
Результат IEnumerable

SelecRowsLess() публичный статический Метод

public static SelecRowsLess ( this table, int columnOffset, Field value ) : IEnumerable
table this
columnOffset int
value Field
Результат IEnumerable

SelecRowsLess() публичный статический Метод

public static SelecRowsLess ( this table, int columnOffset, System.Objects value ) : IEnumerable
table this
columnOffset int
value System.Objects
Результат IEnumerable

Select() публичный статический Метод

public static Select ( this table, IRequest context, SqlExpression expression ) : ITable
table this
context IRequest
expression Deveel.Data.Sql.Expressions.SqlExpression
Результат ITable

SelectAll() публичный статический Метод

public static SelectAll ( this table, int columnOffset ) : ITable
table this
columnOffset int
Результат ITable

SelectAllRows() публичный статический Метод

public static SelectAllRows ( this table ) : IEnumerable
table this
Результат IEnumerable

SelectAllRows() публичный статический Метод

public static SelectAllRows ( this table, int columnOffset ) : IEnumerable
table this
columnOffset int
Результат IEnumerable

SelectAnyAllNonCorrelated() публичный статический Метод

public static SelectAnyAllNonCorrelated ( this table, ObjectName leftColumns, SqlExpressionType op, bool all, ITable rightTable ) : ITable
table this
leftColumns ObjectName
op SqlExpressionType
all bool
rightTable ITable
Результат ITable

SelectEqual() публичный статический Метод

public static SelectEqual ( this table, int columnIndex, Field value ) : ITable
table this
columnIndex int
value Field
Результат ITable

SelectEqual() публичный статический Метод

public static SelectEqual ( this table, string columnName, Field value ) : ITable
table this
columnName string
value Field
Результат ITable

SelectFirst() публичный статический Метод

public static SelectFirst ( this table, int columnOffset ) : IEnumerable
table this
columnOffset int
Результат IEnumerable

SelectFromPattern() публичный статический Метод

public static SelectFromPattern ( this table, int column, SqlExpressionType op, Field ob ) : IEnumerable
table this
column int
op SqlExpressionType
ob Field
Результат IEnumerable

SelectLast() публичный статический Метод

public static SelectLast ( this table, int columnOffset ) : IEnumerable
table this
columnOffset int
Результат IEnumerable

SelectNotEqual() публичный статический Метод

public static SelectNotEqual ( this table, int columnOffset, Field value ) : IEnumerable
table this
columnOffset int
value Field
Результат IEnumerable

SelectNotEqual() публичный статический Метод

public static SelectNotEqual ( this table, int columnOffset, System.Objects value ) : IEnumerable
table this
columnOffset int
value System.Objects
Результат IEnumerable

SelectRange() публичный статический Метод

public static SelectRange ( this thisTable, ObjectName columnName, IndexRange ranges ) : ITable
thisTable this
columnName ObjectName
ranges Deveel.Data.Index.IndexRange
Результат ITable

SelectRows() публичный статический Метод

public static SelectRows ( this table, IVariableResolver resolver, IRequest context, SqlBinaryExpression expression ) : IEnumerable
table this
resolver IVariableResolver
context IRequest
expression Deveel.Data.Sql.Expressions.SqlBinaryExpression
Результат IEnumerable

SelectRows() публичный статический Метод

public static SelectRows ( this table, int columnOffsets, SqlExpressionType op, Field values ) : IEnumerable
table this
columnOffsets int
op SqlExpressionType
values Field
Результат IEnumerable

SelectRowsBetween() публичный статический Метод

public static SelectRowsBetween ( this table, int column, Field minCell, Field maxCell ) : IEnumerable
table this
column int
minCell Field
maxCell Field
Результат IEnumerable

SelectRowsEqual() публичный статический Метод

public static SelectRowsEqual ( this table, int columnIndex, Field value ) : IEnumerable
table this
columnIndex int
value Field
Результат IEnumerable

SelectRowsEqual() публичный статический Метод

public static SelectRowsEqual ( this table, int columnIndex1, Field value1, int columnIndex2, Field value2 ) : IEnumerable
table this
columnIndex1 int
value1 Field
columnIndex2 int
value2 Field
Результат IEnumerable

SelectRowsEqual() публичный статический Метод

public static SelectRowsEqual ( this table, string columnName, Field value ) : IEnumerable
table this
columnName string
value Field
Результат IEnumerable

SelectRowsGreater() публичный статический Метод

public static SelectRowsGreater ( this table, int columnOffset, Field value ) : IEnumerable
table this
columnOffset int
value Field
Результат IEnumerable

SelectRowsGreater() публичный статический Метод

public static SelectRowsGreater ( this table, int columnOffset, System.Objects value ) : IEnumerable
table this
columnOffset int
value System.Objects
Результат IEnumerable

SelectRowsGreaterOrEqual() публичный статический Метод

public static SelectRowsGreaterOrEqual ( this table, int columnOffset, Field value ) : IEnumerable
table this
columnOffset int
value Field
Результат IEnumerable

SelectRowsGreaterOrEqual() публичный статический Метод

public static SelectRowsGreaterOrEqual ( this table, int columnOffset, System.Objects value ) : IEnumerable
table this
columnOffset int
value System.Objects
Результат IEnumerable

SelectRowsIn() публичный статический Метод

This implements the in command.
public static SelectRowsIn ( this table, ITable other, int column1, int column2 ) : IEnumerable
table this
other ITable
column1 int
column2 int
Результат IEnumerable

SelectRowsLessOrEqual() публичный статический Метод

public static SelectRowsLessOrEqual ( this table, int columnOffset, Field value ) : IEnumerable
table this
columnOffset int
value Field
Результат IEnumerable

SelectRowsLessOrEqual() публичный статический Метод

public static SelectRowsLessOrEqual ( this table, int columnOffset, System.Objects value ) : IEnumerable
table this
columnOffset int
value System.Objects
Результат IEnumerable

SelectRowsNotIn() публичный статический Метод

This implements the not in command.
Issue: This will be less efficient than in if table has many rows and other has few rows.
public static SelectRowsNotIn ( this table, ITable other, int col1, int col2 ) : IEnumerable
table this
other ITable
col1 int
col2 int
Результат IEnumerable

SelectRowsRange() публичный статический Метод

public static SelectRowsRange ( this table, int column, IndexRange ranges ) : IEnumerable
table this
column int
ranges Deveel.Data.Index.IndexRange
Результат IEnumerable

SimpleJoin() публичный статический Метод

public static SimpleJoin ( this thisTable, IRequest context, ITable other, SqlBinaryExpression binary ) : ITable
thisTable this
context IRequest
other ITable
binary Deveel.Data.Sql.Expressions.SqlBinaryExpression
Результат ITable

SimpleSelect() публичный статический Метод

public static SimpleSelect ( this table, IRequest context, ObjectName columnName, SqlExpressionType op, SqlExpression exp ) : ITable
table this
context IRequest
columnName ObjectName
op SqlExpressionType
exp Deveel.Data.Sql.Expressions.SqlExpression
Результат ITable

Subset() публичный статический Метод

public static Subset ( this table, ObjectName columnNames, ObjectName aliases ) : ITable
table this
columnNames ObjectName
aliases ObjectName
Результат ITable

ToDictionary() публичный статический Метод

public static ToDictionary ( this table ) : Objects.ISqlObject>.Dictionary
table this
Результат Objects.ISqlObject>.Dictionary

Union() публичный статический Метод

public static Union ( this thisTable, ITable otherTable ) : ITable
thisTable this
otherTable ITable
Результат ITable