ePages 6.10 - DE_EPAGES/Object/API/Table/FloatAttribute.pm

Package DE_EPAGES::Object::API::Table::FloatAttribute

interface for table FloatAttribute

@EXPORT_OK
InsertFloatAttribute
UpdateFloatAttribute
DeleteFloatAttribute
GetAllPKeyFloatAttributes
GetAllInfoFloatAttributes
GetInfoFloatAttribute
ExistsFloatAttribute
GetPKeyFloatAttributesByObjectID
GetInfoFloatAttributesByObjectID
GetPKeyFloatAttributesByAttributeID
GetInfoFloatAttributesByAttributeID

Functions

DeleteFloatAttribute
ExistsFloatAttribute
GetAllInfoFloatAttributes
GetAllPKeyFloatAttributes
GetInfoFloatAttribute
GetInfoFloatAttributesByAttributeID
GetInfoFloatAttributesByObjectID
GetPKeyFloatAttributesByAttributeID
GetPKeyFloatAttributesByObjectID
InsertFloatAttribute
OnDeleteAttribute
OnDeleteObject
UpdateFloatAttribute

DeleteFloatAttribute

Deletes a(n) FloatAttribute.

Syntax
DeleteFloatAttribute($ObjectID, $AttributeID);
DeleteFloatAttribute($hFloatAttribute); # if $hFloatAttribute includes ObjectID, AttributeID
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)

ExistsFloatAttribute

Returns true if the FloatAttribute exists.

Syntax
$exists = ExistsFloatAttribute($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id
$AttributeID (int)
attribute id
Return
$exists (boolean)
1/0 the FloatAttribute exists (yes/no)

GetAllInfoFloatAttributes

Returns all objects of FloatAttribute.

Syntax
$ahFloatAttributes = GetAllInfoFloatAttributes();
Return
$ahFloatAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - float value - float

GetAllPKeyFloatAttributes

Returns all FloatAttribute identifiers.

Syntax
$ahFloatAttributeIDs = GetAllPKeyFloatAttributes();
Return
$ahFloatAttributeIDs (reference to array of hashes)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int

GetInfoFloatAttribute

Returns the FloatAttribute by identifier.

Syntax
$hFloatAttribute = GetInfoFloatAttribute($ObjectID, $AttributeID);
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
Return
$hFloatAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - float value - float

GetInfoFloatAttributesByAttributeID

Returns objects of FloatAttribute by alternate key AttributeID.

Syntax
$ahFloatAttributes = GetInfoFloatAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahFloatAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - float value - float

GetInfoFloatAttributesByObjectID

Returns objects of FloatAttribute by primary key element ObjectID.

Syntax
$ahFloatAttributes = GetInfoFloatAttributesByObjectID($ObjectID);
Input
$ObjectID (int)
object id
Return
$ahFloatAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - float value - float

GetPKeyFloatAttributesByAttributeID

Returns primary keys of FloatAttribute by alternate key AttributeID.

Syntax
$ahKeys = GetPKeyFloatAttributesByAttributeID($AttributeID);
Input
$AttributeID (int)
attribute id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int

GetPKeyFloatAttributesByObjectID

Returns primary keys of FloatAttribute by primary key element ObjectID.

Syntax
$ahKeys = GetPKeyFloatAttributesByObjectID($ObjectID);
Input
$ObjectID (int)
object id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ObjectID - object id - int
  • AttributeID - attribute id - int

InsertFloatAttribute

Creates an entry of FloatAttribute.

Syntax
InsertFloatAttribute($hFloatAttribute);
Input
$hFloatAttribute (reference to hash)
with following keys:
  • ObjectID - object id (part of primary key)- int
  • AttributeID - attribute id (part of primary key)- int
  • Value - float value - float

OnDeleteAttribute

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

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

OnDeleteObject

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

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

UpdateFloatAttribute

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

Syntax
UpdateFloatAttribute($ObjectID, $AttributeID, $hFloatAttribute);
UpdateFloatAttribute($hFloatAttribute); # if $hFloatAttribute includes ObjectID, AttributeID
Input
$ObjectID (int)
object id (part of primary key)
$AttributeID (int)
attribute id (part of primary key)
$hFloatAttribute (reference to hash)
with following keys:
  • Value - float value - float