本文整理了Java中org.postgresql.Driver.port()
方法的一些代码示例,展示了Driver.port()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Driver.port()
方法的具体详情如下:
包路径:org.postgresql.Driver
类名称:Driver
方法名:port
暂无
代码示例来源:origin: postgresql/postgresql
/**
* Create a connection from URL and properties. Always
* does the connection work in the current thread without
* enforcing a timeout, regardless of any timeout specified
* in the properties.
*
* @param url the original URL
* @param props the parsed/defaulted connection properties
* @return a new connection
* @throws SQLException if the connection could not be made
*/
private static Connection makeConnection(String url, Properties props) throws SQLException {
return new org.postgresql.jdbc4.Jdbc4Connection(host(props), port(props),
user(props), database(props),
props, url);
}
代码示例来源:origin: org.ancoron.postgresql/org.postgresql
/**
* Create a connection from URL and properties. Always
* does the connection work in the current thread without
* enforcing a timeout, regardless of any timeout specified
* in the properties.
*
* @param url the original URL
* @param props the parsed/defaulted connection properties
* @return a new connection
* @throws SQLException if the connection could not be made
*/
private static Connection makeConnection(String url, Properties props) throws SQLException {
return new org.postgresql.jdbc4.Jdbc4Connection(host(props), port(props),
user(props), database(props),
props, url);
}
代码示例来源:origin: org.ancoron.postgresql/org.postgresql.osgi
/**
* Create a connection from URL and properties. Always
* does the connection work in the current thread without
* enforcing a timeout, regardless of any timeout specified
* in the properties.
*
* @param url the original URL
* @param props the parsed/defaulted connection properties
* @return a new connection
* @throws SQLException if the connection could not be made
*/
private static Connection makeConnection(String url, Properties props) throws SQLException {
return new org.postgresql.jdbc4.Jdbc4Connection(host(props), port(props),
user(props), database(props),
props, url);
}
内容来源于网络,如有侵权,请联系作者删除!