Project

General

Profile

« Previous | Next » 

Revision e8302290

Added by Andreas Müller almost 8 years ago

Add generic find(clazz, uuid) method #5853

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ICommonService.java
172 172
	 * @param clazz the CdmBase class
173 173
	 * @param id the cdmBase identifier
174 174
	 * @return the CdmBase object defined by clazz and id
175
	 * @see #find(Class, int, List)
175 176
	 */
176 177
	public CdmBase find(Class<? extends CdmBase> clazz, int id);
177 178

  
178 179
    /**
179
     * @param clazz
180
     * @param clazz the Class of the obejct to find
180 181
     * @param id
181
     * @param propertyPaths
182
     * @param propertyPaths the property path for bean initialization
182 183
     * @return
184
     * @see #find(Class, int)
183 185
     */
184 186
    public CdmBase find(Class<? extends CdmBase> clazz, int id, List<String> propertyPaths);
185 187

  
188
    /**
189
     * A generic method to retrieve any CdmBase object by its uuid and class.<BR>
190
     * @param clazz the Class of the obejct to find
191
     * @param uuid the UUID of the object to find
192
     * @return
193
     */
194
    public <T extends CdmBase> T find(Class<T> clazz, UUID uuid);
195

  
196
    /**
197
     * A generic method to retrieve any CdmBase object by its UUID and class,
198
     * including initialization via property path.<BR>
199
     * @param clazz the Class of the obejct to find
200
     * @param uuid the UUID of the object to find
201
     * @param propertyPaths the property path for bean initialization
202
     * @return
203
     */
204
    public <T extends CdmBase> T find(Class<T> clazz, UUID uuid, List<String> propertyPaths);
186 205

  
187 206
	public List getHqlResult(String hqlQuery);
188 207

  
......
328 347
     */
329 348
    public <T extends IMergable> void merge(UUID mergeFirstUuid, UUID mergeSecondUuid, Class<? extends CdmBase> clazz) throws MergeException;
330 349

  
350

  
331 351
}

Also available in: Unified diff