예제 #1
0
        /**
	     * 	Get BankAccount from Cache
	     *	@param ctx context
	     *	@param C_BankAccount_ID id
	     *	@return MBankAccount
	     */
        public static MBankAccount Get(Ctx ctx, int C_BankAccount_ID)
        {
            int key = C_BankAccount_ID;
            MBankAccount retValue = (MBankAccount)_cache[key];
            if (retValue != null)
                return retValue;
            retValue = new MBankAccount(ctx, C_BankAccount_ID, null);
            if (retValue.Get_ID() != 0)
                _cache.Add(key, retValue);
            return retValue;
        }