/******************************************************************************
 * Product: iDempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License 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.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package jpiere.plugin.groupware.model;

import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.model.*;

/** Generated Model for JP_ToDo_Team_Reminder
 *  @author iDempiere (generated) 
 *  @version Release 7.1 - $Id$ */
public class X_JP_ToDo_Team_Reminder extends PO implements I_JP_ToDo_Team_Reminder, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20201212L;

    /** Standard Constructor */
    public X_JP_ToDo_Team_Reminder (Properties ctx, int JP_ToDo_Team_Reminder_ID, String trxName)
    {
      super (ctx, JP_ToDo_Team_Reminder_ID, trxName);
      /** if (JP_ToDo_Team_Reminder_ID == 0)
        {
			setDescription (null);
			setIsSentReminderJP (false);
// N
			setJP_Mandatory_Statistics_Info (null);
// NO
			setJP_ToDo_RemindTarget (null);
// AL
			setJP_ToDo_RemindTime (new Timestamp( System.currentTimeMillis() ));
// @#Date@
			setJP_ToDo_ReminderType (null);
// M
			setJP_ToDo_Team_ID (0);
			setJP_ToDo_Team_Reminder_ID (0);
			setProcessed (false);
// N
        } */
    }

    /** Load Constructor */
    public X_JP_ToDo_Team_Reminder (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 7 - System - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_JP_ToDo_Team_Reminder[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Until Acknowledge = A */
	public static final String BROADCASTFREQUENCY_UntilAcknowledge = "A";
	/** Until Scheduled end time = E */
	public static final String BROADCASTFREQUENCY_UntilScheduledEndTime = "E";
	/** Just Once = J */
	public static final String BROADCASTFREQUENCY_JustOnce = "J";
	/** Until Scheduled end time or Acknowledge = O */
	public static final String BROADCASTFREQUENCY_UntilScheduledEndTimeOrAcknowledge = "O";
	/** Until Complete = C */
	public static final String BROADCASTFREQUENCY_UntilComplete = "C";
	/** Until Scheduled end time or Complete = M */
	public static final String BROADCASTFREQUENCY_UntilScheduledEndTimeOrComplete = "M";
	/** Set Broadcast Frequency.
		@param BroadcastFrequency 
		How Many Times Message Should be Broadcasted
	  */
	public void setBroadcastFrequency (String BroadcastFrequency)
	{

		set_Value (COLUMNNAME_BroadcastFrequency, BroadcastFrequency);
	}

	/** Get Broadcast Frequency.
		@return How Many Times Message Should be Broadcasted
	  */
	public String getBroadcastFrequency () 
	{
		return (String)get_Value(COLUMNNAME_BroadcastFrequency);
	}

	/** Set Description.
		@param Description 
		Optional short description of the record
	  */
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription () 
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	/** Set Sent Reminder.
		@param IsSentReminderJP Sent Reminder	  */
	public void setIsSentReminderJP (boolean IsSentReminderJP)
	{
		set_Value (COLUMNNAME_IsSentReminderJP, Boolean.valueOf(IsSentReminderJP));
	}

	/** Get Sent Reminder.
		@return Sent Reminder	  */
	public boolean isSentReminderJP () 
	{
		Object oo = get_Value(COLUMNNAME_IsSentReminderJP);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Once a day until Acknowledge  = A */
	public static final String JP_MAILFREQUENCY_OnceADayUntilAcknowledge = "A";
	/** Once a day until Complete = C */
	public static final String JP_MAILFREQUENCY_OnceADayUntilComplete = "C";
	/** Once a day until Scheduled end time = E */
	public static final String JP_MAILFREQUENCY_OnceADayUntilScheduledEndTime = "E";
	/** Just One = J */
	public static final String JP_MAILFREQUENCY_JustOne = "J";
	/** Once a day Until Scheduled end time or Complete = M */
	public static final String JP_MAILFREQUENCY_OnceADayUntilScheduledEndTimeOrComplete = "M";
	/** Once a day Until Scheduled end time or Acknowledge = O */
	public static final String JP_MAILFREQUENCY_OnceADayUntilScheduledEndTimeOrAcknowledge = "O";
	/** Set Mail Frequency.
		@param JP_MailFrequency 
		How Many Times EMail Should be send
	  */
	public void setJP_MailFrequency (String JP_MailFrequency)
	{

		set_Value (COLUMNNAME_JP_MailFrequency, JP_MailFrequency);
	}

	/** Get Mail Frequency.
		@return How Many Times EMail Should be send
	  */
	public String getJP_MailFrequency () 
	{
		return (String)get_Value(COLUMNNAME_JP_MailFrequency);
	}

	/** Yes / No = YN */
	public static final String JP_MANDATORY_STATISTICS_INFO_YesNo = "YN";
	/** Choice = CC */
	public static final String JP_MANDATORY_STATISTICS_INFO_Choice = "CC";
	/** Date and Time = DT */
	public static final String JP_MANDATORY_STATISTICS_INFO_DateAndTime = "DT";
	/** Number = NM */
	public static final String JP_MANDATORY_STATISTICS_INFO_Number = "NM";
	/** None = NO */
	public static final String JP_MANDATORY_STATISTICS_INFO_None = "NO";
	/** Set Mandatory Statistics Info.
		@param JP_Mandatory_Statistics_Info Mandatory Statistics Info	  */
	public void setJP_Mandatory_Statistics_Info (String JP_Mandatory_Statistics_Info)
	{

		set_Value (COLUMNNAME_JP_Mandatory_Statistics_Info, JP_Mandatory_Statistics_Info);
	}

	/** Get Mandatory Statistics Info.
		@return Mandatory Statistics Info	  */
	public String getJP_Mandatory_Statistics_Info () 
	{
		return (String)get_Value(COLUMNNAME_JP_Mandatory_Statistics_Info);
	}

	public I_JP_Team getJP_Team() throws RuntimeException
    {
		return (I_JP_Team)MTable.get(getCtx(), I_JP_Team.Table_Name)
			.getPO(getJP_Team_ID(), get_TrxName());	}

	/** Set Team.
		@param JP_Team_ID Team	  */
	public void setJP_Team_ID (int JP_Team_ID)
	{
		if (JP_Team_ID < 1) 
			set_Value (COLUMNNAME_JP_Team_ID, null);
		else 
			set_Value (COLUMNNAME_JP_Team_ID, Integer.valueOf(JP_Team_ID));
	}

	/** Get Team.
		@return Team	  */
	public int getJP_Team_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_JP_Team_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** All User of Personal ToDo = AL */
	public static final String JP_TODO_REMINDTARGET_AllUserOfPersonalToDo = "AL";
	/** User of Not yet started Personal ToDo = NY */
	public static final String JP_TODO_REMINDTARGET_UserOfNotYetStartedPersonalToDo = "NY";
	/** User of Work in progress Personal ToDo = WP */
	public static final String JP_TODO_REMINDTARGET_UserOfWorkInProgressPersonalToDo = "WP";
	/** User of Completed Personal ToDo = CO */
	public static final String JP_TODO_REMINDTARGET_UserOfCompletedPersonalToDo = "CO";
	/** User of Uncomplete Personal ToDo = UN */
	public static final String JP_TODO_REMINDTARGET_UserOfUncompletePersonalToDo = "UN";
	/** Set Remind Target.
		@param JP_ToDo_RemindTarget Remind Target	  */
	public void setJP_ToDo_RemindTarget (String JP_ToDo_RemindTarget)
	{

		set_Value (COLUMNNAME_JP_ToDo_RemindTarget, JP_ToDo_RemindTarget);
	}

	/** Get Remind Target.
		@return Remind Target	  */
	public String getJP_ToDo_RemindTarget () 
	{
		return (String)get_Value(COLUMNNAME_JP_ToDo_RemindTarget);
	}

	/** Set Remind Start Time.
		@param JP_ToDo_RemindTime Remind Start Time	  */
	public void setJP_ToDo_RemindTime (Timestamp JP_ToDo_RemindTime)
	{
		set_Value (COLUMNNAME_JP_ToDo_RemindTime, JP_ToDo_RemindTime);
	}

	/** Get Remind Start Time.
		@return Remind Start Time	  */
	public Timestamp getJP_ToDo_RemindTime () 
	{
		return (Timestamp)get_Value(COLUMNNAME_JP_ToDo_RemindTime);
	}

	/** Send Mail = M */
	public static final String JP_TODO_REMINDERTYPE_SendMail = "M";
	/** Broadcast Message = B */
	public static final String JP_TODO_REMINDERTYPE_BroadcastMessage = "B";
	/** Set Reminder Type.
		@param JP_ToDo_ReminderType Reminder Type	  */
	public void setJP_ToDo_ReminderType (String JP_ToDo_ReminderType)
	{

		set_Value (COLUMNNAME_JP_ToDo_ReminderType, JP_ToDo_ReminderType);
	}

	/** Get Reminder Type.
		@return Reminder Type	  */
	public String getJP_ToDo_ReminderType () 
	{
		return (String)get_Value(COLUMNNAME_JP_ToDo_ReminderType);
	}

	public I_JP_ToDo_Team getJP_ToDo_Team() throws RuntimeException
    {
		return (I_JP_ToDo_Team)MTable.get(getCtx(), I_JP_ToDo_Team.Table_Name)
			.getPO(getJP_ToDo_Team_ID(), get_TrxName());	}

	/** Set Team ToDo.
		@param JP_ToDo_Team_ID Team ToDo	  */
	public void setJP_ToDo_Team_ID (int JP_ToDo_Team_ID)
	{
		if (JP_ToDo_Team_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_JP_ToDo_Team_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_JP_ToDo_Team_ID, Integer.valueOf(JP_ToDo_Team_ID));
	}

	/** Get Team ToDo.
		@return Team ToDo	  */
	public int getJP_ToDo_Team_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_JP_ToDo_Team_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set JP_ToDo_Team_Reminder.
		@param JP_ToDo_Team_Reminder_ID JP_ToDo_Team_Reminder	  */
	public void setJP_ToDo_Team_Reminder_ID (int JP_ToDo_Team_Reminder_ID)
	{
		if (JP_ToDo_Team_Reminder_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_JP_ToDo_Team_Reminder_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_JP_ToDo_Team_Reminder_ID, Integer.valueOf(JP_ToDo_Team_Reminder_ID));
	}

	/** Get JP_ToDo_Team_Reminder.
		@return JP_ToDo_Team_Reminder	  */
	public int getJP_ToDo_Team_Reminder_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_JP_ToDo_Team_Reminder_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set JP_ToDo_Team_Reminder_UU.
		@param JP_ToDo_Team_Reminder_UU JP_ToDo_Team_Reminder_UU	  */
	public void setJP_ToDo_Team_Reminder_UU (String JP_ToDo_Team_Reminder_UU)
	{
		set_Value (COLUMNNAME_JP_ToDo_Team_Reminder_UU, JP_ToDo_Team_Reminder_UU);
	}

	/** Get JP_ToDo_Team_Reminder_UU.
		@return JP_ToDo_Team_Reminder_UU	  */
	public String getJP_ToDo_Team_Reminder_UU () 
	{
		return (String)get_Value(COLUMNNAME_JP_ToDo_Team_Reminder_UU);
	}

	/** Set Processed.
		@param Processed 
		The document has been processed
	  */
	public void setProcessed (boolean Processed)
	{
		set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
	}

	/** Get Processed.
		@return The document has been processed
	  */
	public boolean isProcessed () 
	{
		Object oo = get_Value(COLUMNNAME_Processed);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set URL.
		@param URL 
		Full URL address - e.g. http://www.idempiere.org
	  */
	public void setURL (String URL)
	{
		set_Value (COLUMNNAME_URL, URL);
	}

	/** Get URL.
		@return Full URL address - e.g. http://www.idempiere.org
	  */
	public String getURL () 
	{
		return (String)get_Value(COLUMNNAME_URL);
	}
}