Class OrientDataSource
java.lang.Object
com.orientechnologies.orient.jdbc.OrientDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
-
Constructor Summary
ConstructorsConstructorDescriptionOrientDataSource(OrientDB orientDB) Deprecated.OrientDataSource(OrientDB orientDB, String dbName) OrientDataSource(String dbUrl, String username, String password, Properties info) Creates aDataSource -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getConnection(String username, String password) intbooleanisWrapperFor(Class<?> iface) voidvoidsetInfo(Properties info) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) voidsetPassword(String password) voidsetUsername(String username) <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
-
OrientDataSource
public OrientDataSource() -
OrientDataSource
Creates aDataSource- Parameters:
dbUrl-username-password-info-
-
OrientDataSource
Deprecated. -
OrientDataSource
-
-
Method Details
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
setDbUrl
-
setUsername
-
setPassword
-
setInfo
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
close
public void close()
-