Author: rareddy
Date: 2009-04-01 14:16:58 -0400 (Wed, 01 Apr 2009)
New Revision: 684
Modified:
trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java
trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMConnection.java
trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDatabaseMetaData.java
trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDriver.java
trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMStatement.java
Log:
TEIID-452
Modified: trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java
===================================================================
--- trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java 2009-04-01
18:16:01 UTC (rev 683)
+++ trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java 2009-04-01
18:16:58 UTC (rev 684)
@@ -114,7 +114,7 @@
// logging
String logMsg =
JDBCPlugin.Util.getString("JDBCDriver.Connection_sucess"); //$NON-NLS-1$
- logger.info(logMsg);
+ logger.fine(logMsg);
return conn;
Modified: trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMConnection.java
===================================================================
--- trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMConnection.java 2009-04-01
18:16:01 UTC (rev 683)
+++ trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMConnection.java 2009-04-01
18:16:58 UTC (rev 684)
@@ -164,7 +164,7 @@
info.put(ExecutionProperties.ALLOW_DBL_QUOTED_VARIABLE,
Boolean.FALSE.toString());
}
- logger.info(JDBCPlugin.Util.getString("MMConnection.Session_success"));
//$NON-NLS-1$
+ logger.fine(JDBCPlugin.Util.getString("MMConnection.Session_success"));
//$NON-NLS-1$
logConnectionProperties(url, info);
// properties object used in obtaining connection
@@ -197,7 +197,7 @@
modifiedUrl.append(";").append(connUrl.substring(endIndex));
//$NON-NLS-1$
}
}
- logger.info("Connection Url="+modifiedUrl); //$NON-NLS-1$
+ logger.fine("Connection Url="+modifiedUrl); //$NON-NLS-1$
}
// Now clone the properties object and remove password and trusted token
@@ -208,7 +208,7 @@
Object anObj = info.get(key);
// Log each property except for password and token.
if (!MMURL.JDBC.CREDENTIALS.equalsIgnoreCase(key) &&
!MMURL.CONNECTION.PASSWORD.equalsIgnoreCase(key) &&
!MMURL.CONNECTION.CLIENT_TOKEN_PROP.equalsIgnoreCase(key)) {
- logger.info(key+"="+anObj); //$NON-NLS-1$
+ logger.fine(key+"="+anObj); //$NON-NLS-1$
}
}
}
@@ -278,7 +278,7 @@
} catch (SQLException se) {
throw MMSQLException.create(se,
JDBCPlugin.Util.getString("MMConnection.Err_connection_close",
se.getMessage())); //$NON-NLS-1$
} finally {
-
logger.info(JDBCPlugin.Util.getString("MMConnection.Connection_close_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMConnection.Connection_close_success"));
//$NON-NLS-1$
// set the status of the connection to closed
closed = true;
}
@@ -345,7 +345,7 @@
} catch (XATransactionException e) {
throw MMSQLException.create(e);
}
- logger.info(JDBCPlugin.Util.getString("MMConnection.Commit_success"));
//$NON-NLS-1$
+ logger.fine(JDBCPlugin.Util.getString("MMConnection.Commit_success"));
//$NON-NLS-1$
}
private void beginLocalTxn() throws SQLException {
@@ -710,7 +710,7 @@
} catch (XATransactionException e) {
throw MMSQLException.create(e);
}
-
logger.info(JDBCPlugin.Util.getString("MMConnection.Rollback_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMConnection.Rollback_success"));
//$NON-NLS-1$
} finally {
if (startTxn) {
beginLocalTxn();
Modified: trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDatabaseMetaData.java
===================================================================
--- trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDatabaseMetaData.java 2009-04-01
18:16:01 UTC (rev 683)
+++ trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDatabaseMetaData.java 2009-04-01
18:16:58 UTC (rev 684)
@@ -478,7 +478,7 @@
// logging
String logMsg =
JDBCPlugin.Util.getString("MMDatabaseMetadata.Best_row_sucess", table);
//$NON-NLS-1$
- logger.info(logMsg);
+ logger.fine(logMsg);
// construct results object from column values and their metadata
return createResultSet(records, metadataList);
@@ -506,7 +506,7 @@
// logging
String logMsg =
JDBCPlugin.Util.getString("MMDatabaseMetadata.Catalog_success"); //$NON-NLS-1$
- logger.info(logMsg);
+ logger.fine(logMsg);
// construct results object from column values and their metadata
return createResultSet(records, metadataList);
@@ -695,7 +695,7 @@
// logging
String logMsg =
JDBCPlugin.Util.getString("MMDatabaseMetadata.getCols_success",
columnNamePattern, tableNamePattern); //$NON-NLS-1$
- logger.info(logMsg);
+ logger.fine(logMsg);
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -813,7 +813,7 @@
// logging
String logMsg =
JDBCPlugin.Util.getString("MMDatabaseMetadata.getCrossRef_success",
primaryTable, foreignTable); //$NON-NLS-1$
- logger.info(logMsg);
+ logger.fine(logMsg);
return resultSet;
}
@@ -997,7 +997,7 @@
ResultSet resultSet = getReferenceKeys(results);
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getExpKey_success",
table));//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getExpKey_success",
table));//$NON-NLS-1$
return resultSet;
}
@@ -1071,7 +1071,7 @@
ResultSet resultSet = getReferenceKeys(results);
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getImpKey_success",
table)); //$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getImpKey_success",
table)); //$NON-NLS-1$
return resultSet;
}
@@ -1143,7 +1143,7 @@
throw MMSQLException.create(e,
JDBCPlugin.Util.getString("MMDatabaseMetadata.getIndex_error", table,
e.getMessage())); //$NON-NLS-1$
}
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getIndex_success",
table)); //$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getIndex_success",
table)); //$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -1439,7 +1439,7 @@
throw MMSQLException.create(e,
JDBCPlugin.Util.getString("MMDatabaseMetadata.getPrimaryKey_error", table,
e.getMessage())); //$NON-NLS-1$
}
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getPrimaryKey_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getPrimaryKey_success"));
//$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -1533,7 +1533,7 @@
throw MMSQLException.create(e,
JDBCPlugin.Util.getString("MMDatabaseMetadata.getProcCol_error",
columnNamePattern, e.getMessage())); //$NON-NLS-1$
}
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getProcCol_success",
columnNamePattern, procedureNamePattern)); //$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getProcCol_success",
columnNamePattern, procedureNamePattern)); //$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -1640,7 +1640,7 @@
throw MMSQLException.create(e,
JDBCPlugin.Util.getString("MMDatabaseMetadata.getProc_error",
procedureNamePattern, e.getMessage())); //$NON-NLS-1$
}
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getProc_success",
procedureNamePattern)); //$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getProc_success",
procedureNamePattern)); //$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -1721,7 +1721,7 @@
throw MMSQLException.create(e,
JDBCPlugin.Util.getString("MMDatabaseMetadata.getschema_error",
e.getMessage())); //$NON-NLS-1$
}
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getschema_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getschema_success"));
//$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -2013,7 +2013,7 @@
// manually send out a close request is very necessary for PreparedStatement.
//prepareQuery.close();
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getTable_success",
tableNamePattern)); //$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getTable_success",
tableNamePattern)); //$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -2080,7 +2080,7 @@
metadataList[0] = getColumnMetadata(null, JDBCColumnNames.TABLE_TYPES.TABLE_TYPE,
MMJDBCSQLTypeInfo.STRING,
ResultsMetadataConstants.NULL_TYPES.NOT_NULL);
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getTableType_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getTableType_success"));
//$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, metadataList);
@@ -2147,7 +2147,7 @@
ResultSetMetaData rmetadata =
ResultsMetadataWithProvider.newInstance(StaticMetadataProvider.createWithData(metadataList,
0));
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getTypes_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getTypes_success"));
//$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
@@ -2232,7 +2232,7 @@
// Method not supported, retuning empty ResultSet
ResultSet resultSet = getBestRowIdentifier(catalog, schema, table, 0, true);
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getVersionCols_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getVersionCols_success"));
//$NON-NLS-1$
return resultSet;
}
@@ -3211,7 +3211,7 @@
// close the resultset and driver connection
//results.close();
-
logger.info(JDBCPlugin.Util.getString("MMDatabaseMetadata.getRefKey_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMDatabaseMetadata.getRefKey_success"));
//$NON-NLS-1$
// construct results object from column values and their metadata
return createResultSet(records, rmetadata);
Modified: trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDriver.java
===================================================================
--- trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDriver.java 2009-04-01 18:16:01
UTC (rev 683)
+++ trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMDriver.java 2009-04-01 18:16:58
UTC (rev 684)
@@ -131,7 +131,7 @@
// logging
String logMsg =
JDBCPlugin.Util.getString("JDBCDriver.Connection_sucess"); //$NON-NLS-1$
- logger.info(logMsg);
+ logger.fine(logMsg);
return myConnection;
}
Modified: trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMStatement.java
===================================================================
--- trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMStatement.java 2009-04-01
18:16:01 UTC (rev 683)
+++ trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/MMStatement.java 2009-04-01
18:16:58 UTC (rev 684)
@@ -305,7 +305,7 @@
// Remove link from connection to statement
this.driverConnection.closeStatement(this);
-
logger.info(JDBCPlugin.Util.getString("MMStatement.Close_stmt_success"));
//$NON-NLS-1$
+
logger.fine(JDBCPlugin.Util.getString("MMStatement.Close_stmt_success"));
//$NON-NLS-1$
driverConnection = null;
}
@@ -439,7 +439,7 @@
createResultSet(resultsMsg);
}
- logger.info(JDBCPlugin.Util.getString("MMStatement.Success_query",
reqMessage.getCommandString())); //$NON-NLS-1$
+ logger.fine(JDBCPlugin.Util.getString("MMStatement.Success_query",
reqMessage.getCommandString())); //$NON-NLS-1$
}
protected RequestMessage createRequestMessage(String[] commands,