Package tigase.server.xmppclient
Class SeeOtherHostDB.JDBCSeeOtherHostRepository
java.lang.Object
tigase.server.xmppclient.SeeOtherHostDB.JDBCSeeOtherHostRepository
- All Implemented Interfaces:
DataSourceAware<DataRepository>
,SeeOtherHostDB.SeeOtherHostRepository<DataRepository>
- Enclosing class:
- SeeOtherHostDB
public static class SeeOtherHostDB.JDBCSeeOtherHostRepository
extends Object
implements SeeOtherHostDB.SeeOtherHostRepository<DataRepository>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontigase.xmpp.jid.BareJID
getHostFor
(tigase.xmpp.jid.BareJID jid) tigase.xmpp.jid.BareJID
queryDBFor
(tigase.xmpp.jid.BareJID user) void
setDataSource
(DataRepository data_repo) Method called to provide class with instance of a data source.
-
Field Details
-
DEF_DB_GET_HOST_QUERY
- See Also:
-
-
Constructor Details
-
JDBCSeeOtherHostRepository
public JDBCSeeOtherHostRepository()
-
-
Method Details
-
getHostFor
public tigase.xmpp.jid.BareJID getHostFor(tigase.xmpp.jid.BareJID jid) - Specified by:
getHostFor
in interfaceSeeOtherHostDB.SeeOtherHostRepository<DataRepository>
-
queryDBFor
public tigase.xmpp.jid.BareJID queryDBFor(tigase.xmpp.jid.BareJID user) throws UserNotFoundException, SQLException, tigase.util.stringprep.TigaseStringprepException - Specified by:
queryDBFor
in interfaceSeeOtherHostDB.SeeOtherHostRepository<DataRepository>
- Throws:
UserNotFoundException
SQLException
tigase.util.stringprep.TigaseStringprepException
-
setDataSource
Description copied from interface:DataSourceAware
Method called to provide class with instance of a data source.- Specified by:
setDataSource
in interfaceDataSourceAware<DataRepository>
- Throws:
RepositoryException
-