Class AddForeignKeyConstraint

  • All Implemented Interfaces:
    IDatabaseStatement

    public class AddForeignKeyConstraint
    extends java.lang.Object
    implements IDatabaseStatement
    Add one or more foreign keys to the schema.table
    • Constructor Detail

      • AddForeignKeyConstraint

        public AddForeignKeyConstraint​(java.lang.String schemaName,
                                       java.lang.String tableName,
                                       ForeignKeyConstraint... constraint)
        Public constructor
        Parameters:
        schemaName -
        tableName -
        constraint -
      • AddForeignKeyConstraint

        public AddForeignKeyConstraint​(java.lang.String schemaName,
                                       java.lang.String tableName,
                                       java.lang.String tenantColumnName,
                                       ForeignKeyConstraint... constraint)
        Public constructor
        Parameters:
        schemaName -
        tableName -
        tenantColumnName -
        constraint -
    • Method Detail

      • getSchemaName

        public java.lang.String getSchemaName()
        Returns:
        the schemaName
      • getTableName

        public java.lang.String getTableName()
        Returns:
        the tableName
      • getTenantColumnName

        public java.lang.String getTenantColumnName()
        Returns:
        the tenantColumnName
      • getConstraints

        public java.util.List<ForeignKeyConstraint> getConstraints()
        Returns:
        the constraints