← Back to team overview

openstack team mailing list archive

Re: using objects returned from DB layer

 

On Dec 15, 2011, at 10:54 AM, Johannes Erdfelt wrote:

What kinds of things?

I'm just trying to better understand what is object-oriented about the
data returned from a database? What methods would we want to use?

JE

Any direct access to the data within a record should be encapsulated within the model object.

For example, changing an instance's progress should be a method on Instance, not a method buried in vmops.

~ Aaron

Follow ups

References