• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/CPANInternal-140/Class-DBI/lib/Class/

Lines Matching +refs:double +refs:column

373 # normalized column name.
411 my ($class, $column) = @_;
412 return $column;
416 my ($class, $column) = @_;
417 return $class->accessor_name($column);
464 || $class->_croak("$k is not a column of $class");
701 $self->_croak("Need hash-ref to edit copied column values")
767 my ($self, $column) = @_;
768 return $self->find_column($column)->placeholder;
828 # the column (and associated) columns from the database, using the _flesh()
869 while (my ($column, $value) = each %$column_values) {
870 my $col = $self->find_column($column) or die "No such column: $column\n";
873 # $self->SUPER::set($column, $value);
875 eval { $self->call_trigger("after_set_$column") }; # eg inflate
877 $self->_attribute_delete($column);
878 return $self->_croak("after_set_$column trigger error: $@", err => $@);
895 # Given a hash ref of column names and proposed new values,
902 # Given a hash ref of column names and proposed new values
909 foreach my $column (keys %$column_values) {
911 $self->call_trigger("before_set_$column", $column_values->{$column},
914 push @errors, $column => $@ if $@;
956 or return $class->_croak("constraint_column needs a valid column");
978 my $column = $class->find_column(+shift)
979 or return $class->_croak("Constraint $name needs a valid column");
985 $column->is_constrained(1);
987 "before_set_$column" => sub {
989 $code->($value, $self, $column, $column_values)
991 "$class $column fails '$name' constraint with '$value'");
1081 my $column = $class->find_column($col)
1083 || $class->_croak("$col is not a column of $class");
1084 push @cols, $column;
1085 push @vals, $class->_deflated_column($column, $val);
1539 a single column primary key. For tables with multi-column primary keys
1565 If the table has a single primary key column and that column value
1577 For tables with multi-column primary keys you need to supply all
1631 database. For tables with a single column primary key a single
1721 The construct() method creates a new empty object, loads in the column
1733 sets any supplied column values and calls create() to insert a new
1736 For tables with a single column primary key, copy() can be called
1777 before_set_$column (also used by add_constraint)
1778 after_set_$column (also used for inflation and by has_a)
1796 __PACKAGE__->add_constraint('name', column => \&check_sub);
1819 on a column. The constraint on a column is triggered whenever an object
1820 is created and whenever the value in that column is being changed.
1827 - The name of the column
1829 - A hash ref of all new column values being assigned
1837 Note 1: Constraints are implemented using before_set_$column triggers.
1843 checked for column names included in the parameters to create().
1851 Simple anonymous constraints can also be added to a column using the
1866 a reference to a hash containing the column names and the new values
1870 Currently Class::DBI does not offer any per-column mechanism here.
1883 reference to a hash containing the column names and the new values which
1890 The default method calls the before_set_$column trigger for each column
1893 is a reference to a hash which holds the column name and error text for
1954 accessor methods for every column in your subclass. It also overrides
1957 store a list of values in a column, set() takes a hash of column =>
1969 column values. The extra accessor methods automatically generated for
1970 each column of your table are simple wrappers that call these get()
1975 C<before_set_$column> trigger is invoked by validate_column_values(),
1977 C<after_set_$column> trigger is invoked after the new value has been
1980 It is possible for an object to not have all its column data in memory
1981 (due to lazy inflation). If the get() method is called for such a column
1990 accessor_name() method, which will convert a column name to a method name.
1993 to each column in the 'customer' table, so that you had the columns
1999 my ($class, $column) = @_;
2000 $column =~ s/^customer//;
2001 return $column;
2012 my ($class, $column) = @_;
2013 return "set_$column";
2115 # discard the md5_hash column if any field starting with 'foo'
2121 Take care to not delete a primary key column unless you know what
2135 Currently this simply discards the column values from the object.
2147 after_set_$column trigger)
2155 if this method is used on a table with a multi-column primary key.
2170 normalized column names (returned by find_column()), and the values are
2213 column, and a false value otherwise.
2235 You can also specify the column(s) to be used for stringification via
2236 the special 'Stringify' column group. So, for example, if you're using
2291 key, i.e. we declare that the value we have stored in the column is
2320 *NOTE* You should not attempt to make your primary key column inflate
2362 to us via a column named after the moniker() of our class. If this is
2364 declaration stating which column of the foreign class references us.
2380 done by passing a hash ref containing a 'order_by' value of the column by
2416 to add a 'liner_notes' column to your main CD table even though there
2465 We have a multi-column primary key, with each column pointing to another class.
2533 you need to be careful to double any "wildcard" % signs in your queries).
2642 the best approach is to declare 'cds' to be a TEMP column. (See
2689 =item - maximum_value_of($column)
2691 =item - minimum_value_of($column)
2741 If 'All' is given but not 'Primary' it will assume the first column in
2749 The 'Primary' column is always part of your 'Essential' group and
2754 should only be used for tables that have a single primary key column.
2762 you can declare them as part of a column group of 'TEMP'.
2766 Class->find_column($column);
2767 $obj->find_column($column);
2770 method will return you the object for the given column, if it exists.
2771 This is most useful either in a boolean context to discover if the column
2772 exists, or to 'normalize' a user-entered column name to an actual Column.
2929 Altering your primary key column currently causes Bad Things to happen.
2944 are some issues with multi-case column/table names. Beyond that lies