Пример #1
0
 @Override
 public ObjectAdapterMemento getObject() {
   if (hasPending) {
     return pending;
   }
   final ObjectAdapter adapter = entityModel.getObject();
   return ObjectAdapterMemento.createOrNull(adapter);
 }
Пример #2
0
 @Override
 public void setObject(final ObjectAdapter adapter) {
   super.setObject(adapter);
   adapterMemento = ObjectAdapterMemento.createOrNull(adapter);
 }
Пример #3
0
 public EntityModel(final ObjectAdapter adapter) {
   this(ObjectAdapterMemento.createOrNull(adapter));
   setObject(adapter);
 }