|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.interestCenter.ejb.InterestCenterDAO
public class InterestCenterDAO
Field Summary | |
---|---|
static String |
CREATE_IC_QUERY
createIC sql query constant |
static String |
CREATE_PDC_CONTEXT_QUERY
appendPdcContext sql query constant |
static String |
DATE_FORMAT
Date format pattern constatnt. |
static String |
GET_IC_BY_PK_QUERY
getICByPK sql query constant |
static String |
GET_IC_BY_USERID_QUERY
getICByUserID sql query constant |
static String |
ICENTER_AXES_TABLE_NAME
Interest_Center_Axes table name |
static String |
LOAD_PDC_PK_QUERY
loadPdcContext sql query constant |
static String |
REMOVE_IC_BY_PKS_LIST_QUERY
removeICByPK sql query constant |
static String |
REMOVE_IC_CONTEXT_QUERY
removePdcContext sql query constant |
static String |
UPDATE_IC_QUERY
updateIC sql query constant |
Constructor Summary | |
---|---|
InterestCenterDAO()
|
Method Summary | |
---|---|
static int[] |
appendPdcContext(Connection con,
List<? extends Criteria> pdcContext,
int icId)
Appends a list of SearchCriteria to the InterestCenter by InterestCenterID |
static int |
createIC(Connection con,
InterestCenter interestCenter)
|
static InterestCenter |
getICByPK(Connection con,
int icID)
|
static List<InterestCenter> |
getICByUserID(Connection con,
int userid)
|
static List<Criteria> |
loadPdcContext(Connection con,
int icId)
|
static void |
removeICByPK(Connection con,
int removeID)
|
static void |
removeICByPK(Connection con,
List<Integer> removePKList)
|
static void |
removePdcContext(Connection con,
int icId)
Remove all SearchCriterias for provided interestCenterID |
static void |
updateIC(Connection con,
InterestCenter interestCenter)
perform updates of provided InterestCenter |
static void |
updatePdcContext(Connection con,
List<? extends Criteria> list,
int icId)
Updates SearchCriterias list for interestCenter by InterestCenterID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ICENTER_AXES_TABLE_NAME
public static final String DATE_FORMAT
public static final String GET_IC_BY_USERID_QUERY
public static final String GET_IC_BY_PK_QUERY
public static final String CREATE_IC_QUERY
public static final String UPDATE_IC_QUERY
public static final String REMOVE_IC_BY_PKS_LIST_QUERY
public static final String LOAD_PDC_PK_QUERY
public static final String CREATE_PDC_CONTEXT_QUERY
public static final String REMOVE_IC_CONTEXT_QUERY
Constructor Detail |
---|
public InterestCenterDAO()
Method Detail |
---|
public static List<InterestCenter> getICByUserID(Connection con, int userid) throws SQLException, DAOException
con
- userid
-
InterestCenter
s by user id provided
SQLException
DAOException
public static InterestCenter getICByPK(Connection con, int icID) throws SQLException, DAOException
icID
- InterestCenter
id
SQLException
DAOException
public static int createIC(Connection con, InterestCenter interestCenter) throws SQLException, DAOException
InterestCenter
created
SQLException
DAOException
public static void updateIC(Connection con, InterestCenter interestCenter) throws SQLException, DAOException
SQLException
DAOException
public static void removeICByPK(Connection con, List<Integer> removePKList) throws SQLException, DAOException
removePKList
- id's of InterestCenter
s to be deleted
SQLException
DAOException
public static void removeICByPK(Connection con, int removeID) throws SQLException, DAOException
removeID
- an id of InterestCenter
to be deleted
SQLException
DAOException
public static List<Criteria> loadPdcContext(Connection con, int icId) throws SQLException, DAOException
SQLException
DAOException
public static int[] appendPdcContext(Connection con, List<? extends Criteria> pdcContext, int icId) throws SQLException, DAOException
icId
- InterestCenterID
SQLException
DAOException
public static void updatePdcContext(Connection con, List<? extends Criteria> list, int icId) throws SQLException, DAOException
icId
- InterestCenterID
SQLException
DAOException
public static void removePdcContext(Connection con, int icId) throws SQLException, DAOException
icId
- InterestCenterID
SQLException
DAOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |