java.sql.NClob.setString()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(138)

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

NClob.setString介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

@Override
public NClob createNClob(String string) {
  try {
    final NClob nclob = createNClob();
    nclob.setString( 1, string );
    return nclob;
  }
  catch ( SQLException e ) {
    throw new JDBCException( "Unable to set NCLOB string after creation", e );
  }
}

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

@Override
  public Integer call() throws SQLException {
    return nclob.setString(pos, str);
  }
});

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

@Override
  public Integer call() throws SQLException {
    return nclob.setString(pos, str, offset, len);
  }
});

代码示例来源:origin: org.hibernate.orm/hibernate-core

@Override
public NClob createNClob(String string) {
  try {
    final NClob nclob = createNClob();
    nclob.setString( 1, string );
    return nclob;
  }
  catch ( SQLException e ) {
    throw new JDBCException( "Unable to set NCLOB string after creation", e );
  }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

/**
 * {@inheritDoc}
 */
public NClob createNClob(String string) {
  try {
    NClob nclob = createNClob();
    nclob.setString( 1, string );
    return nclob;
  }
  catch ( SQLException e ) {
    throw new JDBCException( "Unable to set NCLOB string after creation", e );
  }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * {@inheritDoc}
 */
public NClob createNClob(String string) {
  try {
    NClob nclob = createNClob();
    nclob.setString( 1, string );
    return nclob;
  }
  catch ( SQLException e ) {
    throw new JDBCException( "Unable to set NCLOB string after creation", e );
  }
}

代码示例来源:origin: nuodb/migration-tools

if (String.class.isInstance(value)) {
  clob = connection.createNClob();
  clob.setString(1, (String) value);
} else if (char[].class.isInstance(value)) {
  clob = connection.createNClob();
  clob.setString(1, new String((char[]) value));
} else if (Reader.class.isInstance(value)) {
  clob = connection.createNClob();

相关文章