|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectru.sstu.dao.EnumDao<T>
T - concrete entity classpublic abstract class EnumDao<T extends Serializable>
EnumDao class is most common DAO for enumerations.
It relies on object id is its number (beginning with 0) in enumeration.
| Constructor Summary | |
|---|---|
EnumDao()
|
|
| Method Summary | |
|---|---|
List<T> |
find()
Provides all entities in the system. |
abstract T[] |
findAll()
Provides array of all objects in enumeration. |
T |
findById(Serializable id)
Provides entity with given id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumDao()
| Method Detail |
|---|
public List<T> find()
find in interface ReadOnlyDao<T extends Serializable>public T findById(Serializable id)
findById in interface ReadOnlyDao<T extends Serializable>id - entity id
public abstract T[] findAll()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||