1 package # hide from PAUSE
2 DBIx::Class::CDBICompat::AttributeAPI;
5 my ($self, @atts) = @_;
6 return @{$self->{_column_data}}{@atts};
11 sub _attribute_store {
13 my $vals = @_ == 1 ? shift: {@_};
14 my (@cols) = keys %$vals;
15 @{$self->{_column_data}}{@cols} = @{$vals}{@cols};
20 my $vals = @_ == 1 ? shift: {@_};
21 $self->set_column($_, $vals->{$_}) for keys %{$vals};
24 sub _attribute_delete {
25 my ($self, $attr) = @_;
26 delete $self->{_column_data}{$attr};
29 sub _attribute_exists {
30 my ($self, $attr) = @_;
31 exists $self->{_column_data}{$attr};