Author: tchemit Date: 2009-12-14 12:31:08 +0100 (Mon, 14 Dec 2009) New Revision: 1701 Modified: branches/from2.2.2-eugene2-beta/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaDAOImpl.java Log: - add javadoc + remove javadoc on override methods Modified: branches/from2.2.2-eugene2-beta/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaDAOImpl.java =================================================================== --- branches/from2.2.2-eugene2-beta/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaDAOImpl.java 2009-12-14 02:54:07 UTC (rev 1700) +++ branches/from2.2.2-eugene2-beta/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaDAOImpl.java 2009-12-14 11:31:08 UTC (rev 1701) @@ -288,8 +288,8 @@ * private method because this is hibernate specific method and we don't * want expose it * - * @return - * @throws TopiaException + * @return the meta-data of the entity + * @throws TopiaException if any pb */ private ClassMetadata getClassMetadata() throws TopiaException { ClassMetadata meta = getContext().getHibernateFactory() @@ -380,12 +380,6 @@ return result; } - /** - * {@link TopiaDAOImpl#findAllContainsProperties(java.util.Map)} - * @param properties - * @return - * @throws org.nuiton.topia.TopiaException - */ @Override public Entity findContainsProperties(Map<String, Collection> properties) throws TopiaException { @@ -397,14 +391,6 @@ return result; } - /** - * {@link TopiaDAOImpl#findAllContainsProperties(java.util.Map)} - * @param propertyName - * @param values - * @param others - * @return - * @throws org.nuiton.topia.TopiaException - */ @Override public Entity findContainsProperties(String propertyName, Collection values, Object... others) throws TopiaException { @@ -444,11 +430,10 @@ * findAllContainsProperties(properties); * @param properties * @return the list of entities corresponding to the request - * @throws org.nuiton.topia.TopiaException + * @throws org.nuiton.topia.TopiaException if any pb */ @Override - public List<Entity> findAllContainsProperties( - Map<String, Collection> properties) throws TopiaException { + public List<Entity> findAllContainsProperties(Map<String, Collection> properties) throws TopiaException { List<Entity> all = findAll(); List<Entity> result = new ArrayList<Entity>(); for (Entity e : all) { @@ -492,14 +477,6 @@ return result; } - /** - * {@link TopiaDAOImpl#findAllContainsProperties(java.util.Map)} - * @param propertyName - * @param values - * @param others - * @return - * @throws org.nuiton.topia.TopiaException - */ @Override public List<Entity> findAllContainsProperties(String propertyName, Collection values, Object... others) throws TopiaException { @@ -864,6 +841,7 @@ * Renvoie un Criteria créé avec l'entityClass * @param mode le FlushMode du Criteria * @return le Criteria nouvellement créé + * @throws org.nuiton.topia.TopiaException if any pb */ private Criteria createCriteria(FlushMode mode) throws TopiaException { Criteria criteria = getSession().createCriteria(entityClass); @@ -873,6 +851,8 @@ /** * Renvoie la Session contenue dans le contexte + * @return hibernate session + * @throws org.nuiton.topia.TopiaException if any pb */ private Session getSession() throws TopiaException { return getContext().getHibernate();