Index: lams_common/src/java/org/lamsfoundation/lams/usermanagement/dao/IOrganisationStateDAO.java =================================================================== diff -u --- lams_common/src/java/org/lamsfoundation/lams/usermanagement/dao/IOrganisationStateDAO.java (revision 0) +++ lams_common/src/java/org/lamsfoundation/lams/usermanagement/dao/IOrganisationStateDAO.java (revision 276ae3bb84c57a0e845de85e3cc43df6a29cf848) @@ -0,0 +1,102 @@ +/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ +package org.lamsfoundation.lams.usermanagement.dao; + +import java.util.List; + +import org.lamsfoundation.lams.usermanagement.OrganisationState; + +/** + * @version + * + *

+ * View Source + *

+ * + * @author Fei Yang + * + * Created at 11:01:56 on 2006-6-2 + */ +public interface IOrganisationStateDAO { + + /** + * Gets a list of all the organisationStates. + * + * @return List populated list of organisationStates + */ + public List getAllOrganisationStates(); + + /** + * Gets organisationState object based on organisationStateId. + * @param organisationStateId the organisationState's organisationStateId + * @return organisationState populated organisationState object + */ + public OrganisationState getOrganisationStateById(Integer organisationStateId); + + /** + * Gets organisationState object based on name. + * @param name the organisationState's name + * @return organisationState populated organisationState object + */ + public OrganisationState getOrganisationStateByName(String name); + + /** + * Saves the organisationState + * @param organisationState the object to be saved + * @return OrganisationState the saved organisationState object + */ + public void saveOrganisationState(OrganisationState organisationState); + + /** + * Updates the organisationState + * @param organisationState the object to be updated + * @return OrganisationState the updated organisationState object + */ + public void updateOrganisationState(OrganisationState organisationState); + + /** + * Saves or updates the organisationState + * @param organisationState the object to be saved or updated + * @return OrganisationState the saved or updated organisationState object + */ + public void saveOrUpdateOrganisationState(OrganisationState organisationState); + + /** + * Deletes a organisationState from the database + * @param organisationState the organisationState to be deleted + */ + public void deleteOrganisationState(OrganisationState organisationState); + + /** + * Deletes a organisationState from the database by id + * @param organisationStateId the organisationState's organisationStateId + */ + public void deleteOrganisationStateById(Integer organisationStateId); + + /** + * Deletes a organisationState from the database by name + * @param name the organisationState's name + */ + public void deleteOrganisationStateByName(String name); + +}