Class TrinoDataSource
java.lang.Object
io.trino.jdbc.TrinoDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String user, String password) intgetUrl()getUser()booleanisWrapperFor(Class<?> iface) setCatalog(String catalog) voidsetConnectionProperties(Properties properties) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) setPassword(String password) setSessionUser(String sessionUser) setSqlPath(String sqlPath) <T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
TrinoDataSource
public TrinoDataSource()
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource
-
setLoginTimeout
public void setLoginTimeout(int seconds) - Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource
-
getLoginTimeout
public int getLoginTimeout()- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource
-
setUrl
-
getUrl
-
getConnectionProperties
-
setConnectionProperties
-
setUser
-
getUser
-
setPassword
-
getPassword
-
setCatalog
-
getCatalog
-
setSchema
-
getSchema
-
setSessionUser
-
getSessionUser
-
setSqlPath
-
getSqlPath
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper
-