Package tigase.muc.repository
Class JDBCMucDAO
- java.lang.Object
-
- tigase.muc.repository.AbstractMucDAO<tigase.db.DataRepository,Long>
-
- tigase.muc.repository.JDBCMucDAO
-
- All Implemented Interfaces:
tigase.db.DataSourceAware<tigase.db.DataRepository>,tigase.db.util.RepositoryVersionAware,IMucDAO<tigase.db.DataRepository,Long>
public class JDBCMucDAO extends AbstractMucDAO<tigase.db.DataRepository,Long> implements tigase.db.util.RepositoryVersionAware
- Author:
- bmalkow
-
-
Field Summary
Fields Modifier and Type Field Description protected tigase.db.DataRepositorydata_repo
-
Constructor Summary
Constructors Constructor Description JDBCMucDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongcreateRoom(RoomWithId<Long> room)voiddestroyRoom(tigase.xmpp.jid.BareJID roomJID)Map<tigase.xmpp.jid.BareJID,Affiliation>getAffiliations(RoomWithId<Long> room)RoomWithId<Long>getRoom(tigase.xmpp.jid.BareJID roomJID)List<tigase.xmpp.jid.BareJID>getRoomsJIDList()protected voidinitPreparedStatements(tigase.db.DataRepository repo)voidsetAffiliation(RoomWithId<Long> room, tigase.xmpp.jid.BareJID jid, Affiliation affiliation)voidsetDataSource(tigase.db.DataRepository dataSource)voidsetSubject(RoomWithId<Long> room, String subject, String creatorNickname, Date changeDate)voidupdateRoomConfig(RoomConfig roomConfig)-
Methods inherited from class tigase.muc.repository.AbstractMucDAO
parseConfigElement
-
-
-
-
Method Detail
-
createRoom
public Long createRoom(RoomWithId<Long> room) throws tigase.component.exceptions.RepositoryException
- Specified by:
createRoomin interfaceIMucDAO<tigase.db.DataRepository,Long>- Throws:
tigase.component.exceptions.RepositoryException
-
destroyRoom
public void destroyRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException- Specified by:
destroyRoomin interfaceIMucDAO<tigase.db.DataRepository,Long>- Throws:
tigase.component.exceptions.RepositoryException
-
getAffiliations
public Map<tigase.xmpp.jid.BareJID,Affiliation> getAffiliations(RoomWithId<Long> room) throws tigase.component.exceptions.RepositoryException
- Specified by:
getAffiliationsin interfaceIMucDAO<tigase.db.DataRepository,Long>- Throws:
tigase.component.exceptions.RepositoryException
-
getRoom
public RoomWithId<Long> getRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
-
getRoomsJIDList
public List<tigase.xmpp.jid.BareJID> getRoomsJIDList() throws tigase.component.exceptions.RepositoryException
- Specified by:
getRoomsJIDListin interfaceIMucDAO<tigase.db.DataRepository,Long>- Throws:
tigase.component.exceptions.RepositoryException
-
setAffiliation
public void setAffiliation(RoomWithId<Long> room, tigase.xmpp.jid.BareJID jid, Affiliation affiliation) throws tigase.component.exceptions.RepositoryException
- Specified by:
setAffiliationin interfaceIMucDAO<tigase.db.DataRepository,Long>- Throws:
tigase.component.exceptions.RepositoryException
-
setSubject
public void setSubject(RoomWithId<Long> room, String subject, String creatorNickname, Date changeDate) throws tigase.component.exceptions.RepositoryException
- Specified by:
setSubjectin interfaceIMucDAO<tigase.db.DataRepository,Long>- Throws:
tigase.component.exceptions.RepositoryException
-
updateRoomConfig
public void updateRoomConfig(RoomConfig roomConfig) throws tigase.component.exceptions.RepositoryException
- Specified by:
updateRoomConfigin interfaceIMucDAO<tigase.db.DataRepository,Long>- Throws:
tigase.component.exceptions.RepositoryException
-
setDataSource
public void setDataSource(tigase.db.DataRepository dataSource)
- Specified by:
setDataSourcein interfacetigase.db.DataSourceAware<tigase.db.DataRepository>
-
initPreparedStatements
protected void initPreparedStatements(tigase.db.DataRepository repo) throws SQLException- Throws:
SQLException
-
-