Class H2ConstraintExtractor

java.lang.Object
org.evomaster.client.java.sql.internal.constraint.TableConstraintExtractor
org.evomaster.client.java.sql.internal.constraint.H2ConstraintExtractor

public class H2ConstraintExtractor extends TableConstraintExtractor
  • Constructor Details

    • H2ConstraintExtractor

      public H2ConstraintExtractor()
  • Method Details

    • extract

      public List<DbTableConstraint> extract(Connection connectionToH2, DbInfoDto schemaDto) throws SQLException
      Expects the schema explained in http://www.h2database.com/html/systemtables.html#information_schema
      Specified by:
      extract in class TableConstraintExtractor
      Parameters:
      connectionToH2 - a connection to a H2 database
      schemaDto - a DTO schema with retrieved information from the JBDC metadata
      Throws:
      SQLException - if the connection to the H2 database fails