|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Entity - public interface TopiaDAO<Entity extends TopiaEntity>
| Method Summary | |
|---|---|
void |
addTopiaEntityListener(TopiaEntityListener listener)
|
void |
addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
|
void |
commitTransaction()
Appelé lorsque le context a eu un commit de fait. |
Entity |
create(java.util.Map<java.lang.String,java.lang.Object> properties)
Construit une nouvelle instance de l'objet géré par ce DAO |
Entity |
create(java.lang.Object... properties)
Construit une nouvelle instance de l'objet géré par ce DAO |
void |
delete(Entity e)
|
java.util.List<Entity> |
findAll()
|
java.util.List<Entity> |
findAllByProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
|
java.util.List<Entity> |
findAllByProperties(java.lang.String propertyName,
java.lang.Object value,
java.lang.Object... others)
|
java.util.List<Entity> |
findAllByProperty(java.lang.String propertyName,
java.lang.Object value)
|
java.util.List<Entity> |
findAllContainsProperties(java.util.Map<java.lang.String,java.util.Collection> properties)
Cherche et renvoie la première entité trouvée dont les propriétés en clé de Map contiennent toutes les valeurs de la Collection. |
java.util.List<Entity> |
findAllContainsProperties(java.lang.String propertyName,
java.util.Collection values,
java.lang.Object... others)
Cherche et renvoie toutes les entités trouvées dont la propriété propertyName contient values, ainsi de suite avec others. |
java.util.List<java.lang.String> |
findAllIds()
Recuperation de tous les ids en base pour le type d'entite du dao. |
java.util.List<Entity> |
findAllWithOrder(java.lang.String... propertyNames)
|
Entity |
findByPrimaryKey(java.util.Map<java.lang.String,java.lang.Object> keys)
Recherche la classe en utilisant la cle naturelle, chaque champs de la cle naturelle est une entre de la map passe en argument. |
Entity |
findByPrimaryKey(java.lang.Object... k)
Recherche la classe en utilisant la cle naturelle, si la cle naturelle est composé de plusieurs champs alors les arguments passés doivent être dans l'ordre de declaration dans le fichier de mapping |
Entity |
findByProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
|
Entity |
findByProperties(java.lang.String propertyName,
java.lang.Object value,
java.lang.Object... others)
|
Entity |
findByProperty(java.lang.String propertyName,
java.lang.Object value)
|
Entity |
findByTopiaId(java.lang.String k)
|
Entity |
findContainsProperties(java.util.Map<java.lang.String,java.util.Collection> properties)
Cherche et renvoie la première entité trouvée dont les propriétés en clé de Map contiennent toutes les valeurs de la Collection. |
Entity |
findContainsProperties(java.lang.String propertyName,
java.util.Collection values,
java.lang.Object... others)
Cherche et renvoie la première entité trouvée dont la propriété propertyName contient values, ainsi de suite avec others. |
TopiaContextImplementor |
getContext()
|
java.lang.Class<Entity> |
getEntityClass()
Return class of entity managed by this DAO |
java.util.List<java.security.Permission> |
getRequestPermission(java.lang.String topiaId,
int actions)
Retourne les permissions a verifier pour l'acces a l'entite pour le service Taas. |
void |
init(TopiaContextImplementor context,
java.lang.Class<Entity> entityClass)
When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after. |
void |
removeTopiaEntityListener(TopiaEntityListener listener)
|
void |
removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
|
void |
rollbackTransaction()
Appelé lorsque le context a eu un rollback de fait. |
int |
size()
TODO modifier l'implantation pour faire un simple count sur la base |
Entity |
update(Entity e)
Permet d'ajouter ou de mettre a jour un objet. |
| Method Detail |
|---|
void init(TopiaContextImplementor context,
java.lang.Class<Entity> entityClass)
throws TopiaException
context - contextentityClass - entity class
TopiaExceptionjava.lang.Class<Entity> getEntityClass()
TopiaContextImplementor getContext()
void commitTransaction()
throws TopiaException
TopiaException
void rollbackTransaction()
throws TopiaException
TopiaException
Entity create(java.lang.Object... properties)
throws TopiaException
properties - la liste des propriétés que doit avoir l'objet créé
les arguments vont par paire (propertyName, value)
TopiaException - si un problème est rencontré durant l'instanciation
java.lang.IllegalArgumentException - Si le nombre on le type des arguments
n'est pas bon ou que le type ou le nom d'une propriété est fausse
Entity create(java.util.Map<java.lang.String,java.lang.Object> properties)
throws TopiaException
properties - la liste des propriétés que doit avoir l'objet créé
TopiaException - si un problème est rencontré durant l'instanciation
java.lang.IllegalArgumentException - Si le nombre on le type des arguments
n'est pas bon ou que le type ou le nom d'une propriété est fausse
Entity update(Entity e)
throws TopiaException
e - l'entite a ajouter ou mettre a jour
TopiaException
void delete(Entity e)
throws TopiaException
TopiaException
Entity findByTopiaId(java.lang.String k)
throws TopiaException
TopiaException
java.util.List<Entity> findAll()
throws TopiaException
TopiaException
java.util.List<java.lang.String> findAllIds()
throws TopiaException
TopiaException - si pb en base
java.util.List<Entity> findAllWithOrder(java.lang.String... propertyNames)
throws TopiaException
TopiaException
int size()
throws TopiaException
TopiaException
Entity findByPrimaryKey(java.util.Map<java.lang.String,java.lang.Object> keys)
throws TopiaException
keys - la liste des champs de la cle naturelle avec leur valeur
TopiaException
Entity findByPrimaryKey(java.lang.Object... k)
throws TopiaException
k - l'objet cle naturelle de la classe
TopiaException
Entity findByProperty(java.lang.String propertyName,
java.lang.Object value)
throws TopiaException
TopiaException
Entity findByProperties(java.lang.String propertyName,
java.lang.Object value,
java.lang.Object... others)
throws TopiaException
propertyName - value - others - les autres proprietes doivent aller par 2 propertyName,
value
TopiaException
Entity findByProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
throws TopiaException
TopiaException
java.util.List<Entity> findAllByProperty(java.lang.String propertyName,
java.lang.Object value)
throws TopiaException
TopiaException
java.util.List<Entity> findAllByProperties(java.lang.String propertyName,
java.lang.Object value,
java.lang.Object... others)
throws TopiaException
propertyName - value - others - les autres proprietes doivent aller par 2 propertyName,
value
TopiaException
java.util.List<Entity> findAllByProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
throws TopiaException
TopiaException
Entity findContainsProperties(java.util.Map<java.lang.String,java.util.Collection> properties)
throws TopiaException
properties -
TopiaException
Entity findContainsProperties(java.lang.String propertyName,
java.util.Collection values,
java.lang.Object... others)
throws TopiaException
propertyName - values - others -
TopiaException
java.util.List<Entity> findAllContainsProperties(java.util.Map<java.lang.String,java.util.Collection> properties)
throws TopiaException
properties -
TopiaException
java.util.List<Entity> findAllContainsProperties(java.lang.String propertyName,
java.util.Collection values,
java.lang.Object... others)
throws TopiaException
propertyName - values - others -
TopiaException
java.util.List<java.security.Permission> getRequestPermission(java.lang.String topiaId,
int actions)
throws TopiaException
topiaId - topiaId d'une entiteactions -
TopiaExceptionvoid addTopiaEntityListener(TopiaEntityListener listener)
void addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
void removeTopiaEntityListener(TopiaEntityListener listener)
void removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||