All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sqlapp.data.db.dialect.SqlServer2012 Maven / Gradle / Ivy

There is a newer version: 0.12.37
Show newest version
/**
 * Copyright (C) 2007-2017 Tatsuo Satoh 
 *
 * This file is part of sqlapp-core-sqlserver.
 *
 * sqlapp-core-sqlserver 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-sqlserver 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-sqlserver.  If not, see .
 */
package com.sqlapp.data.db.dialect;

import java.util.function.Supplier;

import com.sqlapp.data.db.dialect.sqlserver.metadata.SqlServer2012CatalogReader;
import com.sqlapp.data.db.dialect.sqlserver.sql.SqlServer2012SqlFactoryRegistry;
import com.sqlapp.data.db.metadata.CatalogReader;
import com.sqlapp.data.db.sql.SqlFactoryRegistry;

/**
 * SQL Server2012
 * @author satoh
 *
 */
public class SqlServer2012 extends SqlServer2008{
    /**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -5751173741801001354L;

    protected SqlServer2012(Supplier nextVersionDialectSupplier) {
		super(nextVersionDialectSupplier);
    }
    
    
	@Override
    public int hashCode(){
    	return super.hashCode()+1;
    }

	/* (non-Javadoc)
	 * @see com.sqlapp.data.db.dialect.SqlServer2005#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj){
		if (!super.equals(obj)){
			return false;
		}
		return true;
	}

	/* (non-Javadoc)
	 * @see com.sqlapp.data.db.dialect.DbDialect#getCatalogReader()
	 */
	@Override
	public CatalogReader getCatalogReader() {
		return new SqlServer2012CatalogReader(this);
	}

	/* (non-Javadoc)
	 * @see com.sqlapp.data.db.dialect.SqlServer2000#createDbOperationRegistry()
	 */
	@Override
	protected SqlFactoryRegistry createSqlFactoryRegistry() {
		return new SqlServer2012SqlFactoryRegistry(this);
	}
	
	/* (non-Javadoc)
	 * @see com.sqlapp.data.db.dialect.Dialect#supportsStandardOffsetFetchRows()
	 */
	@Override
	public boolean supportsStandardOffsetFetchRows(){
		return true;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy