1 21 22 package org.apache.derby.iapi.sql.dictionary; 23 24 import org.apache.derby.catalog.UUID; 25 26 import org.apache.derby.iapi.reference.SQLState; 27 import org.apache.derby.iapi.services.sanity.SanityManager; 28 import org.apache.derby.iapi.sql.StatementType; 29 import org.apache.derby.catalog.DependableFinder; 30 import org.apache.derby.catalog.Dependable; 31 import org.apache.derby.iapi.services.io.StoredFormatIds; 32 import org.apache.derby.iapi.error.StandardException; 33 import org.apache.derby.iapi.sql.depend.DependencyManager; 34 import org.apache.derby.iapi.sql.depend.Dependent; 35 import org.apache.derby.iapi.sql.depend.Dependency; 36 import org.apache.derby.iapi.sql.depend.Provider; 37 38 44 45 public class DependencyDescriptor extends TupleDescriptor 46 implements UniqueTupleDescriptor 47 { 48 55 56 private final UUID dependentID; 58 private final DependableFinder dependentBloodhound; 59 private final UUID providerID; 60 private final DependableFinder providerBloodhound; 61 62 68 69 public DependencyDescriptor( 70 Dependent dependent, 71 Provider provider 72 ) 73 { 74 dependentID = dependent.getObjectID(); 75 dependentBloodhound = dependent.getDependableFinder(); 76 providerID = provider.getObjectID(); 77 providerBloodhound = provider.getDependableFinder(); 78 } 79 80 88 89 public DependencyDescriptor( 90 UUID dependentID, DependableFinder dependentBloodhound, 91 UUID providerID, DependableFinder providerBloodhound 92 ) 93 { 94 this.dependentID = dependentID; 95 this.dependentBloodhound = dependentBloodhound; 96 this.providerID = providerID; 97 this.providerBloodhound = providerBloodhound; 98 } 99 100 102 107 public UUID getUUID() 108 { 109 return dependentID; 110 } 111 112 117 public DependableFinder getDependentFinder() 118 { 119 return dependentBloodhound; 120 } 121 122 127 public UUID getProviderID() 128 { 129 return providerID; 130 } 131 132 137 public DependableFinder getProviderFinder() 138 { 139 return providerBloodhound; 140 } 141 } 142 | Popular Tags |