1 16 package org.apache.ws.jaxme.sqls.hsqldb; 17 18 import org.apache.ws.jaxme.sqls.Column; 19 import org.apache.ws.jaxme.sqls.SQLGenerator; 20 import org.apache.ws.jaxme.sqls.Schema; 21 import org.apache.ws.jaxme.sqls.Table; 22 import org.apache.ws.jaxme.sqls.impl.SQLFactoryImpl; 23 24 30 public class HsqlDbSQLFactoryImpl extends SQLFactoryImpl implements HsqlDbSQLFactory { 31 public Schema newSchemaImpl(Schema.Name pName) { 32 if (pName != null) { 33 throw new IllegalArgumentException ("The HsqlDb database is supporting the default schema only."); 34 } 35 return new HsqlDbSchemaImpl(this, pName); 36 } 37 38 public Table newTableImpl(Schema pSchema, Table.Name pName) { 39 return new HsqlDbTableImpl(pSchema, pName); 40 } 41 42 public Column newColumn(Table pTable, Column.Name pName, Column.Type pType) { 43 return new HsqlDbColumnImpl(pTable, pName, pType); 44 } 45 46 public SQLGenerator newSQLGenerator() { 47 return new HsqlDbSQLGeneratorImpl(); 48 } 49 } 50 | Popular Tags |