Class EffectifsHelper
- java.lang.Object
-
- org.ametys.odf.ose.export.impl.odf.db.EffectifsHelper
-
public final class EffectifsHelper extends Object
Helper to build queries to manage the EFFECTIFS table.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParameterizableQuerydeleteFrom()Query to delete all lines from the table.static List<ParameterizableQuery>initialize()Queries to create the table and associated view.static ParameterizableQueryinsertInto(String coursePartCode, Long numberOfStudents, Long oseCatalog, String courseLink)Query to insert a line in the table.
-
-
-
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 coursePartCode, Long numberOfStudents, Long oseCatalog, String courseLink)
Query to insert a line in the table.- Parameters:
coursePartCode- The course part codenumberOfStudents- The number of studentsoseCatalog- The OSE catalogcourseLink- The course link- Returns:
- The query to insert values in the table
-
-