Package uk.ac.bbsrc.tgac.miso.core.data.type

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.LibraryStrategyType


    return e;
  }

  public LibraryStrategyType getLibraryStrategyTypeById(long libraryStrategyTypeId) throws IOException {
    List eResults = template.query(LIBRARY_STRATEGY_TYPE_SELECT_BY_ID, new Object[]{libraryStrategyTypeId}, new LibraryStrategyTypeMapper());
    LibraryStrategyType e = eResults.size() > 0 ? (LibraryStrategyType) eResults.get(0) : null;
    return e;
  }
View Full Code Here


    return e;
  }

  public LibraryStrategyType getLibraryStrategyTypeByName(String name) throws IOException {
    List eResults = template.query(LIBRARY_STRATEGY_TYPE_SELECT_BY_NAME, new Object[]{name}, new LibraryStrategyTypeMapper());
    LibraryStrategyType e = eResults.size() > 0 ? (LibraryStrategyType) eResults.get(0) : null;
    return e;
  }
View Full Code Here

    }
  }

  public class LibraryStrategyTypeMapper implements RowMapper<LibraryStrategyType> {
    public LibraryStrategyType mapRow(ResultSet rs, int rowNum) throws SQLException {
      LibraryStrategyType lst = new LibraryStrategyType();
      lst.setLibraryStrategyTypeId(rs.getLong("libraryStrategyTypeId"));
      lst.setName(rs.getString("name"));
      lst.setDescription(rs.getString("description"));
      return lst;
    }
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.data.type.LibraryStrategyType

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.