User: fleury
Date: 00/09/27 18:17:05
Modified: src/main/org/jboss/ejb/plugins/jaws/jdbc JDBCCommand.java
JDBCFindByCommand.java JDBCInitCommand.java
Log:
Update logging
Revision Changes Path
1.16 +4 -4 jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java
Index: JDBCCommand.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- JDBCCommand.java 2000/09/26 21:51:49 1.15
+++ JDBCCommand.java 2000/09/28 01:17:04 1.16
@@ -52,7 +52,7 @@
* utility methods that database commands may need to call.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
- * @version $Revision: 1.15 $
+ * @version $Revision: 1.16 $
*/
public abstract class JDBCCommand
{
@@ -371,9 +371,9 @@
if(rs.wasNull()) return null;
return result;
} catch(IllegalAccessException e) {
- System.out.println("Unable to read from ResultSet: "+e);
+ log.debug("Unable to read from ResultSet: "+e);
} catch(InvocationTargetException e) {
- System.out.println("Unable to read from ResultSet: "+e);
+ log.debug("Unable to read from ResultSet: "+e);
}
}
@@ -410,7 +410,7 @@
if (result instanceof Handle) result =
((Handle)result).getEJBObject();
if(!destination.isAssignableFrom(result.getClass())) {
- System.out.println("Unable to load a ResultSet column into a
variable of type '"+destination.getName()+"' (got a "+result.getClass().getName()+")");
+ log.debug("Unable to load a ResultSet column into a variable of
type '"+destination.getName()+"' (got a "+result.getClass().getName()+")");
result = null;
}
1.6 +2 -2
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFindByCommand.java
Index: JDBCFindByCommand.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFindByCommand.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- JDBCFindByCommand.java 2000/09/09 02:52:56 1.5
+++ JDBCFindByCommand.java 2000/09/28 01:17:04 1.6
@@ -25,7 +25,7 @@
* @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.5 $
+ * @version $Revision: 1.6 $
*/
public class JDBCFindByCommand extends JDBCFinderCommand
{
@@ -42,7 +42,7 @@
super(factory, finderMethod.getName());
String cmpFieldName = finderMethod.getName().substring(6).toLowerCase();
- Logger.log("Finder:"+cmpFieldName);
+ Logger.debug("Finder:"+cmpFieldName);
// Find the meta-info for the field we want to find by
1.6 +2 -2
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCInitCommand.java
Index: JDBCInitCommand.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCInitCommand.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- JDBCInitCommand.java 2000/09/09 02:52:56 1.5
+++ JDBCInitCommand.java 2000/09/28 01:17:04 1.6
@@ -26,7 +26,7 @@
* @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.5 $
+ * @version $Revision: 1.6 $
*/
public class JDBCInitCommand
extends JDBCUpdateCommand
@@ -91,7 +91,7 @@
// Try to create it
if(created) {
- System.out.println("Table '"+jawsEntity.getTableName()+"' already
exists!");
+ log.log("Table '"+jawsEntity.getTableName()+"' already exists");
} else {
try
{