public class JDBCMucDAO extends AbstractMucDAO<tigase.db.DataRepository,Long>
| Modifier and Type | Field and Description |
|---|---|
protected tigase.db.DataRepository |
data_repo |
| Constructor and Description |
|---|
JDBCMucDAO() |
| Modifier and Type | Method and Description |
|---|---|
Long |
createRoom(RoomWithId<Long> room) |
void |
destroyRoom(tigase.xmpp.BareJID roomJID) |
Map<tigase.xmpp.BareJID,Affiliation> |
getAffiliations(RoomWithId<Long> room) |
RoomWithId<Long> |
getRoom(tigase.xmpp.BareJID roomJID) |
List<tigase.xmpp.BareJID> |
getRoomsJIDList() |
protected void |
initPreparedStatements(tigase.db.DataRepository repo) |
void |
setAffiliation(RoomWithId<Long> room,
tigase.xmpp.BareJID jid,
Affiliation affiliation) |
void |
setDataSource(tigase.db.DataRepository dataSource) |
void |
setSubject(RoomWithId<Long> room,
String subject,
String creatorNickname,
Date changeDate) |
void |
updateRoomConfig(RoomConfig roomConfig) |
parseConfigElementpublic Long createRoom(RoomWithId<Long> room) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void destroyRoom(tigase.xmpp.BareJID roomJID)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic Map<tigase.xmpp.BareJID,Affiliation> getAffiliations(RoomWithId<Long> room) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic RoomWithId<Long> getRoom(tigase.xmpp.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic List<tigase.xmpp.BareJID> getRoomsJIDList() throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setAffiliation(RoomWithId<Long> room, tigase.xmpp.BareJID jid, Affiliation affiliation) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setSubject(RoomWithId<Long> room, String subject, String creatorNickname, Date changeDate) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void updateRoomConfig(RoomConfig roomConfig) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setDataSource(tigase.db.DataRepository dataSource)
protected void initPreparedStatements(tigase.db.DataRepository repo)
throws SQLException
SQLExceptionCopyright © 2007–2017 Tigase. All rights reserved.