|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdai.lang.SdaiCommon jsdai.lang.A_basis jsdai.lang.CAggregate jsdai.lang.AEntity
Specialized class implementing Aggregate
for members of
type EEntity
. See Aggregate for detailed
description of methods whose specializations are given here.
Constructor Summary | |
AEntity()
Constructs a new object of aggregate AEntity
without aggregation type. |
|
AEntity(SdaiSession owning_session)
Constructs a new object linked to the session of aggregate AEntity without aggregation type. |
Method Summary | |
void |
addAfter(SdaiIterator it,
EEntity value)
It is a specialization of addAfter(SdaiIterator, Object, EDefined_type [])
method - the second parameter is of type EEntity and the third parameter is dropped. |
void |
addBefore(SdaiIterator it,
EEntity value)
It is a specialization of addBefore(SdaiIterator, Object, EDefined_type [])
method - the second parameter is of type EEntity and the third parameter is dropped. |
void |
addByIndex(int index,
EEntity value)
It is a specialization of addByIndex(int, Object, EDefined_type [])
method - the second parameter is of type EEntity and the third parameter is dropped. |
void |
addUnordered(EEntity value)
It is a specialization of addUnordered(Object, EDefined_type [])
method - the first parameter is of type EEntity and the second parameter is dropped. |
AEntity |
findMappingInstances(jsdai.dictionary.EEntity_definition sourceEntity,
ASdaiModel targetDomain,
ASdaiModel mappingDomain,
jsdai.mapping.AEntity_mapping instanceMappings,
int mode)
Finds instances that are mappings of given source entity. |
AEntity |
findMappingInstances(jsdai.dictionary.EEntity_definition sourceEntity,
ASdaiModel targetDomain,
ASdaiModel mappingDomain,
int mode)
Finds instances that are mappings of given source entity. |
AEntity |
findMappingInstances(jsdai.mapping.EEntity_mapping entityMapping,
ASdaiModel targetDomain,
ASdaiModel mappingDomain,
jsdai.mapping.AEntity_mapping instanceMappings,
int mode)
Finds instances that are mappings of given source entity. |
AEntity |
findMappingInstances(jsdai.mapping.EEntity_mapping entityMapping,
ASdaiModel targetDomain,
ASdaiModel mappingDomain,
int mode)
Finds instances that are mappings of given entity mapping. |
jsdai.mapping.AEntity_mapping |
findMostSpecificMappings(ASdaiModel dataDomain,
ASdaiModel mappingDomain,
jsdai.mapping.AEntity_mapping baseMappings,
int mode)
Finds most specific ARM mappings for the instances in the aggregate. |
EEntity |
getByIndexEntity(int index)
It is getByIndexObject method
with return value of type EEntity instead of Object . |
EEntity |
getCurrentMemberEntity(SdaiIterator iter)
It is getCurrentMemberObject method
with return value of type EEntity instead of Object . |
ASdaiModel |
getQuerySourceDomain()
Returns domain in which to perform a search. |
jsdai.query.SerializableRef |
getQuerySourceDomainRef()
|
jsdai.query.SerializableRef |
getQuerySourceInstanceRef()
|
AEntity |
getQuerySourceInstances()
Returns starting instances which serve as the first input instance set for a query. |
boolean |
isMember(EEntity value)
It is a specialization of isMember(Object, EDefined_type [])
method - the first parameter is of type EEntity and the second parameter is dropped. |
void |
removeUnordered(EEntity value)
It is a specialization of removeUnordered(Object, EDefined_type [])
method - the first parameter is of type EEntity and the second parameter is dropped. |
void |
setByIndex(int index,
EEntity value)
It is a specialization of setByIndex(int, Object, EDefined_type [])
method - the second parameter is of type EEntity and the third parameter is dropped. |
void |
setCurrentMember(SdaiIterator it,
EEntity value)
It is a specialization of setCurrentMember(SdaiIterator, Object, EDefined_type [])
method - the second parameter is of type EEntity and the third parameter is dropped. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jsdai.lang.SdaiEventSource |
addSdaiListener, removeSdaiListener |
Constructor Detail |
public AEntity()
AEntity
without aggregation type. The aggregates of such kind are used
as non-persistent lists.
Aggregate.getAggregationType()
public AEntity(SdaiSession owning_session)
AEntity
without aggregation type. The aggregates
of such kind are used as non-persistent lists.
owning_session
- a SdaiSession
valueAggregate.getAggregationType()
Method Detail |
public boolean isMember(EEntity value) throws SdaiException
isMember(Object, EDefined_type [])
method - the first parameter is of type EEntity
and the second parameter is dropped.
isMember
in class CAggregate
SdaiException
public EEntity getByIndexEntity(int index) throws SdaiException
getByIndexObject
method
with return value of type EEntity
instead of Object
.
getByIndexEntity
in class CAggregate
SdaiException
public void setByIndex(int index, EEntity value) throws SdaiException
setByIndex(int, Object, EDefined_type [])
method - the second parameter is of type EEntity
and the third parameter is dropped.
setByIndex
in class CAggregate
SdaiException
public void addByIndex(int index, EEntity value) throws SdaiException
addByIndex(int, Object, EDefined_type [])
method - the second parameter is of type EEntity
and the third parameter is dropped.
addByIndex
in class CAggregate
SdaiException
public void addUnordered(EEntity value) throws SdaiException
addUnordered(Object, EDefined_type [])
method - the first parameter is of type EEntity
and the second parameter is dropped.
addUnordered
in class CAggregate
SdaiException
public void removeUnordered(EEntity value) throws SdaiException
removeUnordered(Object, EDefined_type [])
method - the first parameter is of type EEntity
and the second parameter is dropped.
removeUnordered
in class CAggregate
SdaiException
public void setCurrentMember(SdaiIterator it, EEntity value) throws SdaiException
setCurrentMember(SdaiIterator, Object, EDefined_type [])
method - the second parameter is of type EEntity
and the third parameter is dropped.
setCurrentMember
in class CAggregate
SdaiException
public void addBefore(SdaiIterator it, EEntity value) throws SdaiException
addBefore(SdaiIterator, Object, EDefined_type [])
method - the second parameter is of type EEntity
and the third parameter is dropped.
addBefore
in class CAggregate
SdaiException
public void addAfter(SdaiIterator it, EEntity value) throws SdaiException
addAfter(SdaiIterator, Object, EDefined_type [])
method - the second parameter is of type EEntity
and the third parameter is dropped.
addAfter
in class CAggregate
SdaiException
public EEntity getCurrentMemberEntity(SdaiIterator iter) throws SdaiException
getCurrentMemberObject
method
with return value of type EEntity
instead of Object
.
getCurrentMemberEntity
in class CAggregate
SdaiException
public AEntity findMappingInstances(jsdai.dictionary.EEntity_definition sourceEntity, ASdaiModel targetDomain, ASdaiModel mappingDomain, int mode) throws SdaiException
Example:
AEntity ae = ...;
EEntity_definition sourceEntity = ...; // definition of source entity
AEntity instances = ae.findMappingInstances(sourceEntity, targetDomain, mappingDomain, EEntity.NO_RESTRICTIONS);
This method is part of the mapping extensions of JSDAI.
sourceEntity
- this method searches instances that are mappings of this entitytargetDomain
- an application domain where to search instances to satisfy mapping constraints.
It can be null; then this aggregate of models is used as data domain.mappingDomain
- a domain for mapping constraints and dictionary data.mode
- EEntity.NO_RESTRICTIONS
- no restrictions,
EEntity.MOST_SPECIFC_ENTITY
- returned mappings are restricted to most specific,
EEntity.MANDATORY_ATTRIBUTES_SET
- in addition to MOST_SPECIFIC_ENTITY it also requires, that all explicit mandatory attributes are set.
If there is mapping of subtype entity then mapping of supertype entity is not included.
Entities that can not be instanciated are also not included.
SdaiException
findMappingInstances(EEntity_mapping, ASdaiModel, ASdaiModel, int)
,
SdaiModel.findMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, int)
,
EEntity.findEntityMappings(ASdaiModel, ASdaiModel, AEntity_mapping, int)
public AEntity findMappingInstances(jsdai.dictionary.EEntity_definition sourceEntity, ASdaiModel targetDomain, ASdaiModel mappingDomain, jsdai.mapping.AEntity_mapping instanceMappings, int mode) throws SdaiException
findMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, int)
and adds extra possibility to get most specific mappings of the instances.
This method is part of the mapping extensions of JSDAI.
sourceEntity
- this method searches instances that are mappings of this entitytargetDomain
- the domain where to search instances to satisfy mapping constraints.
It can be null.mappingDomain
- the domain for mapping constraints and dictionary data.instanceMappings
- if not null should be an empty aggregate. The most specific entity
mappings are returned in this aggregate. The member indexes are synchronized with instance
aggregate which is returned from this method. If null then the method works as
findMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, int)
mode
- Should always be EEntity.NO_RESTRICTIONS
- no restrictions.
instanceMappings
is
not null then member indexes in both aggregates make pairs. Every pair
(instance, instanceMapping) is mentioned in both aggregates only once. If
instanceMappings
is null then every instance is mentioned
only once in this aggregate.
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationsfindMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, int)
,
SdaiModel.findMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, AEntity_mapping, int)
,
EEntity.findMostSpecificMappings(jsdai.lang.ASdaiModel, jsdai.lang.ASdaiModel, jsdai.mapping.AEntity_mapping, int)
,
JSDAI Mapping Extensionpublic AEntity findMappingInstances(jsdai.mapping.EEntity_mapping entityMapping, ASdaiModel targetDomain, ASdaiModel mappingDomain, int mode) throws SdaiException
findMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, int)
, because it searches instances that meets requirements only for specified mapping.
Instances that satisfy mapping constraints must be in supplied this aggregate of instances, but other instances required by mapping constraints may be in other models within data domain.
Example:
AEntity ae = ...;
EEntity_mapping mapping = ...; // mapping of source entity
AEntity instances = ae.findMappingInstances(sourceEntity, targetDomain, mappingDomain, EEntity.NO_RESTRICTIONS);
This method is part of the mapping extensions of JSDAI.
entityMapping
- this method searches instances that satisfies constraints for this entity mapping.targetDomain
- an application domain where to search instances to satisfy mapping constraints.
It can be null; then this aggregate of models is used as data domain.mappingDomain
- a domain for mapping constraints and dictionary data.mode
- EEntity.NO_RESTRICTIONS
- no restrictions,
EEntity.MOST_SPECIFC_ENTITY
- returned mappings are restricted to most specific,
EEntity.MANDATORY_ATTRIBUTES_SET
- in addition to MOST_SPECIFIC_ENTITY it also requires, that all explicit mandatory attributes are set.
If there is mapping of subtype entity then mapping of supertype entity is not included.
Entities that can not be instantiated are also not included.
SdaiException
findMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, int)
,
SdaiModel.findMappingInstances(EEntity_mapping, ASdaiModel, ASdaiModel, int)
,
EEntity.findEntityMappings(ASdaiModel, ASdaiModel, AEntity_mapping, int)
,
JSDAI Mapping Extensionpublic AEntity findMappingInstances(jsdai.mapping.EEntity_mapping entityMapping, ASdaiModel targetDomain, ASdaiModel mappingDomain, jsdai.mapping.AEntity_mapping instanceMappings, int mode) throws SdaiException
findMappingInstances(EEntity_mapping, ASdaiModel, ASdaiModel, int)
and adds extra possibility to get most specific mappings of the instances.
This method is part of the mapping extensions of JSDAI.
entityMapping
- this method searches instances that satisfies constraints
for this entity mapping.targetDomain
- the domain where to search instances to satisfy mapping constraints.
It can be null.mappingDomain
- the domain for mapping constraints and dictionary data.instanceMappings
- if not null should be an empty aggregate. The most specific entity
mappings are returned in this aggregate. The member indexes are synchronized with instance
aggregate which is returned from this method. If null then the method works as
findMappingInstances(EEntity_definition, ASdaiModel, ASdaiModel, int)
mode
- Should always be EEntity.NO_RESTRICTIONS
- no restrictions.
instanceMappings
is
not null then member indexes in both aggregates make pairs. Every pair
(instance, instanceMapping) is mentioned in both aggregates only once. If
instanceMappings
is null then every instance is mentioned
only once in this aggregate.
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationsfindMappingInstances(EEntity_mapping, ASdaiModel, ASdaiModel, int)
,
SdaiModel.findMappingInstances(EEntity_mapping, ASdaiModel, ASdaiModel, AEntity_mapping, int)
,
EEntity.findMostSpecificMappings(jsdai.lang.ASdaiModel, jsdai.lang.ASdaiModel, jsdai.mapping.AEntity_mapping, int)
,
JSDAI Mapping Extensionpublic jsdai.mapping.AEntity_mapping findMostSpecificMappings(ASdaiModel dataDomain, ASdaiModel mappingDomain, jsdai.mapping.AEntity_mapping baseMappings, int mode) throws SdaiException
dataDomain
- is domain which defines where to search instances that satisfy mapping constraints.
In the case it is null owning model of target instance will be used as data domain.mappingDomain
- is domain for mapping constraints.baseMappings
- is an aggregate of mapings which define where to start looking for most specific mappings.
The mappings returned will be mappings for subtypes of source enitity of base mappings.mode
- is mode for mapping operations. It can be one of:
EEntity.NO_RESTRICTIONS
EEntity.MOST_SPECIFC_ENTITY
EEntity.MANDATORY_ATTRIBUTES_SET
SdaiException
- All variety of SdaiExceptions can be thrown.public ASdaiModel getQuerySourceDomain() throws SdaiException
QuerySource
getQuerySourceDomain
in interface QuerySource
getQuerySourceDomain
in class CAggregate
SdaiException
public AEntity getQuerySourceInstances() throws SdaiException
QuerySource
getQuerySourceInstances
in interface QuerySource
getQuerySourceInstances
in class CAggregate
SdaiException
public jsdai.query.SerializableRef getQuerySourceInstanceRef() throws SdaiException
getQuerySourceInstanceRef
in interface QuerySource
getQuerySourceInstanceRef
in class CAggregate
SdaiException
public jsdai.query.SerializableRef getQuerySourceDomainRef() throws SdaiException
getQuerySourceDomainRef
in interface QuerySource
getQuerySourceDomainRef
in class CAggregate
SdaiException
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |