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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHostFor
(BareJID jid) queryDBFor
(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
- Specified by:
getHostFor
in interfaceSeeOtherHostDB.SeeOtherHostRepository<DataRepository>
-
queryDBFor
public BareJID queryDBFor(BareJID user) throws UserNotFoundException, SQLException, TigaseStringprepException - Specified by:
queryDBFor
in interfaceSeeOtherHostDB.SeeOtherHostRepository<DataRepository>
- Throws:
UserNotFoundException
SQLException
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
-