NAME
Data::ObjectDriver::BaseObject - base class for modeled objects
SYNOPSIS
See synopsis in Data::ObjectDriver.
DESCRIPTION
Data::ObjectDriver::BaseObject provides services to data objects modeled with the Data::ObjectDriver object relational mapper.
USAGE
Class->install_properties({ ... })
Class->properties
Class->driver
Returns the database driver for this class, invoking the class's get_driver function if necessary.
Class->get_driver($driver)
Sets the function used to find the object driver for Class objects.
$obj->primary_key
Returns the values of the primary key fields of $obj.
Class->primary_key_tuple
Returns the names of the primary key fields for objects of class Class.
$obj->has_primary_key
$obj->clone
Returns a new object of the same class as $obj containing the same data, except for primary keys, which are set to undef
.
$obj->clone_all
Returns a new object of the same class as $obj containing the same data, including all key fields.