Package app.database.model.tagAndNote

Examples of app.database.model.tagAndNote.TableTagForNote


      saveTagAndNote(tagAndNote);
    }
  }

  private List<ModelTagAndNote> getTagAndNoteList() {
    TableTagForNote table = (TableTagForNote) getFactory().getTable(ModelName.NOTE_TAG);

    List<ModelTagAndNote> result = new ArrayList<ModelTagAndNote>();

    List<ModelTag> officialList = getItem().getOfficialTagList();
    for (ModelTag tag : getItem().getTagList())  {
      if (officialList.contains(tag)) {
        result.add(table.createItem(new ModelTagAndNote(tag,getItem(),true)));
      } else {
        result.add(table.createItem(new ModelTagAndNote(tag,getItem(),false)));
      }
    }
    return result;
  }
View Full Code Here


  }

  private TableTagForNote setUpTableTagForNote() {
    TagAndNoteStrategyJdbc strategy = new TagAndNoteStrategyJdbc();
    strategy.setConnectionManager(connection);
    return new TableTagForNote(ModelName.NOTE_TAG, ModelName.NOTE, strategy);
  }
View Full Code Here

TOP

Related Classes of app.database.model.tagAndNote.TableTagForNote

Copyright © 2018 www.massapicom. 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.