com.sqlapp.data.db.dialect.resolver.MdbDialectResolver Maven / Gradle / Ivy
/**
* Copyright (C) 2007-2018 Tatsuo Satoh
*
* This file is part of sqlapp-core-mdb.
*
* sqlapp-core-mdb 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-mdb 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-mdb. If not, see .
*/
package com.sqlapp.data.db.dialect.resolver;
import com.sqlapp.data.db.dialect.Dialect;
import com.sqlapp.data.db.dialect.DialectUtils;
import com.sqlapp.data.db.dialect.Mdb;
/**
* Dialect resolver for MDB
*
* @author satoh
*
*/
public class MdbDialectResolver extends ProductNameDialectResolver {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
public MdbDialectResolver() {
super("MS *Jet", new MdbVersionResolver());
}
/**
* MDB用のバージョンResolver
*
* @author satoh
*
*/
static class MdbVersionResolver implements VersionResolver {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
static class DialectHolder {
final static Dialect defaultDialect = DialectUtils
.getInstance(Mdb.class);
}
/**
* コンストラクタ
*/
public MdbVersionResolver() {
}
/*
* (non-Javadoc)
*
* @see
* com.sqlapp.data.db.dialect.resolver.VersionResolver#getDialect(int,
* int, java.lang.Integer)
*/
@Override
public Dialect getDialect(int majorVersion, int minorVersion,
Integer revision) {
return DialectHolder.defaultDialect;
}
}
}