Telosys doc
WebsiteTwitterLinkedInNews
  • Telosys documentation
  • Telosys CLI
    • Installation on Linux
    • Installation on Windows
    • CLI configuration
    • CLI commands
    • Getting started
  • Telosys with VSCode
    • Extension installation
    • VSCode settings
    • Telosys terminal in VSCode
    • Telosys editor configuration
  • Telosys with JetBrains IDE
  • Project configuration
  • Project variables
  • Project databases
  • Models and entities
    • Model structure
    • Entity
    • Attribute / Link
    • Annotations
    • Tags
    • Examples
    • Model creation
    • Model installation
    • Models management
  • Bundles of templates
    • Bundle structure
    • Bundle creation
    • Bundles installation
    • Bundles management
    • Velocity language
    • Velocity directives
    • Velocity object types
    • Telosys directives
    • Telosys variables
    • Telosys objects
    • Code snippets
  • Code generation
    • "gen" command
    • "genb" command
  • Target languages
    • C++
    • C#
    • Golang
    • Java
    • JavaScript
    • Kotlin
    • PHP
    • Python
    • Scala
    • TypeScript
  • Target databases (SQL)
    • Predefined rules
    • Specific rules
    • Type size and precision
  • Telosys with Git
    • GitHub usage
    • Install with Git
    • Publish with Git
  • Support the project
  • How to contribute
  • Sponsors
  • IDE and editors
  • Telosys 3 Eclipse plugin
    • Eclipse plugin installation
    • Eclipse customization
    • Telosys 3 database model
Powered by GitBook
On this page
  • Objects by categories
  • Objects reference documentation
  1. Bundles of templates

Telosys objects

PreviousTelosys variablesNextCode snippets

Last updated 1 year ago

Objects by categories

Telosys provides a set of predefined objects usable in the templates :

  • Objects representing the model elements :

    • (current model)

      • (entity defined in the model) [0:N entities in each model]

        • (attribute defined in an entity) [1:N attributes in each entity]

          • (part of foreign key, if attribute is involved in one or more FK)

        • (link defined in an entity) [0:N links in each entity]

          • (attribute involved in link definition) [1:N / link]

        • (foreign key defined in an entity) [0:N FK in each entity]

          • (attribute involved in FK definition) [1:N / fk]

        • (reference to other entity) [0:N references in each entity]

  • Current environment and project :

    • (environment configuration)

    • (project configuration)

  • Generation in progress :

    • (current target file being generated)

    • (bundle in use for current generation)

    • (generator engine)

  • Utility functions and tools :

    • (set of utility functions)

    • (set of constants)

    • (a factory to create objects)

    • (to use files located on the file system)

    • (to load your own utility classes)

    • (current date and time)

    • (literal values generator for attributes)

    • (utility functions for H2 database)

  • Objects dedicated to code generation of certain target languages :

    • Java :

    • C# :

    • PHP :

    • SQL :

    • HTML :

  • Deprecated objects (do not use, just for backward compatibility) :

    • $jdbcFactory (use $factory instead)

    • $today (use $now instead)

Objects reference documentation

The documentation reference for each object is available here :

  • Latest version :

  • Previous version :

$model
$entity
$attribute
$fkPart
$link
$linkAttribute
$fk
$fkAttribute
$reference
$env
$project
$target
$bundle
$generator
$fn
$const
$factory
$file
$loader
$now
$values
$h2
$java
$jpa
$jdbc
$beanValidation
$csharp
$php
$sql
$html
Telosys 4.1.0 - objects reference
Telosys 4.0.0 - objects reference
Telosys 3.3.0 - objects reference