public final class RelToRelUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RelToRelUtils.Direction
Direction of the connection.
|
Modifier and Type | Method and Description |
---|---|
static matrix.db.Relationship |
connect(matrix.db.BusinessObject from,
matrix.db.Relationship to,
java.lang.String relationshipName)
Add a connection from a business object to a relationship.
|
static matrix.db.Relationship |
connect(matrix.db.BusinessObject from,
matrix.db.Relationship to,
java.lang.String relationshipName,
java.util.Collection<matrix.db.Attribute> attributes)
Add a connection from a business object to a relationship.
|
static matrix.db.Relationship |
connect(matrix.db.Relationship from,
matrix.db.BusinessObject to,
java.lang.String relationshipName)
Add a connection from a relationship to a business object.
|
static matrix.db.Relationship |
connect(matrix.db.Relationship from,
matrix.db.BusinessObject to,
java.lang.String relationshipName,
java.util.Collection<matrix.db.Attribute> attributes)
Add a connection from a relationship to a business object.
|
static matrix.db.Relationship |
connect(matrix.db.Relationship from,
matrix.db.Relationship to,
java.lang.String relationshipName)
Add a connection from a relationship to a relationship.
|
static matrix.db.Relationship |
connect(matrix.db.Relationship from,
matrix.db.Relationship to,
java.lang.String relationshipName,
java.util.Collection<matrix.db.Attribute> attributes)
Add a connection from a relationship to a relationship.
|
static matrix.db.Relationship |
connect(RelToRelUtils.Direction direction,
java.lang.String fromId,
java.lang.String toId,
java.lang.String relationshipName)
Add a connection from a relationship to a relationship or between a
business object and a relationship.
|
static matrix.db.Relationship |
connect(RelToRelUtils.Direction direction,
java.lang.String fromId,
java.lang.String toId,
java.lang.String relationshipName,
java.util.Collection<matrix.db.Attribute> attributes)
Add a connection from a relationship to a relationship or between a
business object and a relationship.
|
static java.lang.String |
getRelationshipId(matrix.db.BusinessObject from,
matrix.db.Relationship to,
java.lang.String relationshipType)
Gets the relationship id of a certain relationship type between one
object and one relationship
|
static java.lang.String |
getRelationshipId(matrix.db.Relationship from,
matrix.db.BusinessObject to,
java.lang.String relationshipType)
Gets the relationship id of a certain relationship type between
relationship and and one object
|
static java.lang.String |
getRelationshipId(matrix.db.Relationship from,
matrix.db.Relationship to,
java.lang.String relationshipType)
Gets the relationship id of a certain relationship type between two
relationships
|
static java.lang.String |
getRelationshipId(RelToRelUtils.Direction direction,
java.lang.String fromId,
java.lang.String toId,
java.lang.String relationshipType)
Gets the relationship id of a relationship between two
objects/relationships with a certain relationship type
|
static void |
modifyFrom(RelToRelUtils.Direction direction,
java.lang.String relationshipId,
java.lang.String newFromId)
Modifies the object/relationship on the from side.
|
static void |
modifyFrom(java.lang.String relationshipId,
matrix.db.BusinessObject newFromObject)
Modifies object on the from side of relationship.
|
static void |
modifyFrom(java.lang.String relationshipId,
matrix.db.Relationship newFromRelationship)
Modifies relationship on the from side of relationship.
|
static void |
modifyTo(RelToRelUtils.Direction direction,
java.lang.String relationshipId,
java.lang.String newToId)
Modifies the object/relationship on the to side of relationship.
|
static void |
modifyTo(java.lang.String relationshipId,
matrix.db.BusinessObject newToObject)
Modifies object on the to side of relationship.
|
static void |
modifyTo(java.lang.String relationshipId,
matrix.db.Relationship newToRelationship)
Modifies relationship on the to side of relationship.
|
public static matrix.db.Relationship connect(matrix.db.BusinessObject from, matrix.db.Relationship to, java.lang.String relationshipName) throws TVCException
from
- BusinessObject to connect fromto
- Relationship to connect torelationshipName
- Name of the type of connection to createTVCException
public static matrix.db.Relationship connect(matrix.db.BusinessObject from, matrix.db.Relationship to, java.lang.String relationshipName, java.util.Collection<matrix.db.Attribute> attributes) throws TVCException
from
- BusinessObject to connect fromto
- Relationship to connect torelationshipName
- Name of the type of connection to createattributes
- Attributes to set on the created relationshipTVCException
public static matrix.db.Relationship connect(RelToRelUtils.Direction direction, java.lang.String fromId, java.lang.String toId, java.lang.String relationshipName) throws TVCException
direction
- Direction of the relationship, e.g. relationship ->
relationship or relationship -> objectfromId
- Id to connect on from sidetoId
- id to connect on to siderelationshipName
- Name of the connection to createTVCException
public static matrix.db.Relationship connect(RelToRelUtils.Direction direction, java.lang.String fromId, java.lang.String toId, java.lang.String relationshipName, java.util.Collection<matrix.db.Attribute> attributes) throws TVCException
direction
- Direction of the relationship, e.g. relationship ->
relationship and relationship -> objectfromId
- Id to connect on from sidetoId
- id to connect on to siderelationshipName
- Name of the connection to createattributes
- Attributes to set on the connectionTVCException
public static matrix.db.Relationship connect(matrix.db.Relationship from, matrix.db.BusinessObject to, java.lang.String relationshipName) throws TVCException
from
- Relationship to connect fromto
- BusinessObject to connect torelationshipName
- Name of the type of connection to createTVCException
public static matrix.db.Relationship connect(matrix.db.Relationship from, matrix.db.BusinessObject to, java.lang.String relationshipName, java.util.Collection<matrix.db.Attribute> attributes) throws TVCException
from
- Relationship to connect fromto
- BusinessObject to connect torelationshipName
- Name of the type of connection to createattributes
- Attributes to set on the created relationshipTVCException
public static matrix.db.Relationship connect(matrix.db.Relationship from, matrix.db.Relationship to, java.lang.String relationshipName) throws TVCException
from
- Relationship to connect fromto
- Relationship to connect torelationshipName
- Name of the type of connection to createTVCException
public static matrix.db.Relationship connect(matrix.db.Relationship from, matrix.db.Relationship to, java.lang.String relationshipName, java.util.Collection<matrix.db.Attribute> attributes) throws TVCException
from
- Relationship to connect fromto
- Relationship to connect torelationshipName
- Name of the type of connection to createattributes
- Attributes to set on the created relationshipTVCException
public static java.lang.String getRelationshipId(matrix.db.Relationship from, matrix.db.BusinessObject to, java.lang.String relationshipType) throws TVCException
from
- The relationship from which the relationship startsto
- The business object to which the relationship endsrelationshipType
- The type of relationship to findTVCException
public static java.lang.String getRelationshipId(matrix.db.BusinessObject from, matrix.db.Relationship to, java.lang.String relationshipType) throws TVCException
from
- The business object from which the relationship startsto
- The relationship to which the relationship endsrelationshipType
- The type of relationship to findTVCException
public static java.lang.String getRelationshipId(matrix.db.Relationship from, matrix.db.Relationship to, java.lang.String relationshipType) throws TVCException
from
- The relationship from which the relationship startsto
- The relationship to which the relationship endsrelationshipType
- The type of relationship to findTVCException
public static java.lang.String getRelationshipId(RelToRelUtils.Direction direction, java.lang.String fromId, java.lang.String toId, java.lang.String relationshipType) throws TVCException
direction
- fromId
- toId
- relationshipType
- TVCException
public static void modifyTo(RelToRelUtils.Direction direction, java.lang.String relationshipId, java.lang.String newToId) throws TVCException
direction
- Direction of relationshiprelationshipId
- Id of relationship to modifynewToId
- Id of object/relationship to set on to sideTVCException
modifyTo(String, BusinessObject)
,
modifyTo(String, Relationship)
public static void modifyTo(java.lang.String relationshipId, matrix.db.BusinessObject newToObject) throws TVCException
relationshipId
- Id of relationship to modifynewToObject
- New business object to set on to sideTVCException
public static void modifyTo(java.lang.String relationshipId, matrix.db.Relationship newToRelationship) throws TVCException
relationshipId
- Id of relationship to modifynewToRelationship
- New relationship to set on to sideTVCException
public static void modifyFrom(RelToRelUtils.Direction direction, java.lang.String relationshipId, java.lang.String newFromId) throws TVCException
direction
- Direction of the relationship to modifyrelationshipId
- Id of relationship to modifynewFromId
- Id of object/relationship to set on to sideTVCException
modifyTo(String, BusinessObject)
,
modifyTo(String, Relationship)
public static void modifyFrom(java.lang.String relationshipId, matrix.db.BusinessObject newFromObject) throws TVCException
relationshipId
- Id of relationship to modifynewFromObject
- Business object to set on from sideTVCException
public static void modifyFrom(java.lang.String relationshipId, matrix.db.Relationship newFromRelationship) throws TVCException
relationshipId
- Relationship id to modifynewFromRelationship
- Relationship to set on from sideTVCException
Copyright ? Technia AB. All Rights Reserved.