Example usage for java.sql Connection getClientInfo

List of usage examples for java.sql Connection getClientInfo

Introduction

In this page you can find the example usage for java.sql Connection getClientInfo.

Prototype

String getClientInfo(String name) throws SQLException;

Source Link

Document

Returns the value of the client info property specified by name.

Usage

From source file:org.apache.phoenix.trace.TraceReader.java

public TraceReader(Connection conn, String statsTableName) throws SQLException {
    this.conn = conn;
    this.table = statsTableName;
    String ps = conn.getClientInfo(QueryServices.TRACING_PAGE_SIZE_ATTRIB);
    this.pageSize = ps == null ? QueryServicesOptions.DEFAULT_TRACING_PAGE_SIZE : Integer.parseInt(ps);
}