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

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


    return false;
  }

  public LibraryType getLibraryTypeById(long libraryTypeId) throws IOException {
    List eResults = template.query(LIBRARY_TYPE_SELECT_BY_ID, new Object[]{libraryTypeId}, new LibraryTypeMapper());
    LibraryType e = eResults.size() > 0 ? (LibraryType) eResults.get(0) : null;
    return e;
  }
View Full Code Here


    return e;
  }

  public LibraryType getLibraryTypeByDescription(String description) throws IOException {
    List eResults = template.query(LIBRARY_TYPE_SELECT_BY_DESCRIPTION, new Object[]{description}, new LibraryTypeMapper());
    LibraryType e = eResults.size() > 0 ? (LibraryType) eResults.get(0) : null;
    return e;
  }
View Full Code Here

    return e;
  }

  public LibraryType getLibraryTypeByDescriptionAndPlatform(String description, PlatformType platformType) throws IOException {
    List eResults = template.query(LIBRARY_TYPE_SELECT_BY_DESCRIPTION_AND_PLATFORM, new Object[]{description, platformType.getKey()}, new LibraryTypeMapper());
    LibraryType e = eResults.size() > 0 ? (LibraryType) eResults.get(0) : null;
    return e;
  }
View Full Code Here

    }
  }

  public class LibraryTypeMapper implements RowMapper<LibraryType> {
    public LibraryType mapRow(ResultSet rs, int rowNum) throws SQLException {
      LibraryType lt = new LibraryType();
      lt.setLibraryTypeId(rs.getLong("libraryTypeId"));
      lt.setDescription(rs.getString("description"));
      lt.setPlatformType(rs.getString("platformType"));
      return lt;
    }
View Full Code Here

TOP

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

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.