1 10 11 package com.triactive.jdo.store; 12 13 import java.util.Collection ; 14 import java.util.Iterator ; 15 16 17 26 27 public class MissingForeignKeysException extends SchemaValidationException 28 { 29 35 36 public MissingForeignKeysException(Table table, Collection stmts) 37 { 38 super("Required foreign keys missing from " + table + '\n' + listOnePerLine(stmts)); 39 } 40 41 42 private static String listOnePerLine(Collection stmts) 43 { 44 StringBuffer list = new StringBuffer (); 45 Iterator i = stmts.iterator(); 46 47 while (i.hasNext()) 48 list.append(i.next()).append('\n'); 49 50 return list.toString(); 51 } 52 } 53 | Popular Tags |