Class AttributesTableMetadata


  • public class AttributesTableMetadata
    extends UserTableMetadata<AttributesColumn>
    Attributes Table Metadata for defining table creation information
    Since:
    4.0.0
    Author:
    osbornb
    • Field Detail

      • DEFAULT_DATA_TYPE

        public static final String DEFAULT_DATA_TYPE
        Default data type
      • constraints

        protected Constraints constraints
        Constraints
    • Constructor Detail

      • AttributesTableMetadata

        public AttributesTableMetadata()
        Constructor
      • AttributesTableMetadata

        public AttributesTableMetadata​(String tableName,
                                       String idColumnName,
                                       List<AttributesColumn> additionalColumns,
                                       Constraints constraints)
        Constructor
        Parameters:
        tableName - table name
        idColumnName - id column name
        additionalColumns - additional columns
        constraints - constraints
        Since:
        5.0.0
      • AttributesTableMetadata

        public AttributesTableMetadata​(String dataType,
                                       String tableName,
                                       String idColumnName,
                                       List<AttributesColumn> additionalColumns,
                                       Constraints constraints)
        Constructor
        Parameters:
        dataType - data type
        tableName - table name
        idColumnName - id column name
        additionalColumns - additional columns
        constraints - constraints
        Since:
        5.0.0
      • AttributesTableMetadata

        public AttributesTableMetadata​(String tableName,
                                       String idColumnName,
                                       boolean autoincrement,
                                       List<AttributesColumn> additionalColumns,
                                       Constraints constraints)
        Constructor
        Parameters:
        tableName - table name
        idColumnName - id column name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        constraints - constraints
        Since:
        5.0.0
      • AttributesTableMetadata

        public AttributesTableMetadata​(String dataType,
                                       String tableName,
                                       String idColumnName,
                                       boolean autoincrement,
                                       List<AttributesColumn> additionalColumns,
                                       Constraints constraints)
        Constructor
        Parameters:
        dataType - data type
        tableName - table name
        idColumnName - id column name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        constraints - constraints
        Since:
        5.0.0
      • AttributesTableMetadata

        public AttributesTableMetadata​(String tableName,
                                       List<AttributesColumn> columns,
                                       Constraints constraints)
        Constructor
        Parameters:
        tableName - table name
        columns - columns
        constraints - constraints
        Since:
        5.0.0
      • AttributesTableMetadata

        public AttributesTableMetadata​(String dataType,
                                       String tableName,
                                       List<AttributesColumn> columns,
                                       Constraints constraints,
                                       boolean extra)
        Constructor
        Parameters:
        dataType - data type
        tableName - table name
        columns - columns
        constraints - constraints
        extra - unused extra parameter for method overloading
        Since:
        5.0.0
    • Method Detail

      • create

        public static AttributesTableMetadata create​(boolean autoincrement)
        Create metadata
        Parameters:
        autoincrement - autoincrement ids
        Returns:
        metadata
      • create

        public static AttributesTableMetadata create​(String tableName,
                                                     boolean autoincrement)
        Constructor
        Parameters:
        tableName - table name
        autoincrement - autoincrement ids
        Returns:
        metadata
      • create

        public static AttributesTableMetadata create​(String tableName,
                                                     boolean autoincrement,
                                                     List<AttributesColumn> additionalColumns)
        Constructor
        Parameters:
        tableName - table name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        Returns:
        metadata
      • create

        public static AttributesTableMetadata create​(String tableName,
                                                     boolean autoincrement,
                                                     List<AttributesColumn> additionalColumns,
                                                     Constraints constraints)
        Constructor
        Parameters:
        tableName - table name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        constraints - constraints
        Returns:
        metadata
        Since:
        5.0.0
      • create

        public static AttributesTableMetadata create​(String tableName,
                                                     String idColumnName,
                                                     List<AttributesColumn> additionalColumns)
        Constructor
        Parameters:
        tableName - table name
        idColumnName - id column name
        additionalColumns - additional columns
        Returns:
        metadata
      • create

        public static AttributesTableMetadata create​(String tableName,
                                                     String idColumnName,
                                                     boolean autoincrement,
                                                     List<AttributesColumn> additionalColumns)
        Constructor
        Parameters:
        tableName - table name
        idColumnName - id column name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        Returns:
        metadata
      • create

        public static AttributesTableMetadata create​(String tableName,
                                                     String idColumnName,
                                                     List<AttributesColumn> additionalColumns,
                                                     Constraints constraints)
        Constructor
        Parameters:
        tableName - table name
        idColumnName - id column name
        additionalColumns - additional columns
        constraints - constraints
        Returns:
        metadata
        Since:
        5.0.0
      • create

        public static AttributesTableMetadata create​(String tableName,
                                                     String idColumnName,
                                                     boolean autoincrement,
                                                     List<AttributesColumn> additionalColumns,
                                                     Constraints constraints)
        Constructor
        Parameters:
        tableName - table name
        idColumnName - id column name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        constraints - constraints
        Returns:
        metadata
        Since:
        5.0.0
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        Returns:
        metadata
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          boolean autoincrement)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        autoincrement - autoincrement ids
        Returns:
        metadata
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          List<AttributesColumn> additionalColumns)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        additionalColumns - additional columns
        Returns:
        metadata
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          boolean autoincrement,
                                                          List<AttributesColumn> additionalColumns)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        Returns:
        metadata
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          List<AttributesColumn> additionalColumns,
                                                          Constraints constraints)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        additionalColumns - additional columns
        constraints - constraints
        Returns:
        metadata
        Since:
        5.0.0
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          boolean autoincrement,
                                                          List<AttributesColumn> additionalColumns,
                                                          Constraints constraints)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        constraints - constraints
        Returns:
        metadata
        Since:
        5.0.0
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          String idColumnName,
                                                          List<AttributesColumn> additionalColumns)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        idColumnName - id column name
        additionalColumns - additional columns
        Returns:
        metadata
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          String idColumnName,
                                                          boolean autoincrement,
                                                          List<AttributesColumn> additionalColumns)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        idColumnName - id column name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        Returns:
        metadata
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          String idColumnName,
                                                          List<AttributesColumn> additionalColumns,
                                                          Constraints constraints)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        idColumnName - id column name
        additionalColumns - additional columns
        constraints - constraints
        Returns:
        metadata
        Since:
        5.0.0
      • createTyped

        public static AttributesTableMetadata createTyped​(String dataType,
                                                          String tableName,
                                                          String idColumnName,
                                                          boolean autoincrement,
                                                          List<AttributesColumn> additionalColumns,
                                                          Constraints constraints)
        Create metadata
        Parameters:
        dataType - data type
        tableName - table name
        idColumnName - id column name
        autoincrement - autoincrement ids
        additionalColumns - additional columns
        constraints - constraints
        Returns:
        metadata
        Since:
        5.0.0
      • getConstraints

        public Constraints getConstraints()
        Get the constraints
        Returns:
        constraints
        Since:
        5.0.0
      • setConstraints

        public void setConstraints​(Constraints constraints)
        Set the constraints
        Parameters:
        constraints - constraints
        Since:
        5.0.0