|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.persistence.proxy.QueryDescriptor
public class QueryDescriptor
INTERNAL: Class used for loading and managing SQL query declarations. It is used by the rdbms proxy implementation, but should implement a query factory interface in the future.
Field Summary | |
---|---|
protected int |
fetchSize
|
protected boolean |
lookup_identities
|
protected String |
name
|
protected Class[] |
params
|
protected net.ontopia.persistence.proxy.QueryDescriptor.SelectField[] |
selects
|
protected Map |
statements
|
protected String |
type
|
Constructor Summary | |
---|---|
QueryDescriptor(String name,
String type,
boolean lookup_identities)
|
Method Summary | |
---|---|
void |
addStatement(String[] platforms,
String statement)
INTERNAL: Registers the query statement for the specified platforms. |
protected DetachedQueryIF |
createDetachedQuery(SQLStatementIF stm,
String type,
boolean lookup_identities)
|
QueryIF |
createQuery(RDBMSAccess access,
ObjectAccessIF oaccess,
AccessRegistrarIF registrar,
String[] platforms)
INTERNAL: Creates a QueryIF instance that uses the specified storage access, object access, access registrar and platform settings for this query descriptor. |
DetachedQueryIF |
createSharedQuery(StorageIF storage,
AccessRegistrarIF registrar,
String[] platforms)
INTERNAL: Creates a QueryIF instance that uses the specified storage access and platform settings. |
protected SQLStatement |
createSQLStatement(StorageIF storage,
String[] platforms)
|
int |
getFetchSize()
INTERNAL: Gets the default fetch size. |
protected FieldHandlerIF |
getFieldHandler(ObjectRelationalMappingIF mapping,
Class klass)
|
String |
getName()
INTERNAL: Returns the name of the query. |
protected FieldHandlerIF[] |
getParameterHandlers(ObjectRelationalMappingIF mapping,
Class[] params)
|
protected FieldHandlerIF |
getSelectFieldHandler(ObjectRelationalMappingIF mapping,
net.ontopia.persistence.proxy.QueryDescriptor.SelectField select)
|
protected FieldHandlerIF[] |
getSelectFieldHandlers(ObjectRelationalMappingIF mapping,
net.ontopia.persistence.proxy.QueryDescriptor.SelectField[] selects)
|
String |
getStatement(String[] platforms)
INTERNAL: Gets the class type of the query parameters. |
String |
getType()
INTERNAL: Gets the query result type name. |
void |
setFetchSize(int fetchSize)
INTERNAL: Sets the default fetch size. |
void |
setParameters(List params)
INTERNAL: Sets the class type of the query parameters. |
void |
setSelects(List selects)
INTERNAL: Sets the selected fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected String type
protected int fetchSize
protected net.ontopia.persistence.proxy.QueryDescriptor.SelectField[] selects
protected Class[] params
protected Map statements
protected boolean lookup_identities
Constructor Detail |
---|
public QueryDescriptor(String name, String type, boolean lookup_identities)
Method Detail |
---|
public String getName()
public String getType()
public int getFetchSize()
public void setFetchSize(int fetchSize)
public void setSelects(List selects)
public void setParameters(List params)
public String getStatement(String[] platforms)
public void addStatement(String[] platforms, String statement)
public DetachedQueryIF createSharedQuery(StorageIF storage, AccessRegistrarIF registrar, String[] platforms)
public QueryIF createQuery(RDBMSAccess access, ObjectAccessIF oaccess, AccessRegistrarIF registrar, String[] platforms)
protected SQLStatement createSQLStatement(StorageIF storage, String[] platforms)
protected DetachedQueryIF createDetachedQuery(SQLStatementIF stm, String type, boolean lookup_identities)
protected FieldHandlerIF[] getSelectFieldHandlers(ObjectRelationalMappingIF mapping, net.ontopia.persistence.proxy.QueryDescriptor.SelectField[] selects)
protected FieldHandlerIF getSelectFieldHandler(ObjectRelationalMappingIF mapping, net.ontopia.persistence.proxy.QueryDescriptor.SelectField select)
protected FieldHandlerIF[] getParameterHandlers(ObjectRelationalMappingIF mapping, Class[] params)
protected FieldHandlerIF getFieldHandler(ObjectRelationalMappingIF mapping, Class klass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |