ePages 6.17.17 - DE_EPAGES/Object/API/Table/DirectJSONAttribute.pm

Package DE_EPAGES::Object::API::Table::DirectJSONAttribute

interface for table DirectJSONAttribute

@EXPORT_OK
InsertDirectJSONAttribute
UpdateDirectJSONAttribute
DeleteDirectJSONAttribute
GetAllPKeyDirectJSONAttributes
GetAllInfoDirectJSONAttributes
GetInfoDirectJSONAttribute
ExistsDirectJSONAttribute

Functions

DeleteDirectJSONAttribute
ExistsDirectJSONAttribute
GetAllInfoDirectJSONAttributes
GetAllPKeyDirectJSONAttributes
GetInfoDirectJSONAttribute
InsertDirectJSONAttribute
OnDeleteObject
UpdateDirectJSONAttribute

DeleteDirectJSONAttribute

Deletes a(n) DirectJSONAttribute.

Syntax
DeleteDirectJSONAttribute($ObjectID);
DeleteDirectJSONAttribute($hDirectJSONAttribute); # if $hDirectJSONAttribute includes ObjectID
Input
$ObjectID (int)
object id (primary key)

ExistsDirectJSONAttribute

Returns true if the DirectJSONAttribute exists.

Syntax
$exists = ExistsDirectJSONAttribute($ObjectID);
Input
$ObjectID (int)
object id (primary key)
Return
$exists (boolean)
1/0 the DirectJSONAttribute exists (yes/no)

GetAllInfoDirectJSONAttributes

Returns all objects of DirectJSONAttribute.

Syntax
$ahDirectJSONAttributes = GetAllInfoDirectJSONAttributes();
Return
$ahDirectJSONAttributes (reference to array of hashes)
with following keys:
  • ObjectID - object id (primary key)- int
  • Value - JSON formatted value - text

GetAllPKeyDirectJSONAttributes

Returns all DirectJSONAttribute identifiers.

Syntax
$aDirectJSONAttributeIDs = GetAllPKeyDirectJSONAttributes();
Return
$aDirectJSONAttributeIDs (reference to array of int)
object id

GetInfoDirectJSONAttribute

Returns the DirectJSONAttribute by identifier.

Syntax
$hDirectJSONAttribute = GetInfoDirectJSONAttribute($ObjectID);
Input
$ObjectID (int)
object id (primary key)
Return
$hDirectJSONAttribute (reference to hash)
with following keys:
  • ObjectID - object id (primary key)- int
  • Value - JSON formatted value - text

InsertDirectJSONAttribute

Creates an entry of DirectJSONAttribute.

Syntax
InsertDirectJSONAttribute($hDirectJSONAttribute);
Input
$hDirectJSONAttribute (reference to hash)
with following keys:
  • ObjectID - object id (primary key)- int
  • Value - JSON formatted value - text

OnDeleteObject

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

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

UpdateDirectJSONAttribute

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

Syntax
UpdateDirectJSONAttribute($ObjectID, $hDirectJSONAttribute);
UpdateDirectJSONAttribute($hDirectJSONAttribute); # if $hDirectJSONAttribute includes ObjectID
Input
$ObjectID (int)
object id (primary key)
$hDirectJSONAttribute (reference to hash)
with following keys:
  • Value - JSON formatted value - text