On 4/19/07, Jeffrey Horn <[EMAIL PROTECTED]> wrote: > Is there a place in an RDBO that I can use to stash this sort of information > that isn't supposed to get sent to the db on a save? How could I make such > a scratchpad space myself?
There's no official place, but as long as you don't squish any existing data you don't have to worry about your data being sent to the db. A few suggestions for safe places to store stuff: * Use key names with a unique prefix. $self->{$unique_prefix . 'whatever'} = ...; * Store everything as a nested hash under a single unique key. $self->{$unique_key}{'whatever'} = ...; * Use an inside-out object approach. $My::Data{object_id($self)}{'whatever'} = ... As for choosing a unique prefix and/or key, reverse-dns names are the safest bet (e.g., "com.mycompany.rdbo"). See some previous discussion here: http://www.mail-archive.com/rose-db-object@lists.sourceforge.net/msg01596.html -John ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object