Package de.mid.innovator.srv2api.icw2er
Class ERAttributeHelper
java.lang.Object
de.mid.innovator.srv2api.icw2er.ERAttributeHelper
An
ERAttribute is a property of an EREntity.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ERAttributecreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) Create a new Entity Attribute with template and container.static ERAttributecreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) Create a new Entity Attribute with stereotype and container.static ERAttributecreateByUnique(SrvContext srvCtx, ELContainerAble ohContainer, IMProperty ohReferencedProperty) Creates a foreign key attribute for a given unique key attribute.
-
Method Details
-
createByUnique
public static ERAttribute createByUnique(SrvContext srvCtx, ELContainerAble ohContainer, IMProperty ohReferencedProperty) throws InoNetException, SrvErrorException Creates a foreign key attribute for a given unique key attribute. If possible, name and stereotype will be derived from the unique key attribute.- Parameters:
srvCtx- The context of the related innovator server.ohContainer- Container of the new elementohReferencedProperty- Referenced Property (Primary) as Copy Source- Throws:
InoNetExceptionSrvErrorException
-
create
public static ERAttribute create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) throws InoNetException, SrvErrorException Create a new Entity Attribute with stereotype and container.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohContainer- Container for the new element- Throws:
InoNetExceptionSrvErrorException
-
create
public static ERAttribute create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) throws InoNetException, SrvErrorException Create a new Entity Attribute with template and container.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohContainer- Container for the new element- Throws:
InoNetExceptionSrvErrorException
-