You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2006/03/01 20:15:14 UTC

svn commit: r382128 - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker: accesslayer/sql/EnclosingSelectStatement.java query/EnclosingReportQuery.java

Author: brj
Date: Wed Mar  1 11:15:14 2006
New Revision: 382128

URL: http://svn.apache.org/viewcvs?rev=382128&view=rev
Log:
added keywords

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/EnclosingSelectStatement.java   (contents, props changed)
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/EnclosingReportQuery.java   (contents, props changed)

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/EnclosingSelectStatement.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/EnclosingSelectStatement.java?rev=382128&r1=382127&r2=382128&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/EnclosingSelectStatement.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/EnclosingSelectStatement.java Wed Mar  1 11:15:14 2006
@@ -1,77 +1,77 @@
-package org.apache.ojb.broker.accesslayer.sql;
-
-/* Copyright 2002-2006 The Apache Software Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.ojb.broker.metadata.FieldDescriptor;
-import org.apache.ojb.broker.query.Query;
-
-
-/**
- * Wraps a SelectStatement to support SQLSubSelect.
- * select count(*) from (select ... from ... where... ) ojb_enc
- *
- * @author <a href="mailto:jbraeuchi@gmx.ch">Jakob Braeuchi</a>
- * @version $Id:  $
- */
-public class EnclosingSelectStatement implements SelectStatement
-{
-    private SelectStatement enclosedSql;
-    private String sql;
-
-    public EnclosingSelectStatement(SelectStatement enclosedSql, String sql)
-    {
-        this.enclosedSql = enclosedSql;
-        this.sql = sql;
-    }
-
-    /**
-     * @see org.apache.ojb.broker.accesslayer.sql.SqlStatement#getStatement()
-     */
-    public String getStatement()
-    {
-        StringBuffer buf = new StringBuffer("select ");
-        buf.append(sql);
-        buf.append(" from (");
-        buf.append(enclosedSql.getStatement());
-        buf.append(" ) ojb_enc");
-
-        return buf.toString();
-    }
-
-    /**
-     * @see org.apache.ojb.broker.accesslayer.sql.SelectStatement#getColumnIndex(org.apache.ojb.broker.metadata.FieldDescriptor)
-     */
-    public int getColumnIndex(FieldDescriptor fld)
-    {
-        return enclosedSql.getColumnIndex(fld);
-    }
-
-    /**
-     * @see org.apache.ojb.broker.accesslayer.sql.SelectStatement#getQueryInstance()
-     */
-    public Query getQueryInstance()
-    {
-        return enclosedSql.getQueryInstance();
-    }
-
-    /**
-     * @see org.apache.ojb.broker.accesslayer.sql.SelectStatement#isUseOjbClassColumn()
-     */
-    public boolean isUseOjbClassColumn()
-    {
-        return enclosedSql.isUseOjbClassColumn();
-    }
-}
+package org.apache.ojb.broker.accesslayer.sql;
+
+/* Copyright 2002-2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.ojb.broker.metadata.FieldDescriptor;
+import org.apache.ojb.broker.query.Query;
+
+
+/**
+ * Wraps a SelectStatement to support SQLSubSelect.
+ * select count(*) from (select ... from ... where... ) ojb_enc
+ *
+ * @author <a href="mailto:jbraeuchi@gmx.ch">Jakob Braeuchi</a>
+ * @version $Id$
+ */
+public class EnclosingSelectStatement implements SelectStatement
+{
+    private SelectStatement enclosedSql;
+    private String sql;
+
+    public EnclosingSelectStatement(SelectStatement enclosedSql, String sql)
+    {
+        this.enclosedSql = enclosedSql;
+        this.sql = sql;
+    }
+
+    /**
+     * @see org.apache.ojb.broker.accesslayer.sql.SqlStatement#getStatement()
+     */
+    public String getStatement()
+    {
+        StringBuffer buf = new StringBuffer("select ");
+        buf.append(sql);
+        buf.append(" from (");
+        buf.append(enclosedSql.getStatement());
+        buf.append(" ) ojb_enc");
+
+        return buf.toString();
+    }
+
+    /**
+     * @see org.apache.ojb.broker.accesslayer.sql.SelectStatement#getColumnIndex(org.apache.ojb.broker.metadata.FieldDescriptor)
+     */
+    public int getColumnIndex(FieldDescriptor fld)
+    {
+        return enclosedSql.getColumnIndex(fld);
+    }
+
+    /**
+     * @see org.apache.ojb.broker.accesslayer.sql.SelectStatement#getQueryInstance()
+     */
+    public Query getQueryInstance()
+    {
+        return enclosedSql.getQueryInstance();
+    }
+
+    /**
+     * @see org.apache.ojb.broker.accesslayer.sql.SelectStatement#isUseOjbClassColumn()
+     */
+    public boolean isUseOjbClassColumn()
+    {
+        return enclosedSql.isUseOjbClassColumn();
+    }
+}

