Package ch.inftec.ju.util.persistable.GenericMementoUtils

Examples of ch.inftec.ju.util.persistable.GenericMementoUtils.GenericMementoBuilder.build()


  public GenericMementoItem loadMemento(Long id) {
    MementoObject mo =this.em.find(MementoObject.class, id);
   
    GenericMementoBuilder builder = GenericMementoUtils.builder();
    this.buildGenericMemento(mo, builder);
    return GenericMementoUtils.newGenericMementoItem(builder.build(), id, mo.getType());     
  }

  @Override
  public List<GenericMementoItem> loadMementos(int maxCount) {
    throw new UnsupportedOperationException("Not yet implemented");
View Full Code Here


    for (Val val : this.getChangedColumns()) {
      builder.add(val.getColumnName() + ".orig", val.getOriginalValue());
      builder.add(val.getColumnName() + ".new", val.getChangedValue());
    }
   
    return builder.build();
  }
 
  @Override
  public final void setMemento(GenericMemento memento) {
    throw new UnsupportedOperationException("Not implemented yet");
View Full Code Here

    @Override
    public GenericMemento createMemento() {     
      GenericMementoBuilder builder = GenericMementoUtils.builder();
      this.buildMemento(builder);
      return builder.build();
    }
   
    private void buildMemento(GenericMementoBuilder builder) {
      builder
        .add("stringVal", this.stringVal)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.