
org.cg.rooster.phoenix.PhoenixJdbcDataRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.cg.rooster Show documentation
Show all versions of org.cg.rooster Show documentation
A generic JDBC DAO with implementation to support Apache Phoenix.
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 - 2025 Weber Informatics LLC | Privacy Policy