View Javadoc
1 package com.bonevich.erj.mof.impl.model; 2 3 public class ErjContainsKeysImpl extends ru.novosoft.mdf.impl.MDFAssociationImpl implements com.bonevich.erj.mof.interfaces.model.ContainsKeys 4 { 5 public ErjContainsKeysImpl(ru.novosoft.mdf.impl.MDFOutermostPackageImpl r) 6 { 7 super(r); 8 } 9 public Class mdfGetInterfaceClass() 10 { 11 return com.bonevich.erj.mof.interfaces.model.ContainsKeys.class; 12 } 13 private com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage mdfOutermostPackage = null; 14 public javax.jmi.reflect.RefPackage refOutermostPackage() 15 { 16 if (mdfOutermostPackage == null) 17 { 18 mdfOutermostPackage = (com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage)repository.getMetaObject(com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage.class); 19 } 20 return mdfOutermostPackage; 21 } 22 private com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage mdfImmediatePackage = null; 23 public javax.jmi.reflect.RefPackage refImmediatePackage() 24 { 25 if (mdfImmediatePackage == null) 26 { 27 mdfImmediatePackage = (com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage)repository.getMetaObject(com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage.class); 28 } 29 return mdfImmediatePackage; 30 } 31 public String mdfGetMofName() 32 { 33 return "ContainsKeys"; 34 } 35 public String refMofId() 36 { 37 throw new RuntimeException(" !!! NOT IMPLEMENTED !!!"); 38 } 39 public final boolean refLinkExists(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) 40 { 41 if (endOne instanceof com.bonevich.erj.mof.interfaces.model.Relation && endTwo instanceof com.bonevich.erj.mof.interfaces.model.KeyConstraint) 42 { 43 return exists( (com.bonevich.erj.mof.interfaces.model.Relation)endOne, (com.bonevich.erj.mof.interfaces.model.KeyConstraint)endTwo ); 44 } 45 return false; 46 } 47 public final java.util.Collection refQuery( javax.jmi.reflect.RefObject queryEnd, javax.jmi.reflect.RefObject queryObject) 48 { 49 if (checkQualifiedName( queryEnd, "ErjInfoModel","ContainsKeys","relation")) 50 { 51 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.KeyConstraint) 52 { 53 return java.util.Collections.singletonList( getRelation((com.bonevich.erj.mof.interfaces.model.KeyConstraint)queryObject) ); 54 } 55 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 56 } 57 if (checkQualifiedName( queryEnd, "ErjInfoModel","ContainsKeys","keys")) 58 { 59 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Relation) 60 { 61 return getKeys((com.bonevich.erj.mof.interfaces.model.Relation)queryObject); 62 } 63 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 64 } 65 throw new javax.jmi.reflect.InvalidCallException(null); 66 } 67 public final java.util.Collection refQuery(String queryEnd, javax.jmi.reflect.RefObject queryObject) 68 { 69 if ("relation".equals(queryEnd)) 70 { 71 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.KeyConstraint) 72 { 73 return java.util.Collections.singletonList( getRelation((com.bonevich.erj.mof.interfaces.model.KeyConstraint)queryObject) ); 74 } 75 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 76 } 77 if ("keys".equals(queryEnd)) 78 { 79 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Relation) 80 { 81 return getKeys((com.bonevich.erj.mof.interfaces.model.Relation)queryObject); 82 } 83 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 84 } 85 throw new javax.jmi.reflect.InvalidCallException(null); 86 } 87 public final void refRemoveLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) throws javax.jmi.reflect.NotFoundException 88 { 89 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.Relation) ) 90 { 91 throw new javax.jmi.reflect.TypeMismatchException( null, null, null ); 92 } 93 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.KeyConstraint) ) 94 { 95 throw new javax.jmi.reflect.TypeMismatchException( null, null, null ); 96 } 97 remove( (com.bonevich.erj.mof.interfaces.model.Relation)endOne, (com.bonevich.erj.mof.interfaces.model.KeyConstraint)endTwo ); 98 } 99 public final void refAddLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) 100 { 101 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.Relation) ) 102 { 103 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 104 } 105 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.KeyConstraint) ) 106 { 107 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 108 } 109 add( (com.bonevich.erj.mof.interfaces.model.Relation)endOne, (com.bonevich.erj.mof.interfaces.model.KeyConstraint)endTwo); 110 } 111 public final boolean exists(com.bonevich.erj.mof.interfaces.model.Relation _relation, com.bonevich.erj.mof.interfaces.model.KeyConstraint _keys) 112 { 113 return ((com.bonevich.erj.mof.impl.model.ErjRelationImpl)_relation).getKeys102().contains(_keys); 114 } 115 public final java.util.List getKeys(com.bonevich.erj.mof.interfaces.model.Relation _Relation) 116 { 117 return ((com.bonevich.erj.mof.impl.model.ErjRelationImpl)_Relation).getKeys102(); 118 } 119 public final com.bonevich.erj.mof.interfaces.model.Relation getRelation(com.bonevich.erj.mof.interfaces.model.KeyConstraint _Keys) 120 { 121 return ((com.bonevich.erj.mof.impl.model.ErjKeyConstraintImpl)_Keys).getRelation101(); 122 } 123 public final void remove(com.bonevich.erj.mof.interfaces.model.Relation _relation, com.bonevich.erj.mof.interfaces.model.KeyConstraint _keys) 124 { 125 ((com.bonevich.erj.mof.impl.model.ErjRelationImpl)_relation).getKeys102().remove(_keys); 126 } 127 public final void add(com.bonevich.erj.mof.interfaces.model.Relation _relation, com.bonevich.erj.mof.interfaces.model.KeyConstraint _keys) 128 { 129 ((com.bonevich.erj.mof.impl.model.ErjRelationImpl)_relation).getKeys102().add(_keys); 130 } 131 }

This page was automatically generated by Maven