|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.QueryTranslator
public abstract class QueryTranslator
Defines API for translation Cayenne queries to JDBC PreparedStatements.
For more information see Cayenne User Guide.
Field Summary | |
---|---|
protected DbAdapter |
adapter
Adapter helping to do SQL literal conversions, etc. |
protected java.sql.Connection |
connection
JDBC database connection needed to create PreparedStatement. |
protected QueryEngine |
engine
Deprecated. Since 1.2 entityResolver property is used. |
protected EntityResolver |
entityResolver
Provides access to Cayenne mapping info. |
protected Query |
query
Query being translated. |
Constructor Summary | |
---|---|
QueryTranslator()
|
Method Summary | |
---|---|
abstract java.sql.PreparedStatement |
createStatement()
Creates PreparedStatement. |
java.sql.PreparedStatement |
createStatement(org.apache.log4j.Level logLevel)
Deprecated. since 1.2 |
DbAdapter |
getAdapter()
|
java.sql.Connection |
getCon()
Deprecated. Since 1.2 use getConnection(). |
java.sql.Connection |
getConnection()
Returns Connection object used by this translator. |
QueryEngine |
getEngine()
Deprecated. Since 1.2 use "getEntityResolver()" |
EntityResolver |
getEntityResolver()
|
Query |
getQuery()
Returns query object being processed. |
DbEntity |
getRootDbEntity()
|
ObjEntity |
getRootEntity()
|
EntityInheritanceTree |
getRootInheritanceTree()
Returns an EntityInheritanceTree for the root entity. |
void |
setAdapter(DbAdapter adapter)
|
void |
setCon(java.sql.Connection con)
Deprecated. since 1.2 use setConnection(). |
void |
setConnection(java.sql.Connection connection)
|
void |
setEngine(QueryEngine engine)
Deprecated. Since 1.2 use "setEntityResolver()" |
void |
setEntityResolver(EntityResolver entityResolver)
|
void |
setQuery(Query query)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Query query
protected java.sql.Connection connection
protected QueryEngine engine
protected DbAdapter adapter
protected EntityResolver entityResolver
Constructor Detail |
---|
public QueryTranslator()
Method Detail |
---|
public abstract java.sql.PreparedStatement createStatement() throws java.lang.Exception
logLevel
parameter is supplied to allow
control of logging of produced SQL.
java.lang.Exception
public final java.sql.PreparedStatement createStatement(org.apache.log4j.Level logLevel) throws java.lang.Exception
java.lang.Exception
public Query getQuery()
public void setQuery(Query query)
public java.sql.Connection getConnection()
public void setConnection(java.sql.Connection connection)
public java.sql.Connection getCon()
public void setCon(java.sql.Connection con)
public QueryEngine getEngine()
public void setEngine(QueryEngine engine)
public DbAdapter getAdapter()
public void setAdapter(DbAdapter adapter)
public EntityInheritanceTree getRootInheritanceTree()
public ObjEntity getRootEntity()
public DbEntity getRootDbEntity()
public EntityResolver getEntityResolver()
public void setEntityResolver(EntityResolver entityResolver)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |