Class ElementPedagogiqueHelper
java.lang.Object
org.ametys.odf.ose.export.impl.odf.db.ElementPedagogiqueHelper
Helper to build queries to manage the ELEMENT_PEDAGOGIQUE table.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterizableQuery
Query to delete all lines from the table.static List<ParameterizableQuery>
Queries to create the table and associated view.static List<ParameterizableQuery>
insertInto
(String code, String label, Long oseCatalog, String orgUnit, String stepHolder, String periodType) Queries to insert a line in the table and in NOEUD and SCENARIO_NOEUD.
-
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 List<ParameterizableQuery> insertInto(String code, String label, Long oseCatalog, String orgUnit, String stepHolder, String periodType) Queries to insert a line in the table and in NOEUD and SCENARIO_NOEUD.- Parameters:
code
- The course codelabel
- The labeloseCatalog
- The OSE catalogorgUnit
- The orgunitstepHolder
- The step holderperiodType
- The type of period- Returns:
- The list of queries to insert values in the tables
-