1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.businessobjects.environment.persistence;
16
17 import org.figure8.join.core.persistence.ObjectDao;
18 import org.figure8.join.businessobjects.environment.Machine;
19 /**
20 * Data Access interface for Machine business objects.
21 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
22 * @version $Revision: 1.1 $
23 */
24 public interface MachineDao extends ObjectDao{
25
26
27
28 /**
29 * Retrieve a Machine using its unique identifier
30 * @param id The unique identifier of machine to retrieve
31 * @return The correspnoding machine or null if no machine has this id
32 */
33 public abstract Machine getMachine(long id);
34
35 /**
36 * Retrieve a Machine using its name.
37 * @param name Name of machine to retrieve
38 * @return The machine with this name or null if no machine is found
39 */
40 public abstract Machine getMachine(String name);
41 }