X_CM_Container_Trl.java
| Index Score | ||
|---|---|---|
![]() |
![]() |
org.compiere.model |
![]() |
![]() |
Compiere |
View: Reasons, Metrics, Source Code
These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.
/******************************************************************************
* 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_Trl
* @author Jorg Janke (generated)
* @version Release 3.1.0 - $Id$ */
public class X_CM_Container_Trl extends PO
{
/** Standard Constructor
@param ctx context
@param CM_Container_Trl_ID id
@param trxName transaction
*/
public X_CM_Container_Trl (Ctx ctx, int CM_Container_Trl_ID, String trxName)
{
super (ctx, CM_Container_Trl_ID, trxName);
/** if (CM_Container_Trl_ID == 0)
{
setAD_Language (null);
setCM_Container_ID (0);
setIsTranslated (false);
setName (null);
}
*/
}
/** Load Constructor
@param ctx context
@param rs result set
@param trxName transaction
*/
public X_CM_Container_Trl (Ctx ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** Serial Version No */
static final long serialVersionUID = 27495261242789L;
/** Last Updated Timestamp 2008-06-10 15:12:06.0 */
public static final long updatedMS = 1213135926000L;
/** AD_Table_ID=864 */
public static final int Table_ID=864;
/** TableName=CM_Container_Trl */
public static final String Table_Name="CM_Container_Trl";
protected static KeyNamePair Model = new KeyNamePair(Table_ID,"CM_Container_Trl");
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_Trl[").append(get_ID()).append("]");
return sb.toString();
}
/** AD_Language AD_Reference_ID=106 */
public static final int AD_LANGUAGE_AD_Reference_ID=106;
/** Set Language.
@param AD_Language Language for this entity */
public void setAD_Language (String AD_Language)
{
int length = p_info.getFieldLength("AD_Language");
if (AD_Language.length() > length)
{
log.warning("Length > " + length + " - truncated");
AD_Language = AD_Language.substring(0,length);
}
set_ValueNoCheck ("AD_Language", AD_Language);
}
/** Get Language.
@return Language for this entity */
public String getAD_Language()
{
return (String)get_Value("AD_Language");
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair */
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), String.valueOf(getAD_Language()));
}
/** 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_ValueNoCheck ("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 ContainerXML.
@param ContainerXML Autogenerated Container definition as XML Code */
public void setContainerXML (String ContainerXML)
{
int length = p_info.getFieldLength("ContainerXML");
if (ContainerXML != null && ContainerXML.length() > length)
{
log.warning("Length > " + length + " - truncated");
ContainerXML = ContainerXML.substring(0,length);
}
set_Value ("ContainerXML", ContainerXML);
}
/** Get ContainerXML.
@return Autogenerated Container definition as XML Code */
public String getContainerXML()
{
return (String)get_Value("ContainerXML");
}
/** Set Translated.
@param IsTranslated This column is translated */
public void setIsTranslated (boolean IsTranslated)
{
set_Value ("IsTranslated", new Boolean(IsTranslated));
}
/** Get Translated.
@return This column is translated */
public boolean isTranslated()
{
Object oo = get_Value("IsTranslated");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Meta Description.
@param Meta_Description Meta info describing the contents of the page */
public void setMeta_Description (String Meta_Description)
{
int length = p_info.getFieldLength("Meta_Description");
if (Meta_Description != null && Meta_Description.length() > length)
{
log.warning("Length > " + length + " - truncated");
Meta_Description = Meta_Description.substring(0,length);
}
set_Value ("Meta_Description", Meta_Description);
}
/** Get Meta Description.
@return Meta info describing the contents of the page */
public String getMeta_Description()
{
return (String)get_Value("Meta_Description");
}
/** Set Meta Keywords.
@param Meta_Keywords Contains the keywords for the content */
public void setMeta_Keywords (String Meta_Keywords)
{
int length = p_info.getFieldLength("Meta_Keywords");
if (Meta_Keywords != null && Meta_Keywords.length() > length)
{
log.warning("Length > " + length + " - truncated");
Meta_Keywords = Meta_Keywords.substring(0,length);
}
set_Value ("Meta_Keywords", Meta_Keywords);
}
/** Get Meta Keywords.
@return Contains the keywords for the content */
public String getMeta_Keywords()
{
return (String)get_Value("Meta_Keywords");
}
/** Set Name.
@param Name Alphanumeric identifier of the entity */
public void setName (String Name)
{
if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
int length = p_info.getFieldLength("Name");
if (Name.length() > length)
{
log.warning("Length > " + length + " - truncated");
Name = Name.substring(0,length);
}
set_Value ("Name", Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity */
public String getName()
{
return (String)get_Value("Name");
}
/** Set StructureXML.
@param StructureXML Autogenerated Container definition as XML Code */
public void setStructureXML (String StructureXML)
{
int length = p_info.getFieldLength("StructureXML");
if (StructureXML != null && StructureXML.length() > length)
{
log.warning("Length > " + length + " - truncated");
StructureXML = StructureXML.substring(0,length);
}
set_Value ("StructureXML", StructureXML);
}
/** Get StructureXML.
@return Autogenerated Container definition as XML Code */
public String getStructureXML()
{
return (String)get_Value("StructureXML");
}
/** Set Title.
@param Title Title of the Contact */
public void setTitle (String Title)
{
int length = p_info.getFieldLength("Title");
if (Title != null && Title.length() > length)
{
log.warning("Length > " + length + " - truncated");
Title = Title.substring(0,length);
}
set_Value ("Title", Title);
}
/** Get Title.
@return Title of the Contact */
public String getTitle()
{
return (String)get_Value("Title");
}
}
The table below shows all metrics for X_CM_Container_Trl.java.




