// Path: src/java/is/idega/idegaweb/egov/message/business/MessageContentValue.java
// public class MessageContentValue {
//     
//     public static final String PARAMETER_TYPE = "msgctp";
//     public static final String PARAMETER_LOCALE = "msgctl";
//     public static final String PARAMETER_ID = "msgctid";
//     
//     public Integer ID;
//     public String type;
//     public String name;
//     public String body;
//     public Integer creatorID;
//     public Date updated;
//     public Date created;
//     public Locale locale;
//     
//     /**
//      * Gets a String:String map of parameters neccessary to delete a MessageContent
//      * @param value
//      * @return
//      */
//     public Map getDeleteParameters() {
//         HashMap map = new HashMap(2);
//         map.put(PARAMETER_ID,this.ID.toString());
//         map.put(PARAMETER_TYPE,this.type);
//         return map;
//     }
//     
//     /**
//      * Gets a String:String map of parameters neccessary to edit a MessageContent
//      * @param value
//      * @return
//      */
//     public Map getEditParameters(){
//         HashMap map = new HashMap(2);
//         map.put(PARAMETER_ID,this.ID.toString());
//         map.put(PARAMETER_TYPE,this.type);
//         return map;
//     }
//     
//     /**
//      * Gets a String:String map of parameters neccessary to create a MessageContent
//      * @param value
//      * @return
//      */
//     public Map getCreateParameters(){
//         HashMap map = new HashMap(1);
//         map.put(PARAMETER_TYPE,this.type);
//         return map;
//     }
// }


import java.util.Collection;
import javax.ejb.FinderException;
import is.idega.idegaweb.egov.message.business.MessageContentValue;
import com.idega.data.IDOHome;
import com.idega.data.query.SelectQuery;
/*
 * $Id$ Created on 8.10.2004
 * 
 * Copyright (C) 2004 Idega Software hf. All Rights Reserved.
 * 
 * This software is the proprietary information of Idega hf. Use is subject to license terms.
 */
package is.idega.idegaweb.egov.message.data;





/**
 * 
 * Last modified: $Date$ by $Author$
 * 
 * @author <a href="mailto:aron@idega.com">aron</a>
 * @version $Revision$
 */
public interface MessageContentHome extends IDOHome {

	public MessageContent create() throws javax.ejb.CreateException;

	public MessageContent findByPrimaryKey(Object pk) throws javax.ejb.FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindAll
	 */
	public Collection findAll() throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindByCategory
	 */
	public Collection findByCategory(String category) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindByCategoryAndLocale
	 */
	public Collection findByCategoryAndLocale(String category, Integer locale) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindByValue
	 */
	public Collection findByValue(MessageContentValue value) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbHomeGetFindQuery
	 */
// Path: src/java/is/idega/idegaweb/egov/message/business/MessageContentValue.java
// public class MessageContentValue {
//     
//     public static final String PARAMETER_TYPE = "msgctp";
//     public static final String PARAMETER_LOCALE = "msgctl";
//     public static final String PARAMETER_ID = "msgctid";
//     
//     public Integer ID;
//     public String type;
//     public String name;
//     public String body;
//     public Integer creatorID;
//     public Date updated;
//     public Date created;
//     public Locale locale;
//     
//     /**
//      * Gets a String:String map of parameters neccessary to delete a MessageContent
//      * @param value
//      * @return
//      */
//     public Map getDeleteParameters() {
//         HashMap map = new HashMap(2);
//         map.put(PARAMETER_ID,this.ID.toString());
//         map.put(PARAMETER_TYPE,this.type);
//         return map;
//     }
//     
//     /**
//      * Gets a String:String map of parameters neccessary to edit a MessageContent
//      * @param value
//      * @return
//      */
//     public Map getEditParameters(){
//         HashMap map = new HashMap(2);
//         map.put(PARAMETER_ID,this.ID.toString());
//         map.put(PARAMETER_TYPE,this.type);
//         return map;
//     }
//     
//     /**
//      * Gets a String:String map of parameters neccessary to create a MessageContent
//      * @param value
//      * @return
//      */
//     public Map getCreateParameters(){
//         HashMap map = new HashMap(1);
//         map.put(PARAMETER_TYPE,this.type);
//         return map;
//     }
// }


// Path: src/java/is/idega/idegaweb/egov/message/data/MessageContentHome.java
import java.util.Collection;
import javax.ejb.FinderException;
import is.idega.idegaweb.egov.message.business.MessageContentValue;
import com.idega.data.IDOHome;
import com.idega.data.query.SelectQuery;

/*
 * $Id$ Created on 8.10.2004
 * 
 * Copyright (C) 2004 Idega Software hf. All Rights Reserved.
 * 
 * This software is the proprietary information of Idega hf. Use is subject to license terms.
 */
package is.idega.idegaweb.egov.message.data;





/**
 * 
 * Last modified: $Date$ by $Author$
 * 
 * @author <a href="mailto:aron@idega.com">aron</a>
 * @version $Revision$
 */
public interface MessageContentHome extends IDOHome {

	public MessageContent create() throws javax.ejb.CreateException;

	public MessageContent findByPrimaryKey(Object pk) throws javax.ejb.FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindAll
	 */
	public Collection findAll() throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindByCategory
	 */
	public Collection findByCategory(String category) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindByCategoryAndLocale
	 */
	public Collection findByCategoryAndLocale(String category, Integer locale) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbFindByValue
	 */
	public Collection findByValue(MessageContentValue value) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.message.data.MessageContentBMPBean#ejbHomeGetFindQuery
	 */
	public SelectQuery getFindQuery(MessageContentValue value);