// 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.IDOFactory;
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 class MessageContentHomeImpl extends IDOFactory implements MessageContentHome {

	protected Class getEntityInterfaceClass() {
		return MessageContent.class;
	}

	public MessageContent create() throws javax.ejb.CreateException {
		return (MessageContent) super.createIDO();
	}

	public MessageContent findByPrimaryKey(Object pk) throws javax.ejb.FinderException {
		return (MessageContent) super.findByPrimaryKeyIDO(pk);
	}

	public Collection findAll() throws FinderException {
		com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
		java.util.Collection ids = ((MessageContentBMPBean) entity).ejbFindAll();
		this.idoCheckInPooledEntity(entity);
		return this.getEntityCollectionForPrimaryKeys(ids);
	}

	public Collection findByCategory(String category) throws FinderException {
		com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
		java.util.Collection ids = ((MessageContentBMPBean) entity).ejbFindByCategory(category);
		this.idoCheckInPooledEntity(entity);
		return this.getEntityCollectionForPrimaryKeys(ids);
	}

	public Collection findByCategoryAndLocale(String category, Integer locale) throws FinderException {
		com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
		java.util.Collection ids = ((MessageContentBMPBean) entity).ejbFindByCategoryAndLocale(category, locale);
		this.idoCheckInPooledEntity(entity);
		return this.getEntityCollectionForPrimaryKeys(ids);
	}

// 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/MessageContentHomeImpl.java
import java.util.Collection;
import javax.ejb.FinderException;
import is.idega.idegaweb.egov.message.business.MessageContentValue;
import com.idega.data.IDOFactory;
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 class MessageContentHomeImpl extends IDOFactory implements MessageContentHome {

	protected Class getEntityInterfaceClass() {
		return MessageContent.class;
	}

	public MessageContent create() throws javax.ejb.CreateException {
		return (MessageContent) super.createIDO();
	}

	public MessageContent findByPrimaryKey(Object pk) throws javax.ejb.FinderException {
		return (MessageContent) super.findByPrimaryKeyIDO(pk);
	}

	public Collection findAll() throws FinderException {
		com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
		java.util.Collection ids = ((MessageContentBMPBean) entity).ejbFindAll();
		this.idoCheckInPooledEntity(entity);
		return this.getEntityCollectionForPrimaryKeys(ids);
	}

	public Collection findByCategory(String category) throws FinderException {
		com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
		java.util.Collection ids = ((MessageContentBMPBean) entity).ejbFindByCategory(category);
		this.idoCheckInPooledEntity(entity);
		return this.getEntityCollectionForPrimaryKeys(ids);
	}

	public Collection findByCategoryAndLocale(String category, Integer locale) throws FinderException {
		com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
		java.util.Collection ids = ((MessageContentBMPBean) entity).ejbFindByCategoryAndLocale(category, locale);
		this.idoCheckInPooledEntity(entity);
		return this.getEntityCollectionForPrimaryKeys(ids);
	}

	public Collection findByValue(MessageContentValue value) throws FinderException {