class: ColumnsInfo

public class: ColumnsInfo
Author:
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 6.12.2005 14:45:37; Modified: 6.12.2005 14:47:57;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {25F89B67-DDD2-4b96-A7FA-BBA19B4FAD92}
Information about list of more columns

 

Goto: Fields, Methods

See also: BP_ColumnSelectDlg, Table, ColumnInfo, Table, ColumnInfo, Version, DataSrcEx

Appears in: Tables

Connections
 
ColumnsInfo Attributes
Attribute Details
private Table
  parentTable
Notes: Reference to Table object

private bool
  oneColumnFailed
Notes: If one of added column failed.

 
ColumnsInfo Methods
Operation Details
public
ColumnsInfo():
Notes: Constructor.
public
ColumnsInfo(
   ColumnsInfo colInfo):
Notes: Copy constructor. Copy all items except reference to Table object.
public
this(
   int id):ColumnInfo
<<indexer>>
Notes: Get column info according id
public
GetItemByName(
   string columnName):ColumnInfo
Notes: Look up ColumnInfo according column name in this container

@returns Found object or null
public
CheckTypes():bool
Notes: Check if all columns have not empty column type

@returns true if all columns have not emty database type
public
XmlDescription():string
<<property>>
Notes: Configuration of all columns as XML
public
ColsInfoCompareWith(
   string xml,
   TypeCompare type):bool
Notes: Compare all columns to columns in XML

@returns true if columns are equal
public
GetSqlCreateTable(
   string tableName):string
Notes: SQL statement for create table.

@returns SQL statement or empty string if failed
public
GetSqlInsertIntoTable(
   string tableName):string
Notes: SQL statement for insert data into table.

@returns SQL statement or empty string if failed
public
SelectedColumns():ArrayList
<<property>>
Notes: Array of integer. Each item is index of selected column.
public
Table():Table
<<property>>
Notes: Referrence to Table object
public
Add(
   ColumnInfo obj):int
Notes: Add column into container

@returns
public
SetTmpVals(
   object[] objs):void
Notes: Set values into columns. One value into one column. Each value is convert to string.
public
OneColumnFailed():bool
<<property>>
Notes: If exists one column with IsOK property, return true.