コード例 #1
0
 public static Setting set(String name, String value) {
   Setting s = getSetting(name);
   if (s != null) {
     s.value = value;
   } else {
     s = new Setting(name, value);
   }
   if (s != null) s.save();
   return s;
 }
コード例 #2
0
 public static void remove(String name) {
   Setting s = getSetting(name);
   if (s != null) s.delete();
 }