User: patriot1burke
Date: 01/06/21 14:57:22
Modified: src/main/org/jboss/ejb/plugins/jaws/jdbc
JDBCFinderCommand.java
Log:
added constructor to facilitate re-use. Removed extra login for setting up
FinderResults since this class is really not used anymore.
Revision Changes Path
1.12 +10 -15
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFinderCommand.java
Index: JDBCFinderCommand.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFinderCommand.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- JDBCFinderCommand.java 2001/06/13 06:52:17 1.11
+++ JDBCFinderCommand.java 2001/06/21 21:57:22 1.12
@@ -35,7 +35,11 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Joe Shevland</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
- * @version $Revision: 1.11 $
+ * @author <a href="mailto:[EMAIL PROTECTED]">Bill Burke</a>
+ * @version $Revision: 1.12 $
+ *
+ * Revisions:
+ * 20010621 Bill Burke: added constructor to facilitate re-use. Removed extra login
for setting up FinderResults since this class is really not used anymore.
*/
public abstract class JDBCFinderCommand
extends JDBCQueryCommand
@@ -44,6 +48,10 @@
protected FinderMetaData finderMetaData = null;
// Constructors --------------------------------------------------
+ public JDBCFinderCommand(JDBCCommandFactory factory, String name)
+ {
+ super(factory, name);
+ }
public JDBCFinderCommand(JDBCCommandFactory factory, FinderMetaData f)
{
super(factory, f.getName());
@@ -85,20 +93,7 @@
try
{
Collection keys = (Collection)jdbcExecute(args);
- /** @todo: remove this next bit and add 'getWhereClause' to FinderCommands
*/
- //look for 'where' and ditch everything before it
- String sql = getSQL(args);
- sql.toUpperCase();
- int pos = sql.indexOf("WHERE");
- String where = "";
- if (pos != -1) {
- where = sql.substring(pos);
- }
- if (finderMetaData.hasReadAhead()) {
- result = new FinderResults(keys, where, this, args);
- } else {
- result = new FinderResults(keys, null, null, null);
- }
+ result = new FinderResults(keys, null, null, null);
} catch (Exception e)
{
log.debug(e);
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development