Package org.apache.torque.templates.transformer.om.mapInit

# Klasse DatabaseMapInitTransformer

java.lang.Object
org.apache.torque.generator.source.transform.AttributeTransformer
org.apache.torque.templates.transformer.om.mapInit.DatabaseMapInitTransformer

Alle implementierten Schnittstellen:
  `SourceTransformer`

public class DatabaseMapInitTransformer extends AttributeTransformer
A transformer providing extra attributes for the generation of the mapInit classes. It collects all tables for a database with the same name and also sets attributes needed for java generation.

Version:
  $Id: DatabaseMapInitTransformer.java 1896195 2021-12-20 17:41:20Z gk $

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `DatabaseMapInitTransformer()`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `static void`
  `setDatabaseMapInitClassNameAttributes(SourceElement sourceElement, String databaseName, ControllerState controllerState)`
  Sets the databaseMapInitClassName and baseDatabaseMapInitClassName attributes on a source element.
  `SourceElement`
  `transform(Object modelRoot, ControllerState controllerState)`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### DatabaseMapInitTransformer

    public DatabaseMapInitTransformer() throws SourceTransformerException
    Constructor.
    Löst aus:
      `SourceTransformerException` - if the attribute map is malformed.

- ## Methodendetails

  - ### transform

    public SourceElement transform(Object modelRoot, ControllerState controllerState) throws SourceTransformerException
    Angegeben von:
      `transform` in Schnittstelle `SourceTransformer`
    Setzt außer Kraft:
      `transform` in Klasse `AttributeTransformer`
    Löst aus:
      `SourceTransformerException`

  - ### setDatabaseMapInitClassNameAttributes

    public static void setDatabaseMapInitClassNameAttributes(SourceElement sourceElement, String databaseName, ControllerState controllerState)
    Sets the databaseMapInitClassName and baseDatabaseMapInitClassName attributes on a source element.
    Parameter:
      `sourceElement` - the element where the attribute should be set, not null.
      `databaseName` - the name of the database element, not null.
      `controllerState` - the controller state, not null.