コード例 #1
0
ファイル: NameIdPair.java プロジェクト: prat0318/dbms
 public void update(NameIdPair other) {
   if (!name.equals(other.getName())) {
     throw EnvironmentFailureException.unexpectedState(
         "Pair name mismatch: " + name + " <> " + other.getName());
   }
   setId(other.getId());
 }
コード例 #2
0
ファイル: NameIdPair.java プロジェクト: prat0318/dbms
 /** Constructor for a pair where the node ID is as yet unknown. */
 public NameIdPair(String name) {
   this(name, NULL.getId());
 }