All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.napp.database.IDAO Maven / Gradle / Ivy

There is a newer version: 1.1.8
Show newest version
/**
 *
 */
package com.github.napp.database;

/**
 * @author Alexandru Bledea
 * @since Sep 21, 2013
 */
public interface IDAO {

	/**
	 * @return
	 */
	ISelectQuery select();

	/**
	 * @return
	 */
	IInsertQuery insert();

	/**
	 * @return
	 */
	IUpdateQuery update();

	/**
	 * @param id
	 * @return
	 */
	IUpdateQuery update(Integer id);

	/**
	 * @param entity
	 * @return
	 */
	IUpdateQuery update(I entity);

	/**
	 * @return
	 */
	IDeleteQuery delete();

	/**
	 * @param entity
	 */
	void delete(I entity);

	/**
	 * @param id
	 */
	void delete(int id);

	/**
	 * @return
	 */
	IFreeQuery freeQuery();
}