Package org.ytreza.app.noterex.model

Examples of org.ytreza.app.noterex.model.Tag


  public Tag getItem(Integer id) throws ItemException{
    try {
      selectOneStatement.setInt(1, id);
      ResultSet result = selectOneStatement.executeQuery();

      Tag tag = null;
      if (result.next()) {
        tag = new Tag(id, this);
      }
      result.close();
     
      if (tag != null) {
        return tag; 
View Full Code Here


    List<Tag> list = new ArrayList<Tag>();
    try {
      ResultSet result = selectAllStatement.executeQuery();

      while (result.next()) {
        list.add(new Tag(result.getInt("id"), this));
      }
      result.close();
    } catch (SQLException e) {
      throw new ItemException(Type.SELECT_ERROR, e);
    }
View Full Code Here

  public Tag getItemForInit(Integer id) throws ItemException {
    try {
      selectOneStatement.setInt(1, id);
      ResultSet result = selectOneStatement.executeQuery();

      Tag tag = null;
      if (result.next()) {
        tag = new Tag(result.getString("label"));
      }
      result.close();
     
      if (tag != null) {
        return tag; 
View Full Code Here

TOP

Related Classes of org.ytreza.app.noterex.model.Tag

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.