com.sqlapp.data.db.dialect.derby.sql.DerbySqlFactoryRegistry Maven / Gradle / Ivy
/**
* Copyright (C) 2007-2018 Tatsuo Satoh
*
* This file is part of sqlapp-core-derby.
*
* sqlapp-core-derby is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* sqlapp-core-derby is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with sqlapp-core-derby. If not, see .
*/
package com.sqlapp.data.db.dialect.derby.sql;
import com.sqlapp.data.db.dialect.Dialect;
import com.sqlapp.data.db.sql.SimpleSqlFactoryRegistry;
import com.sqlapp.data.db.sql.SqlType;
import com.sqlapp.data.schemas.Table;
public class DerbySqlFactoryRegistry extends SimpleSqlFactoryRegistry {
public DerbySqlFactoryRegistry(Dialect dialect) {
super(dialect);
}
@Override
protected void initializeAllSqls() {
super.initializeAllSqls();
registerSqlFactory(Table.class, SqlType.LOCK,
DerbyLockTableFactory.class);
}
}