![]() |
![]()
| ![]() |
![]()
NAMEDBIx::SQLEngine::RecordSet::PKeySet - A RecordSet which holds primary keys SYNOPSISuse DBIx::SQLEngine::RecordSet; $rs = DBIx::SQLEngine::RecordSet->class( 'PKeySet' )->new(@records); DESCRIPTIONProvides additional methods for a RecordSet to store primary keys instead of references to records. This package is INCOMPLETE! Class and IDs
ConversionsEach of the below returns a RecordSet blessed into a particular subclass. Returns the original object if it is already of that subclass, or returns a cloned and converted copy.
# $rs =
DBIx::SQLEngine::RecordSet::Set->new_class_ids(
$class, @ids ); sub new_ids
{
my $self = []; bless $self, $package; $self->init_class_ids( @_ ); return $self; } # $rs->init_ids(
$class, @ids ); sub init_ids
{
@$self = map { $class->fetch_id( $_ ) } @_; } # @records =
$rs->class_ids(); sub class_ids {
### sub raw {
######################################################################## ######################################################################## SEE ALSOSee DBIx::SQLEngine for the overall interface and developer documentation. See DBIx::SQLEngine::Docs::ReadMe for general information about this distribution, including installation and license information.
|