com.quamto.jira.data.time.dao.TeamMembersDAO Maven / Gradle / Ivy
The newest version!
package com.quamto.jira.data.time.dao;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.quamto.core.QException;
import com.quamto.core.QException.ExceptionType;
import com.quamto.db.DbConnection;
import com.quamto.db.SQLParameter.SQLDataType;
import com.quamto.entity.BaseEntity;
import com.quamto.entity.BaseEntityDAO;
import com.quamto.jira.data.time.entity.TeamMembersEntity;
public class TeamMembersDAO extends BaseEntityDAO {
public TeamMembersDAO(DbConnection dbConnection){
super(dbConnection, "qji_team_members", "tme_id", TeamMembersDAO.class);
}
/**
* Get an instance of the entity with data loaded according to Id provided
*/
@Override
public TeamMembersEntity get(Long id) throws QException {
TeamMembersEntity entity = null;
try {
entity = (TeamMembersEntity)getEntityLoaded(id);
} catch (Exception e) {
throw new QException(e, ExceptionType.LoadData_err, subClassName + "-get");
}
return entity;
}
/**
* Gets list of members related to a team
* @param idTeam Team identifier to consult its members
* @return List of Team Members with its Roles
*/
public List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy