Class ScenarioLienHelper
- java.lang.Object
-
- org.ametys.odf.ose.export.impl.odf.db.ScenarioLienHelper
-
public final class ScenarioLienHelper extends Object
Helper to build queries to manage the SCENARIO_LIEN table.
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__TABLE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description private
ScenarioLienHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParameterizableQuery
deleteFrom()
Query to delete all lines from the table.static List<ParameterizableQuery>
initialize()
Queries to create the table and associated view.static ParameterizableQuery
insertInto(String code, Double weight, Long minChoice, Long maxChoice)
Query to insert a line in the table.
-
-
-
Field Detail
-
__TABLE_NAME
private static final String __TABLE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScenarioLienHelper
private ScenarioLienHelper()
-
-
Method Detail
-
initialize
public static List<ParameterizableQuery> initialize()
Queries to create the table and associated view.- Returns:
- List of queries for table and view creation
-
deleteFrom
public static ParameterizableQuery deleteFrom()
Query to delete all lines from the table.- Returns:
- The query for deletion
-
insertInto
public static ParameterizableQuery insertInto(String code, Double weight, Long minChoice, Long maxChoice)
Query to insert a line in the table.- Parameters:
code
- The codeweight
- The weight (1 in most case, can be 0 for optional lists and min/nbChildren for choice lists)minChoice
- The min choice (only for choice lists), otherwise should be nullmaxChoice
- The max choice (only for choice lists), otherwise should be null- Returns:
- The query to insert values in the table
-
-