Class DefaultColumn

java.lang.Object
org.ametys.odf.ose.db.column.DefaultColumn
All Implemented Interfaces:
Column
Direct Known Subclasses:
ForeignKeyColumn

public class DefaultColumn extends Object implements Column
The definition of a colum with a name, a SQL type and if it's nullable. Also, we can define a view column name for the associated SRC_* view.
  • Field Details

  • Constructor Details

    • DefaultColumn

      public DefaultColumn(String name, String type, boolean isNullable, String viewName)
      Constructor.
      Parameters:
      name - The name of the column
      type - The SQL type of the column
      isNullable - true if it's nullable
      viewName - The name of the column in the associated SRC_* view
    • DefaultColumn

      public DefaultColumn(String name, String type, boolean isNullable)
      Constructor
      Parameters:
      name - The name of the column (it will also be used for the associated SRC_* view)
      type - The SQL type of the column
      isNullable - true if it's nullable
  • Method Details