| hu.netmind.persistence.DynamicObject
All known Subclasses: hu.netmind.persistence.DynamicObjectImpl, hu.netmind.persistence.DynamicObjectWithClass, hu.netmind.persistence.DynamicObjectTypes, hu.netmind.persistence.DynamicObjectCase, hu.netmind.persistence.DynamicObjectWithStaticAttributes, hu.netmind.persistence.ManySuper,
DynamicObject | public interface DynamicObject extends Map(Code) | | All objects implementing this interface are considered "dynamic", which
means they can define their own attributes,attribute types and the
table their "class" dynamically.
Note however, that when you change the set of attributes for this kind of
objects, their representation in the database will change. All attributes
in dynamic objects are held in the same table (no separate value tables), so
if an attribute becomes deleted, it will resolve in a table column to be
dropped. The data dropped will not be available, even through historical
selects (because the table schema changed).
Dynamic objects can be in their own namespace, meaning they can have
each it's own table, so caller may define different types dynamically
with dynamic objects.
Note however, that dynamic objects can't have super- or sub-classes.
author: Brautigam Robert version: Revision: $Revision$ |
Method Summary | |
String | getPersistenceDynamicName() Get the dynamic name of the class. | void | setPersistenceDynamicName(String dynamicName) This method is called by the library during a select from database.
During the unmarshalling of the object, the library will set the
dynamic name to the object,
Parameters: cl - The class the name is queried for. Parameters: dynamicName - The dynamic name of the class as given whenit was saved. |
getPersistenceDynamicName | String getPersistenceDynamicName()(Code) | | Get the dynamic name of the class. If this is not null and non-empty,
the library will create this name as it were a classname in the
package designated by the real class' name. After saving such a
class, the caller will be able to select for these kind of classes
with the name specified inside find statements.
The dynamic name of class. Any string which is null, ordoes not start with a letter is treated as an empty string, in whichcase the class' real name will be used. |
setPersistenceDynamicName | void setPersistenceDynamicName(String dynamicName)(Code) | | This method is called by the library during a select from database.
During the unmarshalling of the object, the library will set the
dynamic name to the object,
Parameters: cl - The class the name is queried for. Parameters: dynamicName - The dynamic name of the class as given whenit was saved. If no (empty) dynamic name was given, it will becalled with an empty string. |
|
|