/*****************************************************************************
- * Company EURIWARE
+ * Company OPEN CASCADE
* Application SIMAN
* File $Id$
* Creation date 08.10.2012
*/
public T findByCriteria(Criterion aCondition);
+ /**
+ * Retrieve a list of all objects of the considered type T which were previously persisted to the database.
+ *
+ * @return a list of all objects of the considered type T
+ */
+ @SuppressWarnings("unchecked")
+ public List<T> getAll();
+
+ /**
+ * Retrieve an ordered list of all objects of the considered type T which were previously persisted to the database.
+ *
+ * @param anOrder
+ * a result list order. Null is ignored and in such case the result list is unordered.
+ * @return an ordered list of all objects of the considered type T
+ */
+ @SuppressWarnings("unchecked")
+ public List<T> getAll(Order anOrder);
+
/**
* Retrieve a list of objects which were previously persisted to the database using the given criteria.
*
*/
@SuppressWarnings("unchecked")
public List<T> getFilteredList(Criterion aCondition, Order anOrder);
+
+ /**
+ * Makes detached object persistent.
+ * @param transientObject
+ * transient instance of the object to be made persistent
+ */
+ public void persist(T transientObject);
+
+ /**
+ * Merge detached object with persistent data.
+ *
+ * @param transientObject
+ * transient instance of the object to be merged with persistent data
+ * @return merged persistent object
+ */
+ public T merge(T transientObject);
}