예제 #1
0
 public void setPrefix(String prefix, String name) throws RdbmsException {
   NamespaceImpl ns = findNamespace(name);
   try {
     table.updatePrefix(prefix, name);
   } catch (SQLException e) {
     throw new RdbmsException(e);
   }
   ns.setPrefix(prefix);
   byPrefix.put(prefix, ns);
 }
예제 #2
0
 public void removePrefix(String prefix) throws RdbmsException {
   NamespaceImpl ns = findByPrefix(prefix);
   if (ns == null) return;
   try {
     table.updatePrefix(prefix, ns.getName());
   } catch (SQLException e) {
     throw new RdbmsException(e);
   }
   ns.setPrefix(null);
   byPrefix.remove(prefix);
 }