org.jtheque.core.managers.persistence
Interface QueryMapper


public interface QueryMapper

A query mapper. It seems a constructors of SQL Queries.

Author:
Baptiste Wicht

Method Summary
 Query constructInsertQuery(Entity entity)
          Construct an insert query for the entity.
 Query constructUpdateQuery(Entity entity)
          Cnstruct an update query of the entity.
 

Method Detail

constructInsertQuery

Query constructInsertQuery(Entity entity)
Construct an insert query for the entity.

Parameters:
entity - The entity to build the query for.
Returns:
The builded query.

constructUpdateQuery

Query constructUpdateQuery(Entity entity)
Cnstruct an update query of the entity.

Parameters:
entity - The entity to build the query for.
Returns:
The builded query.


Copyright © 2009 JTheque. All Rights Reserved.