|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssociationManager
This was taken from atlassian-ofbiz and placed into its now rightful home of JIRA.
Method Summary | |
---|---|
org.ofbiz.core.entity.GenericValue |
createAssociation(org.ofbiz.core.entity.GenericValue source,
org.ofbiz.core.entity.GenericValue sink,
String associationType)
Create an association between two entities, given a particular association type. |
org.ofbiz.core.entity.GenericValue |
createAssociation(Long sourceNodeId,
String sourceNodeEntity,
Long sinkNodeId,
String sinkNodeEntity,
String associationType)
Create an association between two entities, given a particular association type. |
org.ofbiz.core.entity.GenericValue |
getAssociation(org.ofbiz.core.entity.GenericValue source,
org.ofbiz.core.entity.GenericValue sink,
String associationType)
|
List<org.ofbiz.core.entity.GenericValue> |
getSinkFromSource(org.ofbiz.core.entity.GenericValue source,
String sinkName,
String associationType,
boolean useCache)
Operates on NodeAssociations - gets MANY sinks from ONE source |
List<org.ofbiz.core.entity.GenericValue> |
getSinkFromSource(org.ofbiz.core.entity.GenericValue source,
String sinkName,
String associationType,
boolean useCache,
boolean useSequence)
|
List<Long> |
getSinkIdsFromSource(org.ofbiz.core.entity.GenericValue source,
String sinkEntity,
String associationType)
|
List<org.ofbiz.core.entity.GenericValue> |
getSourceFromSink(org.ofbiz.core.entity.GenericValue sink,
String sourceName,
String associationType,
boolean useCache)
Operates on NodeAssociations - gets MANY sources from ONE sink |
List<org.ofbiz.core.entity.GenericValue> |
getSourceFromSink(org.ofbiz.core.entity.GenericValue sink,
String sourceName,
String associationType,
boolean useCache,
boolean useSequence)
Operates on NodeAssociations - gets MANY sources from ONE sink |
List<Long> |
getSourceIdsFromSink(org.ofbiz.core.entity.GenericValue sink,
String sourceEntity,
String associationType)
|
void |
removeAssociation(org.ofbiz.core.entity.GenericValue source,
org.ofbiz.core.entity.GenericValue sink,
String associationType)
Removes association between two entities, given a particular association type. |
void |
removeAssociationsFromSink(org.ofbiz.core.entity.GenericValue sink)
Remove all entity<->entity associations, given the sink. |
void |
removeAssociationsFromSource(org.ofbiz.core.entity.GenericValue source)
Remove all entity<->entity associations, given the source. |
void |
swapAssociation(List<org.ofbiz.core.entity.GenericValue> entities,
String associationType,
org.ofbiz.core.entity.GenericValue fromSink,
org.ofbiz.core.entity.GenericValue toSink)
Swaps all associations for a given list of entities (say move a list of unresolved issue entities to a new fix for version) |
void |
swapAssociation(String sourceEntityType,
String associationType,
org.ofbiz.core.entity.GenericValue fromSink,
org.ofbiz.core.entity.GenericValue toSink)
Swap all associations of a particular type from one sink to another. |
Method Detail |
---|
org.ofbiz.core.entity.GenericValue createAssociation(org.ofbiz.core.entity.GenericValue source, org.ofbiz.core.entity.GenericValue sink, String associationType) throws org.ofbiz.core.entity.GenericEntityException
source
- the sourcesink
- the sinkassociationType
- the Association Type
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.org.ofbiz.core.entity.GenericValue createAssociation(Long sourceNodeId, String sourceNodeEntity, Long sinkNodeId, String sinkNodeEntity, String associationType) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.void removeAssociation(org.ofbiz.core.entity.GenericValue source, org.ofbiz.core.entity.GenericValue sink, String associationType) throws org.ofbiz.core.entity.GenericEntityException
source
- the source entitysink
- generic value, e.g. issueassociationType
- association type
org.ofbiz.core.entity.GenericEntityException
void removeAssociationsFromSource(org.ofbiz.core.entity.GenericValue source) throws org.ofbiz.core.entity.GenericEntityException
source
- the Source
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.void removeAssociationsFromSink(org.ofbiz.core.entity.GenericValue sink) throws org.ofbiz.core.entity.GenericEntityException
sink
- the sink
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.void swapAssociation(String sourceEntityType, String associationType, org.ofbiz.core.entity.GenericValue fromSink, org.ofbiz.core.entity.GenericValue toSink) throws org.ofbiz.core.entity.GenericEntityException
sourceEntityType
- the Source Entity TypeassociationType
- the Association TypefromSink
- the From sinktoSink
- the To sink
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.void swapAssociation(List<org.ofbiz.core.entity.GenericValue> entities, String associationType, org.ofbiz.core.entity.GenericValue fromSink, org.ofbiz.core.entity.GenericValue toSink) throws org.ofbiz.core.entity.GenericEntityException
entities
- the entitiesassociationType
- the Association TypefromSink
- the From sinktoSink
- the To sink
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.List<org.ofbiz.core.entity.GenericValue> getSinkFromSource(org.ofbiz.core.entity.GenericValue source, String sinkName, String associationType, boolean useCache) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.List<org.ofbiz.core.entity.GenericValue> getSinkFromSource(org.ofbiz.core.entity.GenericValue source, String sinkName, String associationType, boolean useCache, boolean useSequence) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getSourceFromSink(org.ofbiz.core.entity.GenericValue sink, String sourceName, String associationType, boolean useCache) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.List<org.ofbiz.core.entity.GenericValue> getSourceFromSink(org.ofbiz.core.entity.GenericValue sink, String sourceName, String associationType, boolean useCache, boolean useSequence) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
- If there is a DB Exception.org.ofbiz.core.entity.GenericValue getAssociation(org.ofbiz.core.entity.GenericValue source, org.ofbiz.core.entity.GenericValue sink, String associationType) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<Long> getSinkIdsFromSource(org.ofbiz.core.entity.GenericValue source, String sinkEntity, String associationType) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<Long> getSourceIdsFromSink(org.ofbiz.core.entity.GenericValue sink, String sourceEntity, String associationType) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |