zg-entity
Last updated
Last updated
zg-entity or zg-e
zg-entity is a predefined object to access to fields and properties of a table in the database. You need to write zg-entity with square brackets if you don't use it with a built-in function. In build-in functions it is used with parantheses.
zg-entity object can be used in zsif, zref and ziref file directly.
Every field and property has a purpose in Zontroy to store spesific data for code generation.
zg-fields is a collection of fields in an entity like columns in a table. You need to iterate zg-fields using zg-for loop to access the properties of each field.
zg-field or zg-f
zg-field or zg-f is each one from a collection of fields in an entity like columns in a table.
zg-pkField" or zg-pk
Returns the field, which is the primary key of any entity in the database.
This is a collection of primary key fields in a table. This property supports multiple primary keys. While iterating list of primary keys you can access the properties of each primary key field.
zg-nonPKFields or zg-npks
It is responsible for fetching fields from within the entity that do not have primary keys.
zg-nonKeyFields or zg-nkfs
It is responsible for fetching fields that do not have primary keys and foreign keys from within the entity.
zg-fkFields or zg-fks
Returns fields with foreign keys in the entity.
zg-nonFKFields or zg-nfks
Returns fields in the entity that do not contain foreign keys.
List of referencing fields of an entity is accesible by zg-referencingFields. It also means that zg-referencingFields is a collection of foreign keys in a table.
zg-referencingFields is an object for the list of referenced fields of an entity by another entity. It also means that zg-referencedFields is a collection of columns in a table referenced by another table in the database.
zg-dataType or zg-dt
Returns the data type of any field in the entity.
zg-targetType or zg-tt
It refers to the equivalent of the datatype of a field in an entity in the database in any programming language.
zg-nullTargetType or zg-ntt
Returns the null target type value in any programming language of the data type of a field in an entity in the database.
zg-primitiveType or zg-pt
Returns the primitive type value in any programming language of the data type of a field in an entity in the database.
zg-default or zg-def
Returns the default value of any field in the entity
zg-required or zg-r
It is used to express that the value of the field in the entity cannot be empty.
zg-maxLength or zg-ml
It is used to get the maximum length of the value of the field in the entity.
zg-NumericPrecision or zg-np
Precision is the number of digits in a number and finds the precision of the number of digits before the decimal point.
zg-NumericScale or zg-ns
Scale is the number of digits to the right of the decimal point in a number and deals with the precision of the number of digits after the decimal point.
zg-DatetimePrecision or zg-dp
Indicates how precisely date and time data is recorded. This means that data containing date and time information can be stored in detail down to subunits such as seconds, milliseconds, microseconds.
zg-referencedEntity or zg-re
"zg-referencedEntity" is a term that usually refers to another entity in a system or data model. In relational databases, this refers to the connection of a particular entity to another entity. So Returns the entity that is a reference to the entity.
zg-referencedEntityName or zg-ren
Returns the entity name that is a reference to the entity.
zg-referencedFieldName or zg-rfn
Returns the field name that is a reference to the field in entity.
zg-generateBlock
Generate block If we only want code generation in one block of the code file, we add generate block to that section.
zg-protectBlock
Protect block ensures that the code is not crushed during code generation if we want a part of the existing code to be protected and not changed.
It means the name of schema in the database.
It means the name of entity in the database.
It means the name of entity given by developer in Zontroy Properties Window.
It means the alternative name of entity given by developer in Zontroy Properties Window.
It means the label of entity given by developer in Zontroy Properties Window.
It means the order of entity given by developer in Zontroy Properties Window. Zontroy sorts entities by value of row order property automatically.
It means the description of entity given by developer in Zontroy Properties Window.
zg-displayFields is a collection of fields enterd by developer in Zontroy Properties Window and it is a group of field to use further.
zg-extra1 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra2 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra3 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra4 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra5 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra6 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra7 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra8 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra9 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.