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

org.objectquery.InsertQuery Maven / Gradle / Ivy

The newest version!
package org.objectquery;

/**
 * insert query allow to declare a query to insert a new record.
 * 
 * usage example: 
 * InsertQuery<Person> insert = new GenericInsertQuery<Person>(Person.class);
 * Person toInsert = insert.target();
 * insert.set(toInsert.getName(),"new name");
 * insert.set(toInsert.getSurname(),"new surname");
 * 
 * 
 * 
 * @author tglman
 * 
 * @param 
 *            The target type of the query.
 */
public interface InsertQuery extends BaseQuery {

	/**
	 * Assign a value to a field in the insert query.
	 * 
	 * example:
	 * 
	 * query.set(target.getName,"new name");
	 * 
	 * 
	 * @param target
	 *            field target of the value.
	 * @param value
	 *            to set.
	 */
	 void set(S target, V value);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy