1 21 22 package org.apache.derby.impl.sql.catalog; 23 24 import org.apache.derby.iapi.services.io.StoredFormatIds; 25 import org.apache.derby.iapi.services.io.FormatableInstanceGetter; 26 27 public class CoreDDFinderClassInfo extends FormatableInstanceGetter { 28 29 public Object getNewInstance() 30 { 31 switch (fmtId) 32 { 33 34 case StoredFormatIds.ALIAS_DESCRIPTOR_FINDER_V01_ID: 35 case StoredFormatIds.CONGLOMERATE_DESCRIPTOR_FINDER_V01_ID: 36 case StoredFormatIds.CONSTRAINT_DESCRIPTOR_FINDER_V01_ID: 37 case StoredFormatIds.DEFAULT_DESCRIPTOR_FINDER_V01_ID: 38 case StoredFormatIds.FILE_INFO_FINDER_V01_ID: 39 case StoredFormatIds.SCHEMA_DESCRIPTOR_FINDER_V01_ID: 40 case StoredFormatIds.SPS_DESCRIPTOR_FINDER_V01_ID: 41 case StoredFormatIds.TABLE_DESCRIPTOR_FINDER_V01_ID: 42 case StoredFormatIds.TRIGGER_DESCRIPTOR_FINDER_V01_ID: 43 case StoredFormatIds.VIEW_DESCRIPTOR_FINDER_V01_ID: 44 case StoredFormatIds.TABLE_PERMISSION_FINDER_V01_ID: 45 case StoredFormatIds.ROUTINE_PERMISSION_FINDER_V01_ID: 46 case StoredFormatIds.COLUMNS_PERMISSION_FINDER_V01_ID: 47 return new DDdependableFinder(fmtId); 48 case StoredFormatIds.COLUMN_DESCRIPTOR_FINDER_V01_ID: 49 return new DDColumnDependableFinder(fmtId); 50 default: 51 return null; 52 } 53 54 } 55 } 56 | Popular Tags |