package com.jigdraw.draw.service;

import com.jigdraw.draw.model.ImageEntity;

/**
 * Simple interface for dao wrapper
 *
 * @author Jay Paulynice
 */
public interface ImageService {
    /**
     * Save the given image entity
     *
     * @param entity the entity to save
     * @return id of the created entity
     */
    public long insert(ImageEntity entity);

    /**
     * Get image entity from db matching id
     *
     * @param id unique id for the image
     * @return image entity
     */
    public ImageEntity query(long id);

    /**
     * Update given image entity
     *
     * @param entity image to update
     * @return update image
     */
    public boolean update(ImageEntity entity);

    /**
     * Delete the image entity with the given id
     *
     * @param id the id of the image to delete
     */
    public boolean delete(long id);
}

@@ -180,654 +180,141 @@
 e %7B%0A
-    /**%0A     * Save the given image entity%0A     *%0A     * @param entity the entity to save%0A     * @return id of the created entity%0A     */%0A    public long insert(ImageEntity entity);%0A%0A    /**%0A     * Get image entity from db matching id%0A     *%0A     * @param id unique id for the image%0A     * @return image entity%0A     */%0A    public ImageEntity query(long id);%0A%0A    /**%0A     * Update given image entity%0A     *%0A     * @param entity image to update%0A     * @return update image%0A     */%0A    public boolean update(ImageEntity entity);%0A%0A    /**%0A     * Delete the image entity with the given id%0A     *%0A     * @param id the id of the image to delete%0A     */
+%0A    public long insert(ImageEntity entity);%0A%0A    public ImageEntity query(long id);%0A%0A    public boolean update(ImageEntity entity);%0A
 %0A   
@@ -347,9 +347,8 @@
 g id);%0A%7D
-%0A

create own data provider