1 17 package org.apache.ws.jaxme.sqls.junit; 18 19 import org.apache.ws.jaxme.sqls.SQLFactory; 20 import org.apache.ws.jaxme.sqls.db2.DB2SQLFactoryImpl; 21 22 23 26 public class DB2Test extends CreateTest { 27 public DB2Test(String pName) { super(pName); } 28 29 protected SQLFactory newSQLFactory() { 30 return new DB2SQLFactoryImpl(); 31 } 32 33 protected String getCreateForeignKeyResult() { 34 return "CREATE TABLE MySchema.OtherTable (" + 35 " MyIndex INT NOT NULL," + 36 " RefIndex INT NOT NULL," + 37 " Company VARCHAR(60) NOT NULL,"+ 38 " PRIMARY KEY (MyIndex)," + 39 " FOREIGN KEY (RefIndex) REFERENCES MySchema.MyTable (MyIndex))"; 40 } 41 } 42 | Popular Tags |