Class DBDiaReferenceEdgeHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2dbdia.DBDiaReferenceEdgeHelper
-
public abstract class DBDiaReferenceEdgeHelper extends java.lang.Object
This is a utility class for DBDiaReferenceEdge that provides static methods for creation or other purposes.- See Also:
DBDiaReferenceEdge
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBDiaTableNode
mergeSiblingTables(SrvContext srvCtx, java.util.List<? extends ELElement> seq)
Merges two or more child database table nodes of the selected foreign key edges.static java.util.List<DBDiaTableNode>
mergeToForeign(SrvContext srvCtx, java.util.List<? extends ELElement> seq)
Merges theDBDiaTableNode
which contains theDBUniqueKey
corresponding to the selectedDBForeignKey
into theDBTable
which contains the foreign key.static java.util.List<DBDiaTableNode>
mergeToUnique(SrvContext srvCtx, java.util.List<? extends DBDiaReferenceEdge> seqForeign, java.util.List<java.lang.Integer> seqCard)
Merges theDBDiaTableNode
of the selectedDBForeignKey
into theDBTable
which contains the correspondingDBUniqueKey
.
-
-
-
Method Detail
-
mergeSiblingTables
public static DBDiaTableNode mergeSiblingTables(SrvContext srvCtx, java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Merges two or more child database table nodes of the selected foreign key edges. The foreign keys must be identifying (solid line) and maximum 1 (Z), and must reference the same primary key.- Parameters:
srvCtx
- The context of the related innovator server.seq
- List of ELElement- Throws:
InoNetException
SrvErrorException
-
mergeToForeign
public static java.util.List<DBDiaTableNode> mergeToForeign(SrvContext srvCtx, java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Merges theDBDiaTableNode
which contains theDBUniqueKey
corresponding to the selectedDBForeignKey
into theDBTable
which contains the foreign key.- Parameters:
srvCtx
- The context of the related innovator server.seq
- List of ELElement- Throws:
InoNetException
SrvErrorException
-
mergeToUnique
public static java.util.List<DBDiaTableNode> mergeToUnique(SrvContext srvCtx, java.util.List<? extends DBDiaReferenceEdge> seqForeign, java.util.List<java.lang.Integer> seqCard) throws InoNetException, SrvErrorException
Merges theDBDiaTableNode
of the selectedDBForeignKey
into theDBTable
which contains the correspondingDBUniqueKey
.- Parameters:
srvCtx
- The context of the related innovator server.seqForeign
- foreign keys edgesseqCard
- cardinalities for merge- Throws:
InoNetException
SrvErrorException
-
-