public interface IThingFactory
IThing
,
IThingID
,
IThingService
,
IThingIDService
Modifier and Type | Method and Description |
---|---|
IThingID |
create(int xtypeID,
IThingID parentID,
IThingID ownerID,
boolean isProtected,
IMetaContext mc)
Created a new thing in the DB based on the xtype.
|
IThingID |
createForMigration(int xtypeID,
Integer thingID,
IThingID parentID,
IThingID ownerID,
boolean isProtected,
IMetaContext mc)
Created a new thing in the DB based on the xtype, and the old thingID.
|
IThing |
instantiateThing(IThingID thingID)
Instantiate a thing based on ID.
|
void |
loadThings(IXType xtype)
This is an optimization method that allows if neccessary bulk-load data for all things
of this type that belong to the specified container.
|
IThingID create(int xtypeID, IThingID parentID, IThingID ownerID, boolean isProtected, IMetaContext mc) throws MetaException
IThingService.createThing(int, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
xtypeID
- xtype of new objectparentID
- the ID of the container the thing should be created inownerID
- the ID of the owner of the created thingisProtected
- true if creating 'eternal' protected object, internal use onlymc
- MetaException
IThingID createForMigration(int xtypeID, Integer thingID, IThingID parentID, IThingID ownerID, boolean isProtected, IMetaContext mc) throws MetaException
IThingService.createThing(int, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
xtypeID
- xtype of new objectparentID
- the ID of the container the thing should be created inownerID
- the ID of the owner of the created thingisProtected
- true if creating 'eternal' protected object, internal use onlymc
- MetaException
IThing instantiateThing(IThingID thingID)
IThingID.getThing()
You must override this method in DBO's to create the proper item.
ex:
Form form = (Form) newThing(Form.class.getName());
form.setThingID(thingID);
return form;thingID
- ID of the thing to instantiatevoid loadThings(IXType xtype) throws MetaException
xtype
- MetaException