|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PaattiResearchDBService
The research interface for the database.
![]() |
![]() |
![]() |
![]() |
| Method Summary | |
|---|---|
boolean |
addScheduleToGroup(Object groupID,
Object scheduleID)
Adds the schedule to the group. |
boolean |
addUserToGroup(Object groupId,
Object userId)
Adds the user to the group. |
Object |
createGroup(String name,
String description,
Object role,
Object research,
int editor,
Object groupID)
Saves the group's information to the database. |
Object |
createResearch(String name,
String description,
Object researchID)
Saves the research's information to the database. |
Object |
createSchedule(String description,
Date zeroTime,
Object scheduleID,
com.vaadin.data.util.IndexedContainer scheduledEvents)
Creates a new schedule. |
Object |
createUser(Object userId,
String userName,
String firstName,
String lastName,
String userPassword,
String userDescription)
Saves user's information to the database. |
Object |
getCellValueFromTable(String tableName,
String columnName,
String idColumn,
Object rowId)
Returns the value of the given column. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getChoiceContainer(Object eventId)
Returns all the choices that belong to the event with the given id. |
ChoiceContainer |
getChoiceContainerWithListener(Object eventId)
Returns the ChoiceContainer containing all the choices from the given event. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getEventsInSchedule(Object scheduleId)
Returns all the events that belong to the schedule with the given id. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getGroupResearch(Object groupId)
Returns all the researches that belong to the group with the given id. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getGroupRole(Object groupId)
Returns the role of the given group. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getGroupSchedules(Object groupId)
Returns all the schedules that belong to the group with the given id. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getGroupUsers(Object groupId)
Returns all the users that belong to the group with the given id. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getResearchGroups(Object researchId)
Returns all the groups that belong to the research with the given id. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getSQLContainerFromDBTable(String tableName,
String nameOfIdColumn,
boolean noDeletedRows)
Returns the SQLContainer for the given database table. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getSQLContainerFromDBTableFiltered(String tableName,
String nameOfIdColumn,
boolean noDeletedRows,
com.vaadin.data.Container.Filter filter)
Returns the SQLContainer for the given database table. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getTaskContainer(Object eventId)
Returns all the tasks that belong to the event with the given id. |
TaskContainer |
getTaskContainerWithListener(Object eventId)
Returns the TaskContainer containing all the tasks from the given event. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getUserEventData(Object userId)
Returns all the event data that belongs to the user with the given id. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getUserGroups(Object userId)
Returns all the groups that belong to the user with the given id. |
com.vaadin.data.util.sqlcontainer.SQLContainer |
getUserGroupsdRolesAndResearches(Integer userID)
Returns the roles and researches of the user's groups. |
boolean |
removeRowFromTable(Object itemID,
String tableName,
String idColumnName)
Removes the row from the table. |
boolean |
removeUserFromGroup(Object groupId,
Object userId)
Removes the user from the group. |
| Method Detail |
|---|
com.vaadin.data.util.sqlcontainer.SQLContainer getSQLContainerFromDBTable(String tableName,
String nameOfIdColumn,
boolean noDeletedRows)
tableName - the name of the table.nameOfIdColumn - the name of the id column.noDeletedRows - whether to filter deleted rows or not.
com.vaadin.data.util.sqlcontainer.SQLContainer getSQLContainerFromDBTableFiltered(String tableName,
String nameOfIdColumn,
boolean noDeletedRows,
com.vaadin.data.Container.Filter filter)
tableName - the name of the table.nameOfIdColumn - the name of the id column.noDeletedRows - whether to include "DELETED" rows or not.filter - the filter to be used.
com.vaadin.data.util.sqlcontainer.SQLContainer getGroupUsers(Object groupId)
groupId - the group's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getGroupSchedules(Object groupId)
groupId - the group's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getGroupResearch(Object groupId)
groupId - the group's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getResearchGroups(Object researchId)
researchId - the research's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getUserGroups(Object userId)
userId - the user's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getUserEventData(Object userId)
userId - the user's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getEventsInSchedule(Object scheduleId)
scheduleId - the schedule's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getChoiceContainer(Object eventId)
eventId - the event's id.
com.vaadin.data.util.sqlcontainer.SQLContainer getTaskContainer(Object eventId)
eventId - the event's id.
Object createUser(Object userId,
String userName,
String firstName,
String lastName,
String userPassword,
String userDescription)
userId - the id of the user.userName - the user name of the user.firstName - the first name of the user.lastName - the last name of the user.userPassword - the password of the user.userDescription - the description of the user.
boolean removeRowFromTable(Object itemID,
String tableName,
String idColumnName)
itemID - the id of the row to be removed.tableName - the name of the table containing the rowidColumnName - the id column of the table
Object createResearch(String name,
String description,
Object researchID)
name - the name of the research.description - the description of the research.researchID - the id of the research.
Object createGroup(String name,
String description,
Object role,
Object research,
int editor,
Object groupID)
name - the name of ther group.description - the description of the group.role - the role of the group.research - the id of the research this group belong to.editor - the id of the editor.groupID - the id of the group.
Object getCellValueFromTable(String tableName,
String columnName,
String idColumn,
Object rowId)
tableName - the name of the table the column belongs to.columnName - the name of the column.idColumn - the ID column of the table.rowId - the ID of the row where the value will be taken from.
boolean addUserToGroup(Object groupId,
Object userId)
groupId - the id of the groupuserId - the id of the user
boolean removeUserFromGroup(Object groupId,
Object userId)
groupId - the ID of the user's group.userId - the ID of the user.
Object createSchedule(String description,
Date zeroTime,
Object scheduleID,
com.vaadin.data.util.IndexedContainer scheduledEvents)
description - the description of the schedule.zeroTime - the start date of the schedule.scheduleID - the id of the schedule.scheduledEvents - the list of events that belong to the schedule.
boolean addScheduleToGroup(Object groupID,
Object scheduleID)
groupID - the id of the group.scheduleID - the id of the schedule.
TaskContainer getTaskContainerWithListener(Object eventId)
eventId - the ID of the event.
ChoiceContainer getChoiceContainerWithListener(Object eventId)
eventId - the ID of the event.
com.vaadin.data.util.sqlcontainer.SQLContainer getUserGroupsdRolesAndResearches(Integer userID)
userID - the ID of the user.
com.vaadin.data.util.sqlcontainer.SQLContainer getGroupRole(Object groupId)
groupId - the id of the group.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||