Class GeneratorColumn

java.lang.Object
org.fastnate.generator.context.NamedObject
org.fastnate.generator.context.GeneratorColumn

public class GeneratorColumn extends NamedObject
Contains the metadata for a column from a GeneratorTable.
Author:
Tobias Liefke
  • Constructor Details

    • GeneratorColumn

      public GeneratorColumn(GeneratorTable table, int index, String name, String qualifiedName, boolean autoGenerated)
      Creates a new GeneratorColumn instance.
      Parameters:
      table - The table of this column.
      index - The index of this column in the list of all columns of the associated table.
      name - The name of this column, as given by the metamodel.
      qualifiedName - The name of this column, as used by the current dialect.
      autoGenerated - Indicates that the values of this column are not part of an insert statement, because they are generated by the database.
  • Method Details

    • getQualifiedName

      public String getQualifiedName()
      The name of this column, as used by the current dialect.
      Specified by:
      getQualifiedName in class NamedObject
      Returns:
      the name of the object, quoted according to the dialect
    • isAutoGenerated

      public boolean isAutoGenerated()
      Indicates that the values of this column are not part of an insert statement, because they are generated by the database.
    • getTable

      public GeneratorTable getTable()
      The table of this column.
    • getIndex

      public int getIndex()
      The index of this column in the list of all columns of the associated table.
    • getName

      public String getName()
      The name of this column, as given by the metamodel.
      Specified by:
      getName in class NamedObject
      Returns:
      the name of the object, possibly quoted with '"' or '`'