|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.server.ext.CompSQLRepository
public class CompSQLRepository
Created: Nov 7, 2009 11:26:10 AM
| Field Summary | |
|---|---|
static String |
REPO_URI_PROP_KEY
Field description |
static String |
TABLE_NAME
Field description |
| Fields inherited from interface tigase.db.comp.ComponentRepository |
|---|
COMP_REPO_BIND |
| Constructor Summary | |
|---|---|
CompSQLRepository()
|
|
| Method Summary | |
|---|---|
void |
addItem(CompRepoItem item)
Method description |
void |
addRepoChangeListener(RepositoryChangeListenerIfc<CompRepoItem> repoChangeListener)
Adds a listener for repository Item change. |
Collection<CompRepoItem> |
allItems()
Method description |
boolean |
contains(String key)
Method description |
void |
getDefaults(Map<String,Object> defs,
Map<String,Object> params)
Method description |
CompRepoItem |
getItem(String key)
Method description |
CompRepoItem |
getItemInstance()
Method description |
void |
initRepository(String conn_str,
Map<String,String> params)
Method description |
Iterator<CompRepoItem> |
iterator()
Method description |
void |
reload()
Method description |
void |
removeItem(String key)
Method description |
void |
removeRepoChangeListener(RepositoryChangeListenerIfc<CompRepoItem> repoChangeListener)
Removes a listener for repository Item change. |
void |
setProperties(Map<String,Object> properties)
Method description |
int |
size()
Method description |
void |
store()
Method description |
String |
validateItem(CompRepoItem item)
Method description |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REPO_URI_PROP_KEY
public static final String TABLE_NAME
| Constructor Detail |
|---|
public CompSQLRepository()
| Method Detail |
|---|
public void addRepoChangeListener(RepositoryChangeListenerIfc<CompRepoItem> repoChangeListener)
ComponentRepository
addRepoChangeListener in interface ComponentRepository<CompRepoItem>public void removeRepoChangeListener(RepositoryChangeListenerIfc<CompRepoItem> repoChangeListener)
ComponentRepository
removeRepoChangeListener in interface ComponentRepository<CompRepoItem>public void addItem(CompRepoItem item)
addItem in interface ComponentRepository<CompRepoItem>item - public Collection<CompRepoItem> allItems()
allItems in interface ComponentRepository<CompRepoItem>public boolean contains(String key)
contains in interface ComponentRepository<CompRepoItem>key -
public void getDefaults(Map<String,Object> defs,
Map<String,Object> params)
getDefaults in interface ComponentRepository<CompRepoItem>defs - params - public CompRepoItem getItem(String key)
getItem in interface ComponentRepository<CompRepoItem>key -
public CompRepoItem getItemInstance()
getItemInstance in interface ComponentRepository<CompRepoItem>
public void initRepository(String conn_str,
Map<String,String> params)
throws SQLException
conn_str - params -
SQLExceptionpublic Iterator<CompRepoItem> iterator()
iterator in interface Iterable<CompRepoItem>public void reload()
reload in interface ComponentRepository<CompRepoItem>public void removeItem(String key)
removeItem in interface ComponentRepository<CompRepoItem>key - public void setProperties(Map<String,Object> properties)
setProperties in interface ComponentRepository<CompRepoItem>properties - public int size()
size in interface ComponentRepository<CompRepoItem>public void store()
store in interface ComponentRepository<CompRepoItem>public String validateItem(CompRepoItem item)
validateItem in interface ComponentRepository<CompRepoItem>item -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||