00001 {*********************************************************}
00002 { }
00003 { Zeos Database Objects }
00004 { Universal Dataset component }
00005 { }
00006 { Originally written by Sergey Seroukhov }
00007 { }
00008 {*********************************************************}
00009
00010 {@********************************************************}
00011 { Copyright (c) 1999-2006 Zeos Development Group }
00012 { }
00013 { License Agreement: }
00014 { }
00015 { This library is distributed in the hope that it will be }
00016 { useful, but WITHOUT ANY WARRANTY; without even the }
00017 { implied warranty of MERCHANTABILITY or FITNESS FOR }
00018 { A PARTICULAR PURPOSE. See the GNU Lesser General }
00019 { Public License for more details. }
00020 { }
00021 { The source code of the ZEOS Libraries and packages are }
00022 { distributed under the Library GNU General Public }
00023 { License (see the file COPYING / COPYING.ZEOS) }
00024 { with the following modification: }
00025 { As a special exception, the copyright holders of this }
00026 { library give you permission to link this library with }
00027 { independent modules to produce an executable, }
00028 { regardless of the license terms of these independent }
00029 { modules, and to copy and distribute the resulting }
00030 { executable under terms of your choice, provided that }
00031 { you also meet, for each linked independent module, }
00032 { the terms and conditions of the license of that module. }
00033 { An independent module is a module which is not derived }
00034 { from or based on this library. If you modify this }
00035 { library, you may extend this exception to your version }
00036 { of the library, but you are not obligated to do so. }
00037 { If you do not wish to do so, delete this exception }
00038 { statement from your version. }
00039 { }
00040 { }
00041 { The project web site is located on: }
00042 { http:
00043 { http:
00044 { svn:
00045 { }
00046 { http:
00047 { http:
00048 { }
00049 { }
00050 { }
00051 { Zeos Development Group. }
00052 {********************************************************@}
00053
00054 unit ZDataset;
00055
00056 interface
00057
00058 {$I ZComponent.inc}
00059
00060 uses ZAbstractRODataset, ZAbstractDataset, ZAbstractTable {$IFDEF FPC}, DB {$ENDIF};
00061
00062 type
00063
00064 {** Implements an universal SQL query for read/only data access. }
00065 TZReadOnlyQuery = class (TZAbstractRODataSet)
00066 published
00067 property Active;
00068 {$IFDEF VER130BELOW}
00069 property IsUniDirectional;
00070 {$ENDIF}
00071 property SQL;
00072 property ParamCheck;
00073 property Params;
00074 property FetchRow;
00075 property Properties;
00076 property DataSource;
00077 property MasterFields;
00078 property MasterSource;
00079 property LinkedFields; {renamed by bangfauzan}
00080 property IndexFieldNames; {bangfauzan addition}
00081 property Options;
00082 end;
00083
00084 {** Implements an universal SQL query for read/write data access. }
00085 TZQuery = class (TZAbstractDataSet)
00086 published
00087 property Active;
00088 property ReadOnly default False;
00089 property SQL;
00090 property ParamCheck;
00091 property Params;
00092 property FetchRow;
00093 property ShowRecordTypes;
00094 property Properties;
00095 property DataSource;
00096 property MasterFields;
00097 property MasterSource;
00098 property LinkedFields; {renamed by bangfauzan}
00099 property IndexFieldNames; {bangfauzan addition}
00100 property UpdateMode;
00101 property WhereMode;
00102 property Options;
00103 property Sequence;
00104 property SequenceField;
00105 end;
00106
00107 {** Implements an universal SQL query for single table access. }
00108 TZTable = class (TZAbstractTable)
00109 public
00110 property Exists;
00111 published
00112 property Active;
00113 property ReadOnly default False;
00114 property TableName;
00115 property ShowRecordTypes;
00116 property Properties;
00117 property FetchRow;
00118 property MasterFields;
00119 property MasterSource;
00120 property LinkedFields; {renamed by bangfauzan}
00121 property IndexFieldNames; {bangfauzan addition}
00122 property UpdateMode;
00123 property WhereMode;
00124 property Options;
00125 property Sequence;
00126 property SequenceField;
00127 end;
00128
00129 implementation
00130
00131 end.
00132
00133