|
||||||||||
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 Connection |
connection
JDBC database connection needed to create PreparedStatement. |
protected EntityResolver |
entityResolver
Provides access to Cayenne mapping info. |
protected Query |
query
Query being translated. |
Constructor Summary | |
---|---|
QueryTranslator()
|
Method Summary | |
---|---|
abstract PreparedStatement |
createStatement()
Creates PreparedStatement. |
DbAdapter |
getAdapter()
|
Connection |
getConnection()
Returns Connection object used by this translator. |
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 |
setConnection(Connection connection)
|
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 Connection connection
protected DbAdapter adapter
protected EntityResolver entityResolver
Constructor Detail |
---|
public QueryTranslator()
Method Detail |
---|
public abstract PreparedStatement createStatement() throws Exception
logLevel
parameter is supplied to allow
control of logging of produced SQL.
Exception
public Query getQuery()
public void setQuery(Query query)
public Connection getConnection()
public void setConnection(Connection connection)
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 |