Search in sources :

Example 1 with JdbcDriverPropertyInfo

use of org.apache.ignite.internal.jdbc.JdbcDriverPropertyInfo in project ignite by apache.

the class IgniteJdbcThinDriver method getPropertyInfo.

/** {@inheritDoc} */
@Override
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException {
    parseUrl(url, info);
    List<DriverPropertyInfo> props = Arrays.<DriverPropertyInfo>asList(new JdbcDriverPropertyInfo("Hostname", info.getProperty(JdbcThinUtils.PROP_HOST), ""), new JdbcDriverPropertyInfo("Port number", info.getProperty(JdbcThinUtils.PROP_PORT), ""), new JdbcDriverPropertyInfo("Distributed Joins", info.getProperty(JdbcThinUtils.PROP_DISTRIBUTED_JOINS), ""), new JdbcDriverPropertyInfo("Enforce Join Order", info.getProperty(JdbcThinUtils.PROP_ENFORCE_JOIN_ORDER), ""));
    return props.toArray(new DriverPropertyInfo[0]);
}
Also used : JdbcDriverPropertyInfo(org.apache.ignite.internal.jdbc.JdbcDriverPropertyInfo) JdbcDriverPropertyInfo(org.apache.ignite.internal.jdbc.JdbcDriverPropertyInfo) DriverPropertyInfo(java.sql.DriverPropertyInfo)

Aggregations

DriverPropertyInfo (java.sql.DriverPropertyInfo)1 JdbcDriverPropertyInfo (org.apache.ignite.internal.jdbc.JdbcDriverPropertyInfo)1