ePages 7.3.0 - DE_EPAGES/Object/API/Table/MoneyCurrencyAttribute.pm

Package DE_EPAGES::Object::API::Table::MoneyCurrencyAttribute

interface for table MoneyCurrencyAttribute

@EXPORT_OK
InsertMoneyCurrencyAttribute
UpdateMoneyCurrencyAttribute
DeleteMoneyCurrencyAttribute
GetAllPKeyMoneyCurrencyAttributes
GetAllInfoMoneyCurrencyAttributes
GetInfoMoneyCurrencyAttribute
ExistsMoneyCurrencyAttribute
GetPKeyMoneyCurrencyAttributesByObjectID
GetInfoMoneyCurrencyAttributesByObjectID
GetPKeyMoneyCurrencyAttributesByAttributeID
GetInfoMoneyCurrencyAttributesByAttributeID
GetPKeyMoneyCurrencyAttributesByCurrencyID
GetInfoMoneyCurrencyAttributesByCurrencyID

Functions

DeleteMoneyCurrencyAttribute
ExistsMoneyCurrencyAttribute
GetAllInfoMoneyCurrencyAttributes
GetAllPKeyMoneyCurrencyAttributes
GetInfoMoneyCurrencyAttribute
GetInfoMoneyCurrencyAttributesByAttributeID
GetInfoMoneyCurrencyAttributesByCurrencyID
GetInfoMoneyCurrencyAttributesByObjectID
GetPKeyMoneyCurrencyAttributesByAttributeID
GetPKeyMoneyCurrencyAttributesByCurrencyID
GetPKeyMoneyCurrencyAttributesByObjectID
InsertMoneyCurrencyAttribute
OnDeleteAttribute
OnDeleteCurrency
OnDeleteObject
UpdateMoneyCurrencyAttribute

DeleteMoneyCurrencyAttribute

Deletes a(n) MoneyCurrencyAttribute.

Syntax
DeleteMoneyCurrencyAttribute($ObjectID, $AttributeID, $CurrencyID);
DeleteMoneyCurrencyAttribute($hMoneyCurrencyAttribute); # if $hMoneyCurrencyAttribute includes ObjectID, AttributeID, CurrencyID
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)

ExistsMoneyCurrencyAttribute

Returns true if the MoneyCurrencyAttribute exists.

Syntax
$exists = ExistsMoneyCurrencyAttribute($ObjectID, $AttributeID, $CurrencyID);
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)
Return
$exists (boolean)
1/0 the MoneyCurrencyAttribute exists (yes/no)

GetAllInfoMoneyCurrencyAttributes

Returns all objects of MoneyCurrencyAttribute.

Syntax
$ahMoneyCurrencyAttributes = GetAllInfoMoneyCurrencyAttributes();
Return
$ahMoneyCurrencyAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • Amount - amount - money

GetAllPKeyMoneyCurrencyAttributes

Returns all MoneyCurrencyAttribute identifiers.

Syntax
$ahMoneyCurrencyAttributeIDs = GetAllPKeyMoneyCurrencyAttributes();
Return
$ahMoneyCurrencyAttributeIDs (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)

GetInfoMoneyCurrencyAttribute

Returns the MoneyCurrencyAttribute by identifier.

Syntax
$hMoneyCurrencyAttribute = GetInfoMoneyCurrencyAttribute($ObjectID, $AttributeID, $CurrencyID);
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)
Return
$hMoneyCurrencyAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • Amount - amount - money

GetInfoMoneyCurrencyAttributesByAttributeID

Returns objects of MoneyCurrencyAttribute by alternate key AttributeID.

Syntax
$ahMoneyCurrencyAttributes = GetInfoMoneyCurrencyAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahMoneyCurrencyAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • Amount - amount - money

GetInfoMoneyCurrencyAttributesByCurrencyID

Returns objects of MoneyCurrencyAttribute by alternate key CurrencyID.

Syntax
$ahMoneyCurrencyAttributes = GetInfoMoneyCurrencyAttributesByCurrencyID($CurrencyID);
Input
$CurrencyID (char(3))
alpha currency code (ISO 4217)
Return
$ahMoneyCurrencyAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • Amount - amount - money

GetInfoMoneyCurrencyAttributesByObjectID

Returns objects of MoneyCurrencyAttribute by primary key element ObjectID, AttributeID.

Syntax
$ahMoneyCurrencyAttributes = GetInfoMoneyCurrencyAttributesByObjectID($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id
$AttributeID (int)
attribute id (optional)
Return
$ahMoneyCurrencyAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • Amount - amount - money

GetPKeyMoneyCurrencyAttributesByAttributeID

Returns primary keys of MoneyCurrencyAttribute by alternate key AttributeID.

Syntax
$ahKeys = GetPKeyMoneyCurrencyAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)

GetPKeyMoneyCurrencyAttributesByCurrencyID

Returns primary keys of MoneyCurrencyAttribute by alternate key CurrencyID.

Syntax
$ahKeys = GetPKeyMoneyCurrencyAttributesByCurrencyID($CurrencyID);
Input
$CurrencyID (char(3))
alpha currency code (ISO 4217)
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)

GetPKeyMoneyCurrencyAttributesByObjectID

Returns primary keys of MoneyCurrencyAttribute by primary key element ObjectID, AttributeID.

Syntax
$ahKeys = GetPKeyMoneyCurrencyAttributesByObjectID($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id
$AttributeID (int)
attribute id (optional)
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)

InsertMoneyCurrencyAttribute

Creates an entry of MoneyCurrencyAttribute.

Syntax
InsertMoneyCurrencyAttribute($hMoneyCurrencyAttribute);
Input
$hMoneyCurrencyAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • Amount - amount - money

OnDeleteAttribute

Deletes MoneyCurrencyAttribute of this model when a(n) Attribute is deleted.

Syntax
OnDeleteAttribute($hParams);
Input
$hParams (ref.hash.*)
primary key of object Attribute, key is
  • AttributeID

OnDeleteCurrency

Deletes MoneyCurrencyAttribute of this model when a(n) Currency is deleted.

Syntax
OnDeleteCurrency($hParams);
Input
$hParams (ref.hash.*)
primary key of object Currency, key is
  • CurrencyID

OnDeleteObject

Deletes MoneyCurrencyAttribute of this model when a(n) Object is deleted.

Syntax
OnDeleteObject($hParams);
Input
$hParams (ref.hash.*)
primary key of object Object, key is
  • ObjectID

UpdateMoneyCurrencyAttribute

Updates a(n) MoneyCurrencyAttribute if any element was changed.

Syntax
UpdateMoneyCurrencyAttribute($ObjectID, $AttributeID, $CurrencyID, $hMoneyCurrencyAttribute);
UpdateMoneyCurrencyAttribute($hMoneyCurrencyAttribute); # if $hMoneyCurrencyAttribute includes ObjectID, AttributeID, CurrencyID
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)
$hMoneyCurrencyAttribute (reference to hash)
with following keys:
  • Amount - amount - money