/******************************************************************************
 * Product: Compiere ERP & CRM Smart Business Solution                        *
 * Copyright (C) 1999-2007 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., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA      *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
package org.compiere.model;

/** Generated Model - DO NOT CHANGE */
import java.sql.*;
import java.math.*;
import org.compiere.framework.*;
import org.compiere.util.*;
/** Generated Model for CM_Container_URL
 *  @author Jorg Janke (generated) 
 *  @version Release 3.0.0 - $Id: GenerateModel.java,v 1.1 2008/01/16 07:34:32 jrmt Exp $ */
public class X_CM_Container_URL extends PO
{
/** Standard Constructor
@param ctx context
@param CM_Container_URL_ID id
@param trxName transaction
*/
public X_CM_Container_URL (Ctx ctx, int CM_Container_URL_ID, String trxName)
{
super (ctx, CM_Container_URL_ID, trxName);
/** if (CM_Container_URL_ID == 0)
{
setCM_Container_ID (0);
setCM_Container_URL_ID (0);
setChecked (new Timestamp(System.currentTimeMillis()));
setLast_Result (null);
setStatus (null);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_CM_Container_URL (Ctx ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** Serial Version No */
static final long serialVersionUID = 27428739263789L;
/** Last Updated Timestamp 2006-05-03 08:52:27.0 */
public static final long updatedMS = 1146613947000L;
/** AD_Table_ID=865 */
public static final int Table_ID=865;

/** TableName=CM_Container_URL */
public static final String Table_Name="CM_Container_URL";

protected static KeyNamePair Model = new KeyNamePair(865,"CM_Container_URL");

protected BigDecimal accessLevel = new BigDecimal(6);
/** AccessLevel
@return 6 - System - Client 
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected POInfo initPO (Ctx ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public String toString()
{
StringBuffer sb = new StringBuffer ("X_CM_Container_URL[").append(get_ID()).append("]");
return sb.toString();
}
/** Set Web Container.
@param CM_Container_ID Web Container contains content like images, text etc. */
public void setCM_Container_ID (int CM_Container_ID)
{
if (CM_Container_ID < 1) throw new IllegalArgumentException ("CM_Container_ID is mandatory.");
set_Value ("CM_Container_ID", new Integer(CM_Container_ID));
}
/** Get Web Container.
@return Web Container contains content like images, text etc. */
public int getCM_Container_ID() 
{
Integer ii = (Integer)get_Value("CM_Container_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Container URL.
@param CM_Container_URL_ID Contains info on used URLs */
public void setCM_Container_URL_ID (int CM_Container_URL_ID)
{
if (CM_Container_URL_ID < 1) throw new IllegalArgumentException ("CM_Container_URL_ID is mandatory.");
set_ValueNoCheck ("CM_Container_URL_ID", new Integer(CM_Container_URL_ID));
}
/** Get Container URL.
@return Contains info on used URLs */
public int getCM_Container_URL_ID() 
{
Integer ii = (Integer)get_Value("CM_Container_URL_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Last Checked.
@param Checked Info when we did the latest check */
public void setChecked (Timestamp Checked)
{
if (Checked == null) throw new IllegalArgumentException ("Checked is mandatory.");
set_Value ("Checked", Checked);
}
/** Get Last Checked.
@return Info when we did the latest check */
public Timestamp getChecked() 
{
return (Timestamp)get_Value("Checked");
}
/** Set Last Result.
@param Last_Result Contains data on the last check result */
public void setLast_Result (String Last_Result)
{
if (Last_Result == null) throw new IllegalArgumentException ("Last_Result is mandatory.");
if (Last_Result.length() > 2000)
{
log.warning("Length > 2000 - truncated");
Last_Result = Last_Result.substring(0,2000);
}
set_Value ("Last_Result", Last_Result);
}
/** Get Last Result.
@return Contains data on the last check result */
public String getLast_Result() 
{
return (String)get_Value("Last_Result");
}
/** Set Status.
@param Status Status of the currently running check */
public void setStatus (String Status)
{
if (Status == null) throw new IllegalArgumentException ("Status is mandatory.");
if (Status.length() > 2)
{
log.warning("Length > 2 - truncated");
Status = Status.substring(0,2);
}
set_Value ("Status", Status);
}
/** Get Status.
@return Status of the currently running check */
public String getStatus() 
{
return (String)get_Value("Status");
}
}
