Package sk.iway.iwcm.calendar
Class EventTypeDB
java.lang.Object
sk.iway.iwcm.calendar.EventTypeDB
praca s tabulkou calendar_types
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic int
deleteType
(int typeId, javax.servlet.http.HttpServletRequest request) vymazem typ (!iba ak ho nepouziva nijaky event (tabulka calendar)!) typ nesmie byt zakladnym typom (type_id <= 5)static int
vrati type_id posledneho zaznamustatic EventTypeDetails
getTypeById
(int typeId) vrati typ udalosti na zaklade typeIdstatic Map<Integer,
EventTypeDetails> getTypeBySchvalovatelId
(int userId) vrati vsetky typy ktore ma schvalovat urcity userIdstatic String
getTypeName
(int typeId, javax.servlet.http.HttpServletRequest request) static List<EventTypeDetails>
getTypes()
static List<EventTypeDetails>
getTypes
(javax.servlet.http.HttpServletRequest request) static int
updateType
(int typeId, String name, javax.servlet.http.HttpServletRequest request) static int
updateType
(EventTypeDetails eventType) add/update noveho typu
-
Field Details
-
DB_NAME
meno tabulky nad ktorou pracujem- See Also:
-
-
Method Details
-
deleteType
public static int deleteType(int typeId, javax.servlet.http.HttpServletRequest request) vymazem typ (!iba ak ho nepouziva nijaky event (tabulka calendar)!) typ nesmie byt zakladnym typom (type_id <= 5)- Parameters:
typeId
- Description of the Parameterrequest
- Description of the Parameter- Returns:
- vratim pocet zmazanych zaznamov, (ak je to rozdne od 1 -> nastala chyba)
-
updateType
public static int updateType(int typeId, String name, javax.servlet.http.HttpServletRequest request) -
updateType
add/update noveho typu- Parameters:
eventType
-- Returns:
- 0 ... OK, inak chyba
-
getTypes
-
getTypes
-
getTypeName
-
getTypeById
vrati typ udalosti na zaklade typeId- Parameters:
typeId
-- Returns:
-
getTypeBySchvalovatelId
vrati vsetky typy ktore ma schvalovat urcity userId- Parameters:
userId
-- Returns:
-
getLastTypeId
public static int getLastTypeId()vrati type_id posledneho zaznamu- Returns:
-