You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually a root object container is required that contains all of the collection objects at the root of the object hierarchy. Typically, access is required to root object so that object references can be created or returned, because a relationship exists between two objects. It would be ideal if the root object (which contains all of the collection objects) can be accessed from any object that is utilising the library (i.e. inheriting from DatabaseObject or DatabaseObjects). This would avoid having to pass around the root object in each constructor or having to workaround the issue by creating new instances of collections (instead of managing one collection instance contained in the root object).
The text was updated successfully, but these errors were encountered:
the root object should contain a reference to a Database object.
it should NOT inherit from Database because that will expose a number of public methods/properties - in addition it is conceptually not really representing a database, it is representing a set of collection objects.
the root object should be accessible automatically from any class inheriting from DatabaseObject or DatabaseObjects
the root object should not be static / shared as this would:
be the most future proof method
allow for the object to be passed around the library (if it is static / shared this will be impossible)
allow for the creation of an abstract / mustinherit class that can be appropriately structured - and contain the Database object - as indicated above.
Usually a root object container is required that contains all of the collection objects at the root of the object hierarchy. Typically, access is required to root object so that object references can be created or returned, because a relationship exists between two objects. It would be ideal if the root object (which contains all of the collection objects) can be accessed from any object that is utilising the library (i.e. inheriting from DatabaseObject or DatabaseObjects). This would avoid having to pass around the root object in each constructor or having to workaround the issue by creating new instances of collections (instead of managing one collection instance contained in the root object).
The text was updated successfully, but these errors were encountered: