public interface IModel extends IUniquelyNamed, Serializable
This model reflects what was designed in the workbench.
Modifier and Type | Field and Description |
---|---|
static String |
MODEL_PREFIX |
SEP
Modifier and Type | Method and Description |
---|---|
IApplication |
getApplication(String pApplicationName)
Return the
IApplication for the given name if exists |
List<IApplication> |
getApplications()
Return the list of IApplication for this model (sorted by application
name)
|
List<IEntity> |
getBaseEntities()
Returns the list of base entities in this model ordered by
IEntity.getName() |
ITranslationBundle |
getBaseTranslationBundle() |
IBusinessObject |
getBusinessObject(String pBOName)
Return the Business Object gor the given name or throws
NoSuchBusinessObjectException if there is no BO with such name. |
List<IBusinessObject> |
getBusinessObjects()
Return the list of IBusinessObject for this model ordered by BO names
|
IComplexType |
getComplexType(String pTypeName) |
List<IComplexType> |
getComplexTypes() |
List<IEntity> |
getEntities()
Returns the list of entities managed in this model ordered by
IEntity.getName() |
IEntity |
getEntity(String pEntityName)
Returns the
IEntity with the given name if it exists or throws
NoSuchEntityException . |
IModelLabelProvider |
getLabelProvider()
Obtain the label provider for IModel objects.
|
ILov |
getLov(String pName)
Returns the
ILov with the given name or throws a
NoSuchLovException |
List<ILov> |
getLovs()
Returns the list of
ILov defined in this model ordered by
ILov.getName() |
List<IModelDiagram> |
getModelDiagrams()
Return the list of model diagrams ordered by
IModelDiagram.getName() |
IModelID |
getModelID() |
IModelJob |
getModelJob(String pName) |
List<IModelJob> |
getModelJobs() |
IModelPrivGrant |
getModelPrivGrant(String privGrantName) |
List<IModelPrivGrant> |
getModelPrivGrants() |
String |
getName() |
List<ITranslationBundle> |
getNotBaseTranslationBundles() |
IPublisher |
getPublisher(String pCode)
Returns the
IPublisher with the given code if it exists or throws
a NoSuchPublisherException |
List<IPublisher> |
getPublishers()
Returns the list of
IPublisher managed by this model ordered by
IPublisher.getCode() Code |
IReference |
getReference(String pReferenceName)
Returns the
IReference with the given name if it exists or throws
a NoSuchReferenceException |
List<IReference> |
getReferences()
Returns the list of references managed in this model ordered by
IReference.getName() . |
IRetentionPolicy |
getRetentionPolicy() |
Collection<ISqlFunction> |
getSqlFunctions() |
List<IModelVariable> |
getVariables() |
void |
setNotBaseTranslationBundles(List<ITranslationBundle> pTranslationBundlesToUse)
Change the list of not base
ITranslationBundle and update the
getLabelProvider() to use them. |
getPrefixedUniqueName, getUniqueName
static final String MODEL_PREFIX
IModelID getModelID()
String getName()
List<IEntity> getBaseEntities()
IEntity.getName()
List<IEntity> getEntities()
IEntity.getName()
IEntity getEntity(String pEntityName) throws NoSuchEntityException
IEntity
with the given name if it exists or throws
NoSuchEntityException
.pEntityName
- NoSuchEntityException
- if name doesn't match any of known entitiesList<IReference> getReferences()
IReference.getName()
.IReference getReference(String pReferenceName) throws NoSuchReferenceException
IReference
with the given name if it exists or throws
a NoSuchReferenceException
pReferenceName
- NoSuchReferenceException
- if reference is not foundList<IPublisher> getPublishers()
IPublisher
managed by this model ordered by
IPublisher.getCode()
CodeIPublisher getPublisher(String pCode) throws NoSuchPublisherException
IPublisher
with the given code if it exists or throws
a NoSuchPublisherException
pCode
- NoSuchPublisherException
- if publisher is not foundList<ILov> getLovs()
ILov
defined in this model ordered by
ILov.getName()
ILov getLov(String pName) throws NoSuchLovException
ILov
with the given name or throws a
NoSuchLovException
pName
- NoSuchLovException
IModelLabelProvider getLabelProvider()
IModelJob getModelJob(String pName) throws NoSuchModelJobException
pName
- NoSuchModelJobException
- if not foundList<IModelPrivGrant> getModelPrivGrants()
IModelPrivGrant
defined for this model.IModelPrivGrant getModelPrivGrant(String privGrantName)
IModelPrivGrant
defined for the given privilege name or returns nul if not foundList<IComplexType> getComplexTypes()
IComplexType
defined for this model.IComplexType getComplexType(String pTypeName) throws NoSuchComplexTypeException
IComplexType
for the given name.NoSuchComplexTypeException
List<IBusinessObject> getBusinessObjects()
IBusinessObject getBusinessObject(String pBOName) throws NoSuchBusinessObjectException
NoSuchBusinessObjectException
if there is no BO with such name.pBOName
- NoSuchBusinessObjectException
List<IApplication> getApplications()
IApplication getApplication(String pApplicationName) throws NoSuchApplicationException
IApplication
for the given name if existspApplicationName
- NoSuchApplicationException
- if there is no application with such nameITranslationBundle getBaseTranslationBundle()
List<ITranslationBundle> getNotBaseTranslationBundles()
List<IModelVariable> getVariables()
void setNotBaseTranslationBundles(List<ITranslationBundle> pTranslationBundlesToUse)
ITranslationBundle
and update the
getLabelProvider()
to use them.
This method should not be used by clients.pTranslationBundlesToUse
- List<IModelDiagram> getModelDiagrams()
IModelDiagram.getName()
IRetentionPolicy getRetentionPolicy()
Collection<ISqlFunction> getSqlFunctions()
Copyright © 2017. All rights reserved.