Author: arminw Date: Thu Aug 2 08:37:53 2007 New Revision: 562141 URL: http://svn.apache.org/viewvc?view=rev&rev=562141 Log: log unsupported method calls
Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryBySQL.java Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryBySQL.java URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryBySQL.java?view=diff&rev=562141&r1=562140&r2=562141 ============================================================================== --- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryBySQL.java (original) +++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/QueryBySQL.java Thu Aug 2 08:37:53 2007 @@ -15,13 +15,16 @@ * limitations under the License. */ +import org.apache.ojb.broker.util.logging.LoggerFactory; + /** - * @author <a href="mailto:[EMAIL PROTECTED]">Jakob Braeuchi</a> + * Query based on a SQL-string. + * * @version $Id$ */ public class QueryBySQL extends AbstractQueryImpl { - private String m_sql; + private String m_sql; public QueryBySQL(Class targetClass, String anSQLStatement) { @@ -39,4 +42,30 @@ return "Query from " + getSearchClass() + " sql= " + m_sql; } + + //----------------------------------------- + // The following methods are not supported + public void setEndAtIndex(int endAtIndex) + { + LoggerFactory.getDefaultLogger().info("Limit/paging is not supported"); + super.setEndAtIndex(endAtIndex); + } + + public void setStartAtIndex(int startAtIndex) + { + LoggerFactory.getDefaultLogger().info("Limit/paging is not supported"); + super.setStartAtIndex(startAtIndex); + } + + public void setWithExtents(boolean withExtents) + { + LoggerFactory.getDefaultLogger().info("Unsupported method"); + super.setWithExtents(withExtents); + } + + public void setSelectForUpdate(boolean forUpdate) + { + LoggerFactory.getDefaultLogger().info("Unsupported method"); + super.setSelectForUpdate(forUpdate); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]