[infinispan-commits] Infinispan SVN: r1333 - in trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc: binary and 1 other directory.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Tue Dec 29 10:06:22 EST 2009
Author: sannegrinovero
Date: 2009-12-29 10:06:21 -0500 (Tue, 29 Dec 2009)
New Revision: 1333
Modified:
trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/TableManipulation.java
trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/binary/JdbcBinaryCacheStoreConfig.java
Log:
some typos in cachestore-jdbc
Modified: trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/TableManipulation.java
===================================================================
--- trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/TableManipulation.java 2009-12-29 14:21:44 UTC (rev 1332)
+++ trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/TableManipulation.java 2009-12-29 15:06:21 UTC (rev 1333)
@@ -91,7 +91,7 @@
}
public boolean tableExists(Connection connection, String tableName) throws CacheLoaderException {
- assrtNotNull(getTableName(), "table name is mandatory");
+ assertNotNull(getTableName(), "table name is mandatory");
ResultSet rs = null;
try {
// (a j2ee spec compatible jdbc driver has to fully
@@ -141,7 +141,7 @@
public void createTable(Connection conn) throws CacheLoaderException {
// removed CONSTRAINT clause as this causes problems with some databases, like Informix.
- assertMandatoryElemenetsPresent();
+ assertMandatoryElementsPresent();
String creatTableDdl = "CREATE TABLE " + getTableName() + "(" + idColumnName + " " + idColumnType
+ " NOT NULL, " + dataColumnName + " " + dataColumnType + ", "
+ timestampColumnName + " " + timestampColumnType +
@@ -151,18 +151,18 @@
executeUpdateSql(conn, creatTableDdl);
}
- private void assertMandatoryElemenetsPresent() throws CacheLoaderException {
- assrtNotNull(idColumnType, "idColumnType needed in order to create table");
- assrtNotNull(idColumnName, "idColumnName needed in order to create table");
- assrtNotNull(tableNamePrefix, "tableNamePrefix needed in order to create table");
- assrtNotNull(cacheName, "cacheName needed in order to create table");
- assrtNotNull(dataColumnName, "dataColumnName needed in order to create table");
- assrtNotNull(dataColumnType, "dataColumnType needed in order to create table");
- assrtNotNull(timestampColumnName, "timestampColumnName needed in order to create table");
- assrtNotNull(timestampColumnType, "timestampColumnType needed in order to create table");
+ private void assertMandatoryElementsPresent() throws CacheLoaderException {
+ assertNotNull(idColumnType, "idColumnType needed in order to create table");
+ assertNotNull(idColumnName, "idColumnName needed in order to create table");
+ assertNotNull(tableNamePrefix, "tableNamePrefix needed in order to create table");
+ assertNotNull(cacheName, "cacheName needed in order to create table");
+ assertNotNull(dataColumnName, "dataColumnName needed in order to create table");
+ assertNotNull(dataColumnType, "dataColumnType needed in order to create table");
+ assertNotNull(timestampColumnName, "timestampColumnName needed in order to create table");
+ assertNotNull(timestampColumnType, "timestampColumnType needed in order to create table");
}
- private void assrtNotNull(String keyColumnType, String message) throws CacheLoaderException {
+ private void assertNotNull(String keyColumnType, String message) throws CacheLoaderException {
if (keyColumnType == null || keyColumnType.trim().length() == 0) throw new CacheLoaderException(message);
}
Modified: trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/binary/JdbcBinaryCacheStoreConfig.java
===================================================================
--- trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/binary/JdbcBinaryCacheStoreConfig.java 2009-12-29 14:21:44 UTC (rev 1332)
+++ trunk/cachestore/jdbc/src/main/java/org/infinispan/loaders/jdbc/binary/JdbcBinaryCacheStoreConfig.java 2009-12-29 15:06:21 UTC (rev 1333)
@@ -123,7 +123,7 @@
}
/**
- * Databse user name.
+ * Database user name.
*/
public void setUserName(String userName) {
testImmutability("connectionFactoryConfig");
More information about the infinispan-commits
mailing list