public class JDBCWorkgroupQueuesRepository extends Object implements Store, RepositoryVersionAware
Repository.Meta, Repository.SchemaIdRepositoryVersionAware.SchemaVersion| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_QUEUEY_KEY |
protected DataRepository |
dataRepository |
static String |
DELETE_QUEUEY_KEY |
static String |
GET_QUEUES_KEY |
static String |
GET_QUEUEY_KEY |
protected Logger |
log |
static String |
UPDATE_QUEUEY_KEY |
| Constructor and Description |
|---|
JDBCWorkgroupQueuesRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWorkgroupQueue(WorkgroupQueueEntity queue)
Add queue entity to storage.
|
void |
deleteWorkgroupQueue(BareJID queueJid) |
WorkgroupQueueEntity |
getWorkgroupQueue(BareJID queueJID)
Loads queue entity from storage.
|
Collection<WorkgroupQueueEntity> |
getWorkgroupQueues()
Returns collection of known queues.
|
protected void |
initPreparedStatements(DataRepository dataRepository) |
void |
initRepository(String resource_uri,
Map<String,String> params)
Method is deprecated and should not be user any more.
|
void |
setDataSource(DataRepository dataRepository)
Method called to provide class with instance of a data source.
|
void |
updateWorkgroupQueue(WorkgroupQueueEntity queue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersion, updateSchemapublic static final String ADD_QUEUEY_KEY
public static final String GET_QUEUEY_KEY
public static final String DELETE_QUEUEY_KEY
public static final String UPDATE_QUEUEY_KEY
public static final String GET_QUEUES_KEY
protected final Logger log
protected DataRepository dataRepository
public void deleteWorkgroupQueue(BareJID queueJid)
deleteWorkgroupQueue in interface Storepublic void addWorkgroupQueue(WorkgroupQueueEntity queue)
StoreaddWorkgroupQueue in interface Storequeue - queue to add.public WorkgroupQueueEntity getWorkgroupQueue(BareJID queueJID)
StoregetWorkgroupQueue in interface StorequeueJID - JID of queue.null if queue doesn't exists.public Collection<WorkgroupQueueEntity> getWorkgroupQueues()
StoregetWorkgroupQueues in interface Storepublic void initRepository(String resource_uri, Map<String,String> params) throws DBInitException
Repositoryresource_uri parameter as the database connection string or via
params map if the required repository parameters are more complex or both.initRepository in interface Repositoryresource_uri - value in most cases representing the database connection string.params - is a Map with repository properties necessary to initialize and perform all the
functions. The initialization parameters are implementation dependent.DBInitException - if there was an error during repository initialization. Some implementations,
though, perform so called lazy initialization so even though there is a problem with the underlying repository it
may not be signaled through this method call.public void setDataSource(DataRepository dataRepository)
DataSourceAwaresetDataSource in interface DataSourceAware<DataRepository>public void updateWorkgroupQueue(WorkgroupQueueEntity queue)
protected void initPreparedStatements(DataRepository dataRepository) throws SQLException
SQLExceptionCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.