Class LienHelper

java.lang.Object
org.ametys.odf.ose.export.impl.odf.db.LienHelper

public final class LienHelper extends Object
Helper to build queries to manage the LIEN table.
  • Method Details

    • initialize

      Queries to create the table and associated view.
      Returns:
      List of queries for table and view creation
    • deleteFrom

      Query to delete all lines from the table.
      Returns:
      The query for deletion
    • insertInto

      public static ParameterizableQuery insertInto(String code, String parentCode, String childCode)
      Query to insert a line in the table.
      Parameters:
      code - The code of the link (concatenation of catalog, parent code and child code in most cases)
      parentCode - The code of the superior node
      childCode - The code of the inferior node
      Returns:
      The query to insert values in the table