Propchange: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/EnclosingSelectStatement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/EnclosingSelectStatement.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/EnclosingReportQuery.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/EnclosingReportQuery.java?rev=382128&r1=382127&r2=382128&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/EnclosingReportQuery.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/EnclosingReportQuery.java Wed Mar  1 11:15:14 2006
@@ -1,97 +1,97 @@
-package org.apache.ojb.broker.query;
-
-/* Copyright 2002-2006 The Apache Software Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Wrap a Query to support SQLSubSelect.
- * select count(*) from (select ... from ... where... )
- *
- * @author <a href="mailto:jbraeuchi@gmx.ch">Jakob Braeuchi</a>
- * @version $Id:  $
- */
-public class EnclosingReportQuery extends AbstractQueryImpl implements ReportQuery
-{
-    private Query query;
-    private String sql;
-
-    private Map attrFieldDescriptors = new HashMap();
-    private String[] joinAttributes = new String[]{};
-    public EnclosingReportQuery(Query aQuery, String anSql)
-    {
-        query = aQuery;
-        sql = anSql;
-    }
-
-    public Query getQuery()
-    {
-        return query;
-    }
-
-    public Class getSearchClass()
-    {
-        return query.getSearchClass();
-    }
-
-    public String getSql()
-    {
-        return sql;
-    }
-
-    public Map getAttributeFieldDescriptors()
-    {
-        return attrFieldDescriptors;
-    }
-
-    public String[] getAttributes()
-    {
-        return new String[]{sql};
-    }
-
-    public String[] getColumns()
-    {
-        return getAttributes();
-    }
-
-    public int[] getJdbcTypes()
-    {
-        return null;
-    }
-
-    public String[] getJoinAttributes()
-    {
-        return joinAttributes;
-    }
-
-    /**
-     * Get Criteria of enclosed Query.
-     */
-    public Criteria getCriteria()
-    {
-        return query.getCriteria();
-    }
-
-    /**
-     * Get Having-Criteria of enclosed Query.
-     */
-    public Criteria getHavingCriteria()
-    {
-        return query.getHavingCriteria();
-    }
-
-}
+package org.apache.ojb.broker.query;
+
+/* Copyright 2002-2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Wrap a Query to support SQLSubSelect.
+ * select count(*) from (select ... from ... where... )
+ *
+ * @author <a href="mailto:jbraeuchi@gmx.ch">Jakob Braeuchi</a>
+ * @version $Id$
+ */
+public class EnclosingReportQuery extends AbstractQueryImpl implements ReportQuery
+{
+    private Query query;
+    private String sql;
+
+    private Map attrFieldDescriptors = new HashMap();
+    private String[] joinAttributes = new String[]{};
+    public EnclosingReportQuery(Query aQuery, String anSql)
+    {
+        query = aQuery;
+        sql = anSql;
+    }
+
+    public Query getQuery()
+    {
+        return query;
+    }
+
+    public Class getSearchClass()
+    {
+        return query.getSearchClass();
+    }
+
+    public String getSql()
+    {
+        return sql;
+    }
+
+    public Map getAttributeFieldDescriptors()
+    {
+        return attrFieldDescriptors;
+    }
+
+    public String[] getAttributes()
+    {
+        return new String[]{sql};
+    }
+
+    public String[] getColumns()
+    {
+        return getAttributes();
+    }
+
+    public int[] getJdbcTypes()
+    {
+        return null;
+    }
+
+    public String[] getJoinAttributes()
+    {
+        return joinAttributes;
+    }
+
+    /**
+     * Get Criteria of enclosed Query.
+     */
+    public Criteria getCriteria()
+    {
+        return query.getCriteria();
+    }
+
+    /**
+     * Get Having-Criteria of enclosed Query.
+     */
+    public Criteria getHavingCriteria()
+    {
+        return query.getHavingCriteria();
+    }
+
+}

Propchange: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/EnclosingReportQuery.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/query/EnclosingReportQuery.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org