public class JDBCPushRepository extends AbstractPushRepository<tigase.db.DataRepository> implements tigase.db.util.RepositoryVersionAware
tigase.db.util.RepositoryVersionAware.SchemaVersionIPushRepository.ElseHandler| Modifier and Type | Field and Description |
|---|---|
protected tigase.db.DataRepository |
repo |
| Constructor and Description |
|---|
JDBCPushRepository() |
| Modifier and Type | Method and Description |
|---|---|
IPushSettings |
getNodeSettings(tigase.xmpp.jid.BareJID serviceJid,
String node) |
Stream<IPushSettings> |
getNodeSettings(String provider,
String deviceId) |
protected void |
initRepo(tigase.db.DataRepository repo) |
protected IPushSettings.IDevice |
readDevice(ResultSet rs,
int i) |
IPushSettings |
registerDevice(tigase.xmpp.jid.BareJID serviceJid,
tigase.xmpp.jid.BareJID userJid,
String provider,
String deviceId) |
void |
setDataSource(tigase.db.DataRepository dataSource) |
IPushSettings |
unregisterDevice(tigase.xmpp.jid.BareJID serviceJid,
tigase.xmpp.jid.BareJID userJid,
String provider,
String deviceId) |
calculateNode, getNodeSettings, toHexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNodeSettingspublic IPushSettings registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) throws tigase.component.exceptions.RepositoryException
registerDevice in interface IPushRepository<tigase.db.DataRepository>tigase.component.exceptions.RepositoryExceptionpublic IPushSettings unregisterDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) throws tigase.component.exceptions.RepositoryException, tigase.component.exceptions.ComponentException
unregisterDevice in interface IPushRepository<tigase.db.DataRepository>tigase.component.exceptions.RepositoryExceptiontigase.component.exceptions.ComponentExceptionpublic IPushSettings getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, String node) throws tigase.component.exceptions.RepositoryException
getNodeSettings in interface IPushRepository<tigase.db.DataRepository>tigase.component.exceptions.RepositoryExceptionpublic Stream<IPushSettings> getNodeSettings(String provider, String deviceId) throws tigase.component.exceptions.RepositoryException
getNodeSettings in interface IPushRepository<tigase.db.DataRepository>tigase.component.exceptions.RepositoryExceptionpublic void setDataSource(tigase.db.DataRepository dataSource)
setDataSource in interface tigase.db.DataSourceAware<tigase.db.DataRepository>protected IPushSettings.IDevice readDevice(ResultSet rs, int i) throws SQLException
SQLExceptionprotected void initRepo(tigase.db.DataRepository repo)
throws SQLException
SQLExceptionCopyright © 2017–2019 Tigase. All rights reserved.