Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roldan Betancort2009-05-20 18:52:31 +0000
committerVictor Roldan Betancort2009-05-20 18:52:31 +0000
commita4a7bc418b553e0d1092caffd574787b592d4f90 (patch)
tree5a63fe81f96177d6f008836383a16b2f346ffc88 /plugins/org.eclipse.net4j.jms.server.jdbc
parente87578beb3393762ec4175a6ec8eb1a1aab9ee17 (diff)
downloadcdo-a4a7bc418b553e0d1092caffd574787b592d4f90.tar.gz
cdo-a4a7bc418b553e0d1092caffd574787b592d4f90.tar.xz
cdo-a4a7bc418b553e0d1092caffd574787b592d4f90.zip
[272193] [UI] Externalize Strings (Net4j)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272193
Diffstat (limited to 'plugins/org.eclipse.net4j.jms.server.jdbc')
-rw-r--r--plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JDBCStore.java6
-rw-r--r--plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JMSSchema.java22
-rw-r--r--plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/jdbc/JDBCUtil.java6
3 files changed, 17 insertions, 17 deletions
diff --git a/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JDBCStore.java b/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JDBCStore.java
index 37c15fdecb..04fc87bf08 100644
--- a/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JDBCStore.java
+++ b/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JDBCStore.java
@@ -25,7 +25,7 @@ import java.sql.SQLException;
*/
public class JDBCStore extends AbstractStore
{
- private static final String STORE_TYPE = "JDBC";
+ private static final String STORE_TYPE = "JDBC"; //$NON-NLS-1$
private IDBAdapter dbAdapter;
@@ -36,12 +36,12 @@ public class JDBCStore extends AbstractStore
super(STORE_TYPE);
if (dbAdapter == null)
{
- throw new IllegalArgumentException("dbAdapter == null");
+ throw new IllegalArgumentException("dbAdapter == null"); //$NON-NLS-1$
}
if (dataSource == null)
{
- throw new IllegalArgumentException("dataSource == null");
+ throw new IllegalArgumentException("dataSource == null"); //$NON-NLS-1$
}
this.dbAdapter = dbAdapter;
diff --git a/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JMSSchema.java b/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JMSSchema.java
index 4c8b89602c..4ab6194887 100644
--- a/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JMSSchema.java
+++ b/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/internal/jdbc/JMSSchema.java
@@ -26,13 +26,13 @@ public class JMSSchema extends DBSchema
/**
* DBTable Destinations
*/
- public static final IDBTable DESTINATIONS = INSTANCE.addTable("destinations");
+ public static final IDBTable DESTINATIONS = INSTANCE.addTable("destinations"); //$NON-NLS-1$
public static final IDBField DESTINATIONS_NAME = //
- DESTINATIONS.addField("name", DBType.VARCHAR, 255);
+ DESTINATIONS.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$
public static final IDBField DESTINATIONS_TYPE = //
- DESTINATIONS.addField("type", DBType.INTEGER);
+ DESTINATIONS.addField("type", DBType.INTEGER); //$NON-NLS-1$
public static final IDBIndex INDEX_DESTINATIONS_PK = //
DESTINATIONS.addIndex(IDBIndex.Type.PRIMARY_KEY, DESTINATIONS_NAME);
@@ -40,16 +40,16 @@ public class JMSSchema extends DBSchema
/**
* DBTable Messages
*/
- public static final IDBTable MESSAGES = INSTANCE.addTable("messages");
+ public static final IDBTable MESSAGES = INSTANCE.addTable("messages"); //$NON-NLS-1$
public static final IDBField MESSAGES_ID = //
- MESSAGES.addField("id", DBType.VARCHAR);
+ MESSAGES.addField("id", DBType.VARCHAR); //$NON-NLS-1$
public static final IDBField MESSAGES_DESTINATION = //
- MESSAGES.addField("destination", DBType.VARCHAR);
+ MESSAGES.addField("destination", DBType.VARCHAR); //$NON-NLS-1$
public static final IDBField MESSAGES_PRIORITY = //
- MESSAGES.addField("priority", DBType.INTEGER);
+ MESSAGES.addField("priority", DBType.INTEGER); //$NON-NLS-1$
public static final IDBIndex INDEX_MESSAGES_PK = //
MESSAGES.addIndex(IDBIndex.Type.PRIMARY_KEY, MESSAGES_ID);
@@ -57,13 +57,13 @@ public class JMSSchema extends DBSchema
/**
* Queries
*/
- public static final String QUERY = "SELECT " + DESTINATIONS_TYPE + ", " + MESSAGES_ID + ", " + MESSAGES_PRIORITY
- + " FROM " + DESTINATIONS + ", " + MESSAGES + " WHERE " + DESTINATIONS_NAME + "=" + MESSAGES_DESTINATION
- + " AND " + DESTINATIONS_NAME + "=?";
+ public static final String QUERY = "SELECT " + DESTINATIONS_TYPE + ", " + MESSAGES_ID + ", " + MESSAGES_PRIORITY //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ + " FROM " + DESTINATIONS + ", " + MESSAGES + " WHERE " + DESTINATIONS_NAME + "=" + MESSAGES_DESTINATION //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ + " AND " + DESTINATIONS_NAME + "=?"; //$NON-NLS-1$ //$NON-NLS-2$
private JMSSchema()
{
- super("JMS");
+ super("JMS"); //$NON-NLS-1$
}
static
diff --git a/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/jdbc/JDBCUtil.java b/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/jdbc/JDBCUtil.java
index a4d3493ab7..eb6f9c5b2a 100644
--- a/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/jdbc/JDBCUtil.java
+++ b/plugins/org.eclipse.net4j.jms.server.jdbc/src/org/eclipse/net4j/jms/server/jdbc/JDBCUtil.java
@@ -39,10 +39,10 @@ public final class JDBCUtil
public static IStore getStore()
{
Properties properties = OM.BUNDLE.getConfigProperties();
- String adapterName = properties.getProperty("store.adapterName", "derby-embedded");
+ String adapterName = properties.getProperty("store.adapterName", "derby-embedded"); //$NON-NLS-1$ //$NON-NLS-2$
IDBAdapter dbAdapter = DBUtil.getDBAdapter(adapterName);
- DataSource dataSource = DBUtil.createDataSource(properties, "datasource");
- String instanceID = properties.getProperty("store.instanceID", "00000000");
+ DataSource dataSource = DBUtil.createDataSource(properties, "datasource"); //$NON-NLS-1$
+ String instanceID = properties.getProperty("store.instanceID", "00000000"); //$NON-NLS-1$ //$NON-NLS-2$
return getStore(dbAdapter, dataSource, instanceID);
}
}

Back to the top