本文整理了Java中org.eclipse.rdf4j.repository.RepositoryConnection.isOpen
方法的一些代码示例,展示了RepositoryConnection.isOpen
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RepositoryConnection.isOpen
方法的具体详情如下:
包路径:org.eclipse.rdf4j.repository.RepositoryConnection
类名称:RepositoryConnection
方法名:isOpen
[英]Checks whether this connection is open. A connection is open from the moment it is created until it is closed.
[中]检查此连接是否打开。连接从创建到关闭都是打开的。
代码示例来源:origin: eclipse/rdf4j
@Override
public boolean isOpen()
throws RepositoryException
{
return getDelegate().isOpen();
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
@Override
public boolean isOpen()
throws RepositoryException
{
return getDelegate().isOpen();
}
代码示例来源:origin: eclipse/rdf4j
/**
* Closes the connection, freeing resources. If a {@link #begin() transaction} is {@link #isActive()
* active} on the connection, all non-committed operations will be lost by actively calling
* {@link #rollback()} on any active transactions.
* <p>
* Implementation note: All implementations must override this method if they have any resources that they
* need to free.
*
* @throws RepositoryException
* If the connection could not be closed.
*/
@Override
public default void close()
throws RepositoryException
{
if (isOpen() && isActive()) {
rollback();
}
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
/**
* Closes the connection, freeing resources. If a {@link #begin() transaction} is {@link #isActive()
* active} on the connection, all non-committed operations will be lost by actively calling
* {@link #rollback()} on any active transactions.
* <p>
* Implementation note: All implementations must override this method if they have any resources that they
* need to free.
*
* @throws RepositoryException
* If the connection could not be closed.
*/
@Override
public default void close()
throws RepositoryException
{
if (isOpen() && isActive()) {
rollback();
}
}
代码示例来源:origin: eclipse/rdf4j
if (conn != null && conn.isOpen()) {
conn.close();
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
if (conn != null && conn.isOpen()) {
conn.close();
代码示例来源:origin: franzinc/agraph-java-client
@Test
public void testOpen()
throws Exception {
assertTrue(testCon.isOpen());
assertTrue(testCon2.isOpen());
testCon.close();
assertFalse(testCon.isOpen());
assertTrue(testCon2.isOpen());
}
代码示例来源:origin: eclipse/rdf4j
if (conn != null && conn.isOpen()) {
conn.close();
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
if (conn != null && conn.isOpen()) {
conn.close();
内容来源于网络,如有侵权,请联系作者删除!