aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-21 13:06:18 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-21 13:06:18 +0500
commit55d91ec7a86777bb0427422c15c2b8a60aa00071 (patch)
tree55d989c8241b18891aa0b479f8e14533cc35d625 /src/org/traccar/database/DataManager.java
parent4b51fef3521e5b0bf338f631ad99e7affe9a1837 (diff)
downloadtrackermap-server-55d91ec7a86777bb0427422c15c2b8a60aa00071.tar.gz
trackermap-server-55d91ec7a86777bb0427422c15c2b8a60aa00071.tar.bz2
trackermap-server-55d91ec7a86777bb0427422c15c2b8a60aa00071.zip
Implement type constants
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 9d8167acc..3bb367ece 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -268,11 +268,11 @@ public class DataManager {
.executeUpdate());
}
- private String makeName(String object) {
+ public static String makeName(String object) {
return object.substring(0, 1).toUpperCase() + object.replace("Id", "").substring(1);
}
- private String makeNameId(String object) {
+ public static String makeNameId(String object) {
return object.substring(0, 1).toLowerCase() + object.substring(1) + (object.indexOf("Id") == -1 ? "Id" : "");
}