예제 #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);
 }