sqfentity_gen library

**************************** LICENSE ***************************** Copyright (C) 2019, HUSEYIN TOKPUNAR http://huseyintokpinar.com/ Download & Update Latest Version: https://github.com/hhtokpinar/sqfEntity Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. **********************************************************************/

Classes

AddedBlocks
BoolCommitResult
BoolResult
ConjunctionBase
Container of Conjunction Keywords & toList/Single methods below
Controllers
ConvertedModel
toModelBase() function uses only
CrudOperationsBase
Container some CRUD operations below
DbParameter
FilterBase
Container of Filter Keywords below
FluentBase
Log
Log object for LogFunction
MyStringBuffer
QueryParams
SqfEntityBuilder
**************************** LICENSE ***************************** Copyright (C) 2019, HUSEYIN TOKPUNAR http://huseyintokpinar.com/ Download & Update Latest Version: https://github.com/hhtokpinar/sqfEntity Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. **********************************************************************/
SqfEntityControllerBuilder
SqfEntityConverter
SqfEntityField
SqfEntityFieldBase
SqfEntityFieldBuilder
SqfEntityFieldPrivateClassBase
SqfEntityFieldRelationship
SqfEntityFieldRelationshipBase
SqfEntityFieldType
SqfEntityFieldVirtual
This class is required for virtual field definitions using in a table definition Which could generate the field in the table class, but not create a row in the database table. Simple virtual field definition must be below:
SqfEntityFieldVirtualBase
SqfEntityFormConverter
SqfEntityFormCreator
SqfEntityModel
SqfEntityModelBase
SqfEntityModelBuilder
SqfEntityModelConverter
To get the generated class from the clipboard instead of running build command
SqfEntityObjectBuilder
SqfEntityObjectField
SqfEntityObjectFilterBuilder
SqfEntityObjectManagerBuilder
SqfEntitySequence
SqfEntitySequenceBase
SqfEntitySequenceBuilder
SqfEntityTable
SqfEntityTableBase
SqfEntityTables
SqlSyntax
TableBase
Collected some string functions below
TableCollection
sqfentity generator uses this class while recognition table and relatinships between the tables
TableCollectionBase
TableField

Enums

Collate
At the time of comparison of two strings, in SQLite, it uses a collating sequence or collating function to understand which string is greater or whether the two strings are equal. SQLite has three built-in collating functions BINARY: Compares string data using memcmp(), regardless of text encoding.
DbType
DeleteRule
A foreign key with delete rules
ObjectType
If the class belong to a view, set this property as a view
PrimaryKeyType
SQLite Primary key types:
RelationType
Relation Types:

Constants

commentPreload → const String
Add preload comment
dartType → const List<String>
List
sqLiteType → const List<String>

Properties

forbiddenNames List<String>
getter/setter pair

Functions

collateTypes() Map<String, dynamic>
convertType(dynamic T) → dynamic
dbTypes() Map<String, dynamic>
deleteRuleTypes() Map<String, dynamic>
getBoolValue(DartObject obj, String name) bool
Catch bool property value from dartObject
getDefaultValue(SqfEntityFieldType newField) String
getDynamicValue(DartObject obj, String name) → dynamic
get Dynamic Value from obj and convert it to specific type
getFieldProperties(SqfEntityFieldType field, DartObject obj) SqfEntityFieldType
get field properties from dartObject
getformListSubTitleField(SqfEntityTableBase table) String
getformListTitleField(SqfEntityTableBase table) String
getFuncName(TableCollectionBase tableCollection, bool ifExist, SqfEntityTableBase _table) String
getIntValue(DartObject obj, String name) int?
Catch integer property value from dartObject
getListValue(DartObject obj, String name) List<DartObject>?
Catch list property value from dartObject
getStringValue(DartObject obj, String name) String?
Catch string property value from dartObject
getTypeValue(DartObject obj, String name) → dynamic
getUpdateValue(SqfEntityFieldType field, DeleteRule rule) String
getValueWithQuotes(dynamic val) String
ifExist(DartObject obj, String name) bool
Check if the propery exist from dartObject
ifExistTableProperty(DartObject obj, String name) bool
Check if the table propery exist from dartObject
objectTypes() Map<String, dynamic>
parseDbType(String val) DbType
primaryKeyTypes() Map<String, dynamic>
relationTypes() Map<String, dynamic>
tocamelCase(String? fieldName) String
Converts field name to camelCase format
toCamelCase(String? fieldName) String
Converts field name to CamelCase format
toField(DartObject obj, String dbModelName, {List<SqfEntityFieldType>? defaultColumns}) SqfEntityFieldType
convert dartObject to SqfEntityFieldType
toFields(List<DartObject>? objFields, String dbModelName, String tableName, {List<SqfEntityFieldType>? defaultColumns}) List<SqfEntityFieldType>?
convert dartObject to List
toListString(List<DartObject>? objList) List<String>?
toModelName(String? modelName, String definedName) String
Set model name by defined if the model name set null
toPluralLowerName(String s) String
Convert field name to lowercase plural format
toPluralName(String s) String
Convert singular field name to plural format
toSequence(DartObject obj) SqfEntitySequenceBase
convert dartObject to SqfEntitySequenceBase
toSingularLowerName(String s) String
Convert field name to lowercase singular format
toSingularName(String s) String
Convert field name to singular format
toSqfEntityTable(DartObject obj, String dbModelName, {List<SqfEntityFieldType>? defaultColumns}) SqfEntityTableBase?
convert dartObject to SqfEntityTableBase
toSqliteAddColumnString(SqfEntityFieldType field) String

Typedefs

LogFunction = dynamic Function(Log)
Log events on failure of insert/update operation Example:
PreSaveAction = Future<TableBase> Function(String tableName, TableBase)