Esempio n. 1
0
 @Override
 protected void propertySet(String propertyName, Object newValue, boolean quiet) {
   switch (propertyName.hashCode()) {
     case 90495162: // objectId
       setObjectId((ObjectId) newValue);
       return;
     case -1699764666: // externalId
       setExternalId((ExternalIdBundle) newValue);
       return;
   }
   super.propertySet(propertyName, newValue, quiet);
 }
Esempio n. 2
0
 /**
  * Creates a link from a unique identifier, only storing the object identifier.
  *
  * @param uniqueId the unique identifier, not null
  */
 protected AbstractLink(final UniqueId uniqueId) {
   ArgumentChecker.notNull(uniqueId, "uniqueId");
   setObjectId(uniqueId.getObjectId());
 }
Esempio n. 3
0
 /**
  * Creates a link from an object identifier.
  *
  * @param objectId the object identifier, not null
  */
 protected AbstractLink(final ObjectId objectId) {
   ArgumentChecker.notNull(objectId, "objectId");
   setObjectId(objectId);
 }