Adempiere 3.5.2a

org.compiere.model
Class MElementValue

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_C_ElementValue
          extended by org.compiere.model.MElementValue
All Implemented Interfaces:
Serializable, Comparator, I_C_ElementValue, I_Persistent, Evaluatee

public class MElementValue
extends X_C_ElementValue

Natural Account

Version:
$Id: MElementValue.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.X_C_ElementValue
ACCOUNTSIGN_AD_Reference_ID, ACCOUNTSIGN_Credit, ACCOUNTSIGN_Debit, ACCOUNTSIGN_Natural, ACCOUNTTYPE_AD_Reference_ID, ACCOUNTTYPE_Asset, ACCOUNTTYPE_Expense, ACCOUNTTYPE_Liability, ACCOUNTTYPE_Memo, ACCOUNTTYPE_OwnerSEquity, ACCOUNTTYPE_Revenue
 
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Fields inherited from interface org.compiere.model.I_C_ElementValue
accessLevel, COLUMNNAME_AccountSign, COLUMNNAME_AccountType, COLUMNNAME_C_BankAccount_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_Element_ID, COLUMNNAME_C_ElementValue_ID, COLUMNNAME_Description, COLUMNNAME_IsBankAccount, COLUMNNAME_IsDocControlled, COLUMNNAME_IsForeignCurrency, COLUMNNAME_IsSummary, COLUMNNAME_Name, COLUMNNAME_PostActual, COLUMNNAME_PostBudget, COLUMNNAME_PostEncumbrance, COLUMNNAME_PostStatistical, COLUMNNAME_ValidFrom, COLUMNNAME_ValidTo, COLUMNNAME_Value, Model, Table_ID, Table_Name
 
Constructor Summary
MElementValue(Properties ctx, int C_ElementValue_ID, String trxName)
          Standard Constructor
MElementValue(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
MElementValue(Properties ctx, String Value, String Name, String Description, String AccountType, String AccountSign, boolean IsDocControlled, boolean IsSummary, String trxName)
          Full Constructor
MElementValue(X_I_ElementValue imp)
          Import Constructor
 
Method Summary
protected  boolean afterDelete(boolean success)
          After Delete
protected  boolean afterSave(boolean newRecord, boolean success)
          After Save
protected  boolean beforeSave(boolean newRecord)
          Before Save
 boolean isActiva()
          Is this an Activa Account
 boolean isBalanceSheet()
          Is this a Balance Sheet Account
 boolean isPassiva()
          Is this a Passiva Account
 void set(X_I_ElementValue imp)
          Set/Update Settings from import
 String toString()
          User String Representation
 String toStringX()
          Extended String Representation
 
Methods inherited from class org.compiere.model.X_C_ElementValue
get_AccessLevel, getAccountSign, getAccountType, getC_BankAccount_ID, getC_BankAccount, getC_Currency_ID, getC_Currency, getC_Element_ID, getC_Element, getC_ElementValue_ID, getDescription, getKeyNamePair, getName, getValidFrom, getValidTo, getValue, initPO, isBankAccount, isDocControlled, isForeignCurrency, isPostActual, isPostBudget, isPostEncumbrance, isPostStatistical, isSummary, setAccountSign, setAccountType, setC_BankAccount_ID, setC_Currency_ID, setC_Element_ID, setC_ElementValue_ID, setDescription, setIsBankAccount, setIsDocControlled, setIsForeignCurrency, setIsSummary, setName, setPostActual, setPostBudget, setPostEncumbrance, setPostStatistical, setValidFrom, setValidTo, setValue
 
Methods inherited from class org.compiere.model.PO
beforeDelete, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compiere.model.I_Persistent
save
 

Constructor Detail

MElementValue

public MElementValue(Properties ctx,
                     int C_ElementValue_ID,
                     String trxName)
Standard Constructor

Parameters:
ctx - context
C_ElementValue_ID - ID or 0 for new
trxName - transaction

MElementValue

public MElementValue(Properties ctx,
                     ResultSet rs,
                     String trxName)
Load Constructor

Parameters:
ctx - context
rs - result set
trxName - transaction

MElementValue

public MElementValue(Properties ctx,
                     String Value,
                     String Name,
                     String Description,
                     String AccountType,
                     String AccountSign,
                     boolean IsDocControlled,
                     boolean IsSummary,
                     String trxName)
Full Constructor

Parameters:
ctx - context
Value - value
Name - name
Description - description
AccountType - account type
AccountSign - account sign
IsDocControlled - doc controlled
IsSummary - summary
trxName - transaction

MElementValue

public MElementValue(X_I_ElementValue imp)
Import Constructor

Parameters:
imp - import
Method Detail

set

public void set(X_I_ElementValue imp)
Set/Update Settings from import

Parameters:
imp - import

isBalanceSheet

public boolean isBalanceSheet()
Is this a Balance Sheet Account

Returns:
boolean

isActiva

public boolean isActiva()
Is this an Activa Account

Returns:
boolean

isPassiva

public boolean isPassiva()
Is this a Passiva Account

Returns:
boolean

toString

public String toString()
User String Representation

Overrides:
toString in class X_C_ElementValue
Returns:
info value - name

toStringX

public String toStringX()
Extended String Representation

Returns:
info

beforeSave

protected boolean beforeSave(boolean newRecord)
Before Save

Overrides:
beforeSave in class PO
Parameters:
newRecord -
Returns:
true if ir can be saved

afterSave

protected boolean afterSave(boolean newRecord,
                            boolean success)
After Save

Overrides:
afterSave in class PO
Parameters:
newRecord - new
success - success
Returns:
success

afterDelete

protected boolean afterDelete(boolean success)
After Delete

Overrides:
afterDelete in class PO
Parameters:
success -
Returns:
deleted

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.