View Javadoc
1 package com.bonevich.erj.mof.impl.model; 2 3 public class ErjReferencesImpl extends ru.novosoft.mdf.impl.MDFAssociationImpl implements com.bonevich.erj.mof.interfaces.model.References 4 { 5 public ErjReferencesImpl(ru.novosoft.mdf.impl.MDFOutermostPackageImpl r) 6 { 7 super(r); 8 } 9 public Class mdfGetInterfaceClass() 10 { 11 return com.bonevich.erj.mof.interfaces.model.References.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 "References"; 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.ForeignKey && endTwo instanceof com.bonevich.erj.mof.interfaces.model.Relation) 42 { 43 return exists( (com.bonevich.erj.mof.interfaces.model.ForeignKey)endOne, (com.bonevich.erj.mof.interfaces.model.Relation)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","References","referent")) 50 { 51 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.ForeignKey) 52 { 53 return getReferent((com.bonevich.erj.mof.interfaces.model.ForeignKey)queryObject); 54 } 55 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 56 } 57 throw new javax.jmi.reflect.InvalidCallException(null); 58 } 59 public final java.util.Collection refQuery(String queryEnd, javax.jmi.reflect.RefObject queryObject) 60 { 61 if ("referent".equals(queryEnd)) 62 { 63 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.ForeignKey) 64 { 65 return getReferent((com.bonevich.erj.mof.interfaces.model.ForeignKey)queryObject); 66 } 67 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 68 } 69 throw new javax.jmi.reflect.InvalidCallException(null); 70 } 71 public final void refRemoveLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) throws javax.jmi.reflect.NotFoundException 72 { 73 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.ForeignKey) ) 74 { 75 throw new javax.jmi.reflect.TypeMismatchException( null, null, null ); 76 } 77 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.Relation) ) 78 { 79 throw new javax.jmi.reflect.TypeMismatchException( null, null, null ); 80 } 81 remove( (com.bonevich.erj.mof.interfaces.model.ForeignKey)endOne, (com.bonevich.erj.mof.interfaces.model.Relation)endTwo ); 82 } 83 public final void refAddLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) 84 { 85 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.ForeignKey) ) 86 { 87 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 88 } 89 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.Relation) ) 90 { 91 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 92 } 93 add( (com.bonevich.erj.mof.interfaces.model.ForeignKey)endOne, (com.bonevich.erj.mof.interfaces.model.Relation)endTwo); 94 } 95 public final boolean exists(com.bonevich.erj.mof.interfaces.model.ForeignKey _foreignKey, com.bonevich.erj.mof.interfaces.model.Relation _referent) 96 { 97 return ((com.bonevich.erj.mof.impl.model.ErjForeignKeyImpl)_foreignKey).getReferent113().contains(_referent); 98 } 99 public final java.util.List getReferent(com.bonevich.erj.mof.interfaces.model.ForeignKey _ForeignKey) 100 { 101 return ((com.bonevich.erj.mof.impl.model.ErjForeignKeyImpl)_ForeignKey).getReferent113(); 102 } 103 public final void remove(com.bonevich.erj.mof.interfaces.model.ForeignKey _foreignKey, com.bonevich.erj.mof.interfaces.model.Relation _referent) 104 { 105 ((com.bonevich.erj.mof.impl.model.ErjForeignKeyImpl)_foreignKey).getReferent113().remove(_referent); 106 } 107 public final void add(com.bonevich.erj.mof.interfaces.model.ForeignKey _foreignKey, com.bonevich.erj.mof.interfaces.model.Relation _referent) 108 { 109 ((com.bonevich.erj.mof.impl.model.ErjForeignKeyImpl)_foreignKey).getReferent113().add(_referent); 110 } 111 }

This page was automatically generated by Maven