| java.lang.Object org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl
SqlGeneratorDefaultImpl | public class SqlGeneratorDefaultImpl implements SqlGenerator(Code) | | This Class is responsible for building sql statements
Objects fields and their repective values are accessed by Java reflection
author: Thomas Mahler author: Ron Gallagher author: Randall Burt version: $Id: SqlGeneratorDefaultImpl.java,v 1.23.2.5 2005/12/21 22:23:44 tomdz Exp $ |
Inner Class :public static class SqlForClass | |
Method Summary | |
protected String | asSQLClause(SelectionCriteria c, ClassDescriptor cld) | public String | asSQLStatement(Criteria crit, ClassDescriptor cld) | public String | getDeleteMNStatement(String table, String[] pkColumns1, String[] pkColumns2) | public String | getInsertMNStatement(String table, String[] pkColumns1, String[] pkColumns2) | public Platform | getPlatform() | public SqlStatement | getPreparedDeleteStatement(ClassDescriptor cld) generate a prepared DELETE-Statement for the Class
described by cld. | public SqlStatement | getPreparedDeleteStatement(Query query, ClassDescriptor cld) | public SqlStatement | getPreparedExistsStatement(ClassDescriptor cld) | public SqlStatement | getPreparedInsertStatement(ClassDescriptor cld) generate a prepared INSERT-Statement for the Class
described by cld. | public SelectStatement | getPreparedSelectByPkStatement(ClassDescriptor cld) | public SelectStatement | getPreparedSelectStatement(Query query, ClassDescriptor cld) | public SqlStatement | getPreparedUpdateStatement(ClassDescriptor cld) | public String | getSelectMNStatement(String table, String[] selectColumns, String[] columns) | public SelectStatement | getSelectStatementDep(Query query, ClassDescriptor cld) | protected SqlForClass | getSqlForClass(ClassDescriptor cld) Returns the
SqlForClass instance for
the given class descriptor.
Parameters: cld - The class descriptor. | protected SqlForClass | newInstanceSqlForClass() User who want to extend this implementation can override this method to use
their own (extended) version of
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.SqlForClass . |
SqlGeneratorDefaultImpl | public SqlGeneratorDefaultImpl(Platform platform)(Code) | | |
asSQLStatement | public String asSQLStatement(Criteria crit, ClassDescriptor cld)(Code) | | Parameters: crit - Selection criteria26/06/99 Change statement to a StringBuffer for efficiency |
getDeleteMNStatement | public String getDeleteMNStatement(String table, String[] pkColumns1, String[] pkColumns2)(Code) | | generate a DELETE-Statement for M:N indirection table
Parameters: table - Parameters: pkColumns1 - Parameters: pkColumns2 - |
getInsertMNStatement | public String getInsertMNStatement(String table, String[] pkColumns1, String[] pkColumns2)(Code) | | generate an INSERT-Statement for M:N indirection table
Parameters: table - Parameters: pkColumns1 - Parameters: pkColumns2 - |
getPreparedDeleteStatement | public SqlStatement getPreparedDeleteStatement(ClassDescriptor cld)(Code) | | generate a prepared DELETE-Statement for the Class
described by cld.
Parameters: cld - the ClassDescriptor |
getPreparedDeleteStatement | public SqlStatement getPreparedDeleteStatement(Query query, ClassDescriptor cld)(Code) | | generate a prepared DELETE-Statement according to query
Parameters: query - the Query Parameters: cld - the ClassDescriptor |
getPreparedInsertStatement | public SqlStatement getPreparedInsertStatement(ClassDescriptor cld)(Code) | | generate a prepared INSERT-Statement for the Class
described by cld.
Parameters: cld - the ClassDescriptor |
getPreparedSelectByPkStatement | public SelectStatement getPreparedSelectByPkStatement(ClassDescriptor cld)(Code) | | generate a prepared SELECT-Statement for the Class
described by cld
Parameters: cld - the ClassDescriptor |
getPreparedSelectStatement | public SelectStatement getPreparedSelectStatement(Query query, ClassDescriptor cld)(Code) | | generate a select-Statement according to query
Parameters: query - the Query Parameters: cld - the ClassDescriptor |
getPreparedUpdateStatement | public SqlStatement getPreparedUpdateStatement(ClassDescriptor cld)(Code) | | generate a prepared UPDATE-Statement for the Class
described by cld
Parameters: cld - the ClassDescriptor |
getSelectMNStatement | public String getSelectMNStatement(String table, String[] selectColumns, String[] columns)(Code) | | generate a SELECT-Statement for M:N indirection table
Parameters: table - the indirection table Parameters: selectColumns - selected columns Parameters: columns - for where |
getSelectStatementDep | public SelectStatement getSelectStatementDep(Query query, ClassDescriptor cld)(Code) | | generate a select-Statement according to query
Parameters: query - the Query Parameters: cld - the ClassDescriptor |
getSqlForClass | protected SqlForClass getSqlForClass(ClassDescriptor cld)(Code) | | Returns the
SqlForClass instance for
the given class descriptor.
Parameters: cld - The class descriptor. The SqlForClass. |
newInstanceSqlForClass | protected SqlForClass newInstanceSqlForClass()(Code) | | User who want to extend this implementation can override this method to use
their own (extended) version of
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.SqlForClass .
A new instance. |
|
|