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 TypeMethodDescriptiongetHostFor(BareJID jid) queryDBFor(BareJID user) voidsetDataSource(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:
getHostForin interfaceSeeOtherHostDB.SeeOtherHostRepository<DataRepository>
-
queryDBFor
public BareJID queryDBFor(BareJID user) throws UserNotFoundException, SQLException, TigaseStringprepException - Specified by:
queryDBForin interfaceSeeOtherHostDB.SeeOtherHostRepository<DataRepository>- Throws:
UserNotFoundExceptionSQLExceptionTigaseStringprepException
-
setDataSource
Description copied from interface:DataSourceAwareMethod called to provide class with instance of a data source.- Specified by:
setDataSourcein interfaceDataSourceAware<DataRepository>- Throws:
RepositoryException
-