Patent attributes
The invention controls the persistence of server component objects during a transaction, thereby minimizing the number of times that a program accesses a database. The invention also minimizes the number of operations needed. The invention caches the database operations required to persist server component objects until a client object program commits the transaction or until the program needs to access the server component objects. The invention comprises an improved container program that creates server component objects, associates each server component object with a transaction, maintains the server component objects in a cache, filters out unnecessary database operations and then flushes the cache at the appropriate time so that a server component object is persisted only when a client program commits an associated transaction or another object attempts to access the server component object.