Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.query
Interface Query  view Query download Query.java

All Known Subinterfaces:
GenericSelectQuery
All Known Implementing Classes:
AbstractQuery, ProcedureQuery, SelectQuery, SqlSelectQuery

public interface Query

Generic query interface.


Field Summary
static org.apache.log4j.Level DEFAULT_LOG_LEVEL
           
static int DELETE_QUERY
           
static int INSERT_QUERY
           
static int SELECT_QUERY
           
static int UNKNOWN_QUERY
           
static int UPDATE_QUERY
           
 
Method Summary
 org.apache.log4j.Level getLoggingLevel()
          Returns the logLevel property of this query.
 int getQueryType()
          Returns one of the values: SELECT_QUERY, INSERT_QUERY, UPDATE_QUERY, DELETE_QUERY
 java.lang.Object getRoot()
          Returns the root object of this query.
 void setLoggingLevel(org.apache.log4j.Level level)
           
 void setRoot(java.lang.Object value)
          Sets the root of the query
 

Field Detail

DEFAULT_LOG_LEVEL

public static final org.apache.log4j.Level DEFAULT_LOG_LEVEL

SELECT_QUERY

public static final int SELECT_QUERY
See Also:
Constant Field Values

INSERT_QUERY

public static final int INSERT_QUERY
See Also:
Constant Field Values

UPDATE_QUERY

public static final int UPDATE_QUERY
See Also:
Constant Field Values

DELETE_QUERY

public static final int DELETE_QUERY
See Also:
Constant Field Values

UNKNOWN_QUERY

public static final int UNKNOWN_QUERY
See Also:
Constant Field Values
Method Detail

getLoggingLevel

public org.apache.log4j.Level getLoggingLevel()
Returns the logLevel property of this query. Log level is a hint to QueryEngine that performs this query to log execution with a certain priority.


setLoggingLevel

public void setLoggingLevel(org.apache.log4j.Level level)

getQueryType

public int getQueryType()
Returns one of the values: SELECT_QUERY, INSERT_QUERY, UPDATE_QUERY, DELETE_QUERY


getRoot

public java.lang.Object getRoot()
Returns the root object of this query. Might be a String, ObjEntity, DbEntity or Class, depending on the query in question


setRoot

public void setRoot(java.lang.Object value)
Sets the root of the query