Package tigase.server.xmppclient
Class SeeOtherHostDualIPSQLRepository
- java.lang.Object
-
- tigase.server.xmppclient.SeeOtherHostDualIPSQLRepository
-
- All Implemented Interfaces:
DataSourceAware<DataRepository>
,SeeOtherHostDualIP.DualIPRepository<DataRepository>
public class SeeOtherHostDualIPSQLRepository extends java.lang.Object implements SeeOtherHostDualIP.DualIPRepository<DataRepository>
- Author:
- Wojtek
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLUSTER_NODES_TABLE
static java.lang.String
DB_GET_ALL_DATA_DB_QUERY_KEY
static java.lang.String
GET_ALL_QUERY_TIMEOUT_QUERY_KEY
-
Fields inherited from interface tigase.server.xmppclient.SeeOtherHostDualIP.DualIPRepository
HOSTNAME_ID, SECONDARY_HOSTNAME_ID
-
-
Constructor Summary
Constructors Constructor Description SeeOtherHostDualIPSQLRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<BareJID,BareJID>
queryAllDB()
void
setDataSource(DataRepository dataSource)
Method called to provide class with instance of a data source.
-
-
-
Field Detail
-
CLUSTER_NODES_TABLE
public static final java.lang.String CLUSTER_NODES_TABLE
- See Also:
- Constant Field Values
-
DB_GET_ALL_DATA_DB_QUERY_KEY
public static final java.lang.String DB_GET_ALL_DATA_DB_QUERY_KEY
- See Also:
- Constant Field Values
-
GET_ALL_QUERY_TIMEOUT_QUERY_KEY
public static final java.lang.String GET_ALL_QUERY_TIMEOUT_QUERY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDataSource
public void setDataSource(DataRepository dataSource)
Description copied from interface:DataSourceAware
Method called to provide class with instance of a data source.- Specified by:
setDataSource
in interfaceDataSourceAware<DataRepository>
-
queryAllDB
public java.util.Map<BareJID,BareJID> queryAllDB() throws java.sql.SQLException
- Specified by:
queryAllDB
in interfaceSeeOtherHostDualIP.DualIPRepository<DataRepository>
- Throws:
java.sql.SQLException
-
-