- public List<Object[]> group(Class<? extends T> clazz,Integer limit, Integer start, List<Grouping> groups, List<String> propertyPaths);\r
- \r
- /**\r
- * Returns a list of entities of type <T> optionally restricted\r
- * to objects belonging to a class that that extends <T>\r
- * \r
- * @param type The type of entities to return (can be null to count all entities of type <T>)\r
- * @param limit The maximum number of objects returned (can be null for all matching objects)\r
- * @param start The offset from the start of the result set (0 - based, can be null - equivalent of starting at the beginning of the recordset)\r
- * @param orderHints\r
- * Supports path like <code>orderHints.propertyNames</code> which\r
- * include *-to-one properties like createdBy.username or\r
- * authorTeam.persistentTitleCache\r
- * @param propertyPaths properties to be initialized\r
- * @return\r
- */\r
- public List<T> list(Class<? extends T> type, Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths);\r
- \r
- /**\r
- * Finds the cdm entity specified by the <code>uuid</code> parameter and\r
- * initializes all its *ToOne relations.\r
- * \r
- * @param uuid\r
- * @return\r
- */\r
- public T load(UUID uuid);\r
- \r
- /**\r
- * Finds the cdm entity specified by the <code>uuid</code> parameter and\r
- * recursively initializes all bean properties given in the\r
- * <code>propertyPaths</code> parameter.\r
- * <p>\r
- * For detailed description and examples <b>please refer to:</b> \r
- * {@link BeanInitializer#initialize(Object, List)}\r
- * \r
- * @param uuid\r
- * @return\r
- */\r
- public T load(UUID uuid, List<String> propertyPaths);\r
- \r
- /**\r
- * Copy the state of the given object onto the persistent object with the same identifier.\r
- * \r
- * @param transientObject the entity to be merged\r
- * @return The unique identifier of the persisted entity\r
- */\r
- public T merge(T transientObject);\r
- \r
- /**\r
- * Returns a paged list of entities of type <T> optionally restricted\r
- * to objects belonging to a class that that extends <T>\r
- * \r
- * @param type The type of entities to return (can be null to count all entities of type <T>)\r
- * @param pageSize The maximum number of objects returned (can be null for all matching objects)\r
- * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based, \r
- * can be null, equivalent of starting at the beginning of the recordset)\r
- * @param orderHints\r
- * Supports path like <code>orderHints.propertyNames</code> which\r
- * include *-to-one properties like createdBy.username or\r
- * authorTeam.persistentTitleCache\r
- * @param propertyPaths properties to be initialized\r
- * @return a pager of objects of type <T>\r
- */\r
- public Pager<T> page(Class<? extends T> type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);\r
- \r
- /**\r
- * Re-read the state of the given instance from the underlying database.\r
- * \r
- * Hibernate claims that it is inadvisable to use refresh in long-running-sessions. \r
- * I don't really see where we would get into a situation where problems as discussed\r
- * this forum thread would apply for our scenario \r
- * \r
- * http://forum.hibernate.org/viewtopic.php?t=974544 \r
- * \r
- * @param persistentObject the object to be refreshed\r
- * @return the unique identifier\r
- */\r
- public UUID refresh(T persistentObject);\r
- \r
- public List<T> rows(String tableName, int limit, int start);\r
-\r
- /**\r
- * Save a collection containing new entities (persists the entities)\r
- * @param newInstances the new entities to be persisted\r
- * @return A Map containing the new entities, keyed using the generated UUID's\r
- * of those entities\r
- */\r
- public Map<UUID,T> save(Collection<T> newInstances); \r
- \r
- /**\r
- * Save a new entity (persists the entity)\r
- * @param newInstance the new entity to be persisted\r
- * @return A generated UUID for the new persistent entity\r
- */\r
- public UUID save(T newInstance);\r
- \r
- /**\r
- * Save a new entity or update the persistent state of an existing \r
- * transient entity that has been persisted previously\r
- * \r
- * @param transientObject the entity to be persisted\r
- * @return The unique identifier of the persisted entity\r
- */\r
- public UUID saveOrUpdate(T transientObject);\r
- \r
- /**\r
- * Save new entities or update the persistent state of existing \r
- * transient entities that have been persisted previously\r
- * \r
- * @param transientObjects the entities to be persisted\r
- * @return The unique identifier of the persisted entity\r
- */\r
- public Map<UUID,T> saveOrUpdate(Collection<T> transientObjects);\r
- \r
+ public List<Object[]> group(Class<? extends T> clazz,Integer limit, Integer start, List<Grouping> groups, List<String> propertyPaths);\r
+\r
+ /**\r
+ * Returns a list of entities of type <T> optionally restricted\r
+ * to objects belonging to a class that that extends <T>\r
+ *\r
+ * @param type The type of entities to return (can be null to count all entities of type <T>)\r
+ * @param limit The maximum number of objects returned (can be null for all matching objects)\r
+ * @param start The offset from the start of the result set (0 - based, can be null - equivalent of starting at the beginning of the recordset)\r
+ * @param orderHints\r
+ * Supports path like <code>orderHints.propertyNames</code> which\r
+ * include *-to-one properties like createdBy.username or\r
+ * authorTeam.persistentTitleCache\r
+ * @param propertyPaths properties to be initialized\r
+ * @return\r
+ */\r
+ public List<T> list(Class<? extends T> type, Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths);\r
+\r
+ /**\r
+ * Finds the cdm entity specified by the <code>uuid</code> parameter and\r
+ * initializes all its *ToOne relations.\r
+ *\r
+ * @param uuid\r
+ * @return\r
+ */\r
+ public T load(UUID uuid);\r
+\r