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

com.sap.cloud.lm.sl.cf.persistence.dialects.PostgreSQLDataSourceDialect Maven / Gradle / Ivy

package com.sap.cloud.lm.sl.cf.persistence.dialects;

import java.math.BigInteger;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class PostgreSQLDataSourceDialect extends DefaultDataSourceDialect implements DataSourceDialect {

    @Override
    public String getSequenceNextValueSyntax(String sequenceName) {
        return "nextval('" + sequenceName + "')";
    }

    @Override
    public void setBigInteger(PreparedStatement ps, int index, BigInteger bi) throws SQLException {
        ps.setLong(index, bi.longValue());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy