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

org.cg.rooster.phoenix.PhoenixJdbcDataRepository Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package org.cg.rooster.phoenix;

import java.io.Serializable;

import javax.sql.DataSource;

import org.cg.rooster.JdbcDataRepository;
import org.cg.rooster.core.RowColumnMapper;
import org.cg.rooster.core.TableDefinition;
import org.springframework.data.domain.Persistable;

/**
 * A extended {@link JdbcDataRepository} using Apache Phoenix JDBC driver and SQL grammar
 * @author WZ
 *
 * @param 
 * @param 
 */
public class PhoenixJdbcDataRepository , ID extends Serializable> extends JdbcDataRepository {

	/**
	 * 
	 * @param dataSource 
	 * @param tableDefinition
	 * @param rowColumnMapper
	 */
	public PhoenixJdbcDataRepository(DataSource dataSource, TableDefinition tableDefinition, RowColumnMapper rowColumnMapper) {
		super(tableDefinition, 
			  rowColumnMapper, 
			  dataSource,
			  PhoenixSqlGrammar.getInstance());
	}
	
	/**
	 * 
	 * @param dataSource 
	 * @param tableDefinition
	 * @param rowColumnMapper
	 */
	public PhoenixJdbcDataRepository(DataSource dataSource, TableDefinition tableDefinition, RowColumnMapper rowColumnMapper, boolean lazyinit) {
		super(tableDefinition, 
			  rowColumnMapper, 
			  dataSource,
			  PhoenixSqlGrammar.getInstance(),
			  lazyinit);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy