|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.scribe.register.AbstractDaoRegister<T>
org.milyn.scribe.register.MapDaoRegister<T>
T - The DAO typepublic class MapDaoRegister<T>
A immutable map based DAO register
A MapDaoRegister can be created via the static newInstance(Map) method
or via the MapDaoRegister.Builder object. The Builder object can be created via it's constructor
or the static builder() or builder(Map) methods.
| Nested Class Summary | |
|---|---|
static class |
MapDaoRegister.Builder<T>
Builds a MapDaoRegister object. |
| Method Summary | ||
|---|---|---|
static
|
builder()
Creates a Builder object that can build a MapDaoRegister |
|
static
|
builder(java.util.Map<java.lang.String,? extends T> map)
Creates a Builder object that can build a MapDaoRegister. |
|
boolean |
containsDAO(T dao)
|
|
boolean |
containsKey(java.lang.String key)
|
|
boolean |
equals(java.lang.Object obj)
|
|
java.util.Map<java.lang.String,T> |
getAll()
Returns a clone of the underlying map. |
|
T |
getDao(java.lang.String key)
Returns the DAO with the specified name. |
|
int |
hashCode()
|
|
static
|
newInstance(java.util.Map<java.lang.String,? extends T> map)
Creates a new MapDaoRegister and fills it with the provided map. |
|
int |
size()
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class org.milyn.scribe.register.AbstractDaoRegister |
|---|
getDefaultDao, returnDao |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static <T> MapDaoRegister<T> newInstance(java.util.Map<java.lang.String,? extends T> map)
MapDaoRegister and fills it with the provided map.
T - the type of the DAOmap - the map that fills the new MapDaoRegister
MapDaoRegisterpublic static <T> MapDaoRegister.Builder<T> builder()
MapDaoRegister
T - The type of the DAO
public static <T> MapDaoRegister.Builder<T> builder(java.util.Map<java.lang.String,? extends T> map)
MapDaoRegister.
The builder will be instantiated with the provided map.
T - The type of the DAOmap - The map that is added to the builder
public boolean containsKey(java.lang.String key)
public boolean containsDAO(T dao)
public java.util.Map<java.lang.String,T> getAll()
public T getDao(java.lang.String key)
DaoRegister
getDao in interface DaoRegister<T>getDao in class AbstractDaoRegister<T>key - the name of the DAO
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||