Class DBDiaReferenceEdgeHelper
java.lang.Object
de.mid.innovator.srv2api.icw2dbdia.DBDiaReferenceEdgeHelper
This is a utility class for DBDiaReferenceEdge that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DBDiaTableNodemergeSiblingTables(SrvContext srvCtx, List<? extends ELElement> seq) Merges two or more child database table nodes of the selected foreign key edges.static List<DBDiaTableNode> mergeToForeign(SrvContext srvCtx, List<? extends ELElement> seq) Merges theDBDiaTableNodewhich contains theDBUniqueKeycorresponding to the selectedDBForeignKeyinto theDBTablewhich contains the foreign key.static List<DBDiaTableNode> mergeToUnique(SrvContext srvCtx, List<? extends DBDiaReferenceEdge> seqForeign, List<Integer> seqCard) Merges theDBDiaTableNodeof the selectedDBForeignKeyinto theDBTablewhich contains the correspondingDBUniqueKey.
-
Method Details
-
mergeSiblingTables
public static DBDiaTableNode mergeSiblingTables(SrvContext srvCtx, 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:
InoNetExceptionSrvErrorException
-
mergeToForeign
public static List<DBDiaTableNode> mergeToForeign(SrvContext srvCtx, List<? extends ELElement> seq) throws InoNetException, SrvErrorException Merges theDBDiaTableNodewhich contains theDBUniqueKeycorresponding to the selectedDBForeignKeyinto theDBTablewhich contains the foreign key.- Parameters:
srvCtx- The context of the related innovator server.seq- List of ELElement- Throws:
InoNetExceptionSrvErrorException
-
mergeToUnique
public static List<DBDiaTableNode> mergeToUnique(SrvContext srvCtx, List<? extends DBDiaReferenceEdge> seqForeign, List<Integer> seqCard) throws InoNetException, SrvErrorException Merges theDBDiaTableNodeof the selectedDBForeignKeyinto theDBTablewhich contains the correspondingDBUniqueKey.- Parameters:
srvCtx- The context of the related innovator server.seqForeign- foreign keys edgesseqCard- cardinalities for merge- Throws:
InoNetExceptionSrvErrorException
-