java.sql.Blob.position()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(135)

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

Blob.position介绍

[英]Search for the position in this Blob at which a specified pattern begins, starting at a specified position within the Blob.
[中]搜索此Blob中指定模式开始的位置,从Blob中的指定位置开始。

代码示例

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

@Override
  public Long call() throws SQLException {
    return blob.position(pattern, start);
  }
});

代码示例来源:origin: io.snappydata/snappydata-store-core

/**
 * {@inheritDoc}
 */
@Override
public long position(Blob pattern, long start) throws SQLException {
 return this.blob.position(pattern, start);
}

代码示例来源:origin: io.snappydata/gemfirexd-core

/**
 * {@inheritDoc}
 */
@Override
public long position(byte[] pattern, long start) throws SQLException {
 return this.blob.position(pattern, start);
}

代码示例来源:origin: io.snappydata/gemfirexd-core

/**
 * {@inheritDoc}
 */
@Override
public long position(Blob pattern, long start) throws SQLException {
 return this.blob.position(pattern, start);
}

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

/** 
 * @see java.sql.Blob#position(byte[], long)
 */
public long position(byte[] pattern, long start) throws SQLException {
  return this.reference.position(pattern, start);
}

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

@Override
  public Long call() throws SQLException {
    return blob.position(pattern, start);
  }
});

代码示例来源:origin: io.snappydata/snappydata-store-core

/**
 * {@inheritDoc}
 */
@Override
public long position(byte[] pattern, long start) throws SQLException {
 return this.blob.position(pattern, start);
}

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

/** 
 * @see java.sql.Blob#position(java.sql.Blob, long)
 */
public long position(Blob pattern, long start) throws SQLException {
  return this.reference.position(pattern, start);
}

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

/** 
 * @see java.sql.Blob#position(java.sql.Blob, long)
 */
public long position(Blob pattern, long start) throws SQLException {
  return this.reference.position(pattern, start);
}

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

/** 
 * @see java.sql.Blob#position(byte[], long)
 */
public long position(byte[] pattern, long start) throws SQLException {
  return this.reference.position(pattern, start);
}

代码示例来源:origin: io.snappydata/gemfirexd

/**
 * {@inheritDoc}
 */
@Override
public long position(byte[] pattern, long start) throws SQLException {
 return this.blob.position(pattern, start);
}

代码示例来源:origin: io.snappydata/gemfirexd

/**
 * {@inheritDoc}
 */
@Override
public long position(Blob pattern, long start) throws SQLException {
 return this.blob.position(pattern, start);
}

代码示例来源:origin: org.eu.acolyte/jdbc-driver

/**
 * {@inheritDoc}
 */
public long position(final byte[] pattern, final long start)
  throws SQLException {
  synchronized (this) {
    if (this.underlying == null) {
      if (start > 1) {
        throw new SQLException("Invalid offset: " + start);
      } // end of if
      return -1L;
    } // end of if
    return this.underlying.position(pattern, start);
  } // end of sync
} // end of position

代码示例来源:origin: net.sf.ucanaccess/ucanaccess

@Override
public long position(byte[] pattern, long start) throws SQLException {
  try {
    return blob.position(pattern, start);
  } catch (SQLException e) {
    throw new UcanaccessSQLException(e);
  }
}

代码示例来源:origin: net.sf.ucanaccess/ucanaccess

@Override
public long position(Blob pattern, long start) throws SQLException {
  try {
    return blob.position(pattern, start);
  } catch (SQLException e) {
    throw new UcanaccessSQLException(e);
  }
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public long position(byte[] pattern, long start) throws SQLException {
  return getWrappedBlob().position(pattern, start);
}

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

public long position(byte[] pattern, long start) throws SQLException {
  return getWrappedBlob().position(pattern, start);
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public long position(Blob pattern, long start) throws SQLException {
  return getWrappedBlob().position(pattern, start);
}

代码示例来源:origin: liukaixuan/guzz

public long position(byte[] pattern, long start) throws SQLException {
  return getWrappedBlob().position(pattern, start) ;
}

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

public long position(Blob pattern, long start) throws SQLException {
  return getWrappedBlob().position(pattern, start);
}

相关文章