java.sql.SQLXML.setResult()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中java.sql.SQLXML.setResult()方法的一些代码示例,展示了SQLXML.setResult()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SQLXML.setResult()方法的具体详情如下:
包路径:java.sql.SQLXML
类名称:SQLXML
方法名:setResult

SQLXML.setResult介绍

[英]Returns a Result for writing this object's data.
[中]返回写入此对象数据的结果。

代码示例

代码示例来源:origin: spring-projects/spring-framework

@Override
  protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
    provider.provideXml(xmlObject.setResult(resultClass));
  }
};

代码示例来源:origin: spring-projects/spring-framework

@Override
  protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
    xmlObject.setResult(DOMResult.class).setNode(document);
  }
};

代码示例来源:origin: org.teiid/teiid-common-core

public <T extends Result> T setResult(Class<T> resultClass)
    throws SQLException {
  return this.reference.setResult(resultClass);
}

代码示例来源:origin: co.paralleluniverse/comsat-jdbc

@Override
  public T call() throws SQLException {
    return sqlXML.setResult(resultClass);
  }
});

代码示例来源:origin: teiid/teiid

public <T extends Result> T setResult(Class<T> resultClass)
    throws SQLException {
  return this.reference.setResult(resultClass);
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

@Override
  protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
    xmlObject.setResult(DOMResult.class).setNode(document);
  }
};

代码示例来源:origin: apache/servicemix-bundles

@Override
  protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
    xmlObject.setResult(DOMResult.class).setNode(document);
  }
};

代码示例来源:origin: apache/servicemix-bundles

@Override
  protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
    provider.provideXml(xmlObject.setResult(resultClass));
  }
};

代码示例来源:origin: org.springframework/org.springframework.jdbc

@Override
  @SuppressWarnings("unchecked")
  protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
    provider.provideXml(xmlObject.setResult(resultClass));
  }
};

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.oracle

@Override
  public void set(DatabasePlatform platform, PreparedStatement statement, int index, AbstractSession session) throws SQLException {
    if (this.obj instanceof String) {
      //Bug#5200836, unwrap the connection prior to using.
      Connection con = session.getServerPlatform().unwrapConnection(statement.getConnection());
      SQLXML sqlxml = con.createSQLXML();
      sqlxml.setString((String) obj);
      this.obj = sqlxml;
    } else if (this.obj instanceof Document) {
      //Bug#5200836, unwrap the connection prior to using.
      Connection con = session.getServerPlatform().unwrapConnection(statement.getConnection());
      SQLXML sqlxml = con.createSQLXML();
      DOMResult result = sqlxml.setResult(DOMResult.class);
      result.setNode((Document) obj);
      this.obj = sqlxml;
    }
    super.set(platform, statement, index, session);
  }
}

相关文章