org.postgresql.Driver.notImplemented()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(284)

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

Driver.notImplemented介绍

[英]This method was added in v6.5, and simply throws an SQLException for an unimplemented method. I decided to do it this way while implementing the JDBC2 extensions to JDBC, as it should help keep the overall driver size down. It now requires the call Class and the function name to help when the driver is used with closed software that don't report the stack strace
[中]此方法是在v6中添加的。5,并简单地为未实现的方法抛出SQLException。在实现JDBC的JDBC2扩展时,我决定这样做,因为它应该有助于降低总体驱动程序的大小。现在,当驱动程序与不报告堆栈偏移的封闭软件一起使用时,它需要调用类和函数名来提供帮助

代码示例

代码示例来源:origin: org.postgresql/postgresql

public void setObject(int parameterIndex, Object x, java.sql.SQLType targetSqlType)
  throws SQLException {
 throw Driver.notImplemented(this.getClass(), "setObject");
}
//JCP! endif

代码示例来源:origin: org.postgresql/postgresql

public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern)
  throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(),
   "getSuperTypes(String,String,String)");
}

代码示例来源:origin: org.postgresql/postgresql

public void updateObject(String columnLabel, Object x, java.sql.SQLType targetSqlType)
  throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(), "updateObject");
}
//JCP! endif

代码示例来源:origin: org.postgresql/postgresql

public void updateCharacterStream(int columnIndex, Reader reader, long length)
  throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(),
   "updateCharaceterStream(int, Reader, long)");
}

代码示例来源:origin: org.postgresql/postgresql

public void updateAsciiStream(int columnIndex, InputStream inputStream, long length)
  throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(),
   "updateAsciiStream(int, InputStream, long)");
}

代码示例来源:origin: org.postgresql/postgresql

public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern,
  String columnNamePattern) throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(),
   "getPseudoColumns(String, String, String, String)");
}

代码示例来源:origin: org.postgresql/postgresql

public void updateBinaryStream(int columnIndex, InputStream inputStream, long length)
  throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(),
   "updateBinaryStream(int, InputStream, long)");
}

代码示例来源:origin: org.postgresql/postgresql

public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern,
  String attributeNamePattern) throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(),
   "getAttributes(String,String,String,String)");
}

代码示例来源:origin: org.postgresql/postgresql

public void updateBlob(int columnIndex, InputStream inputStream, long length)
  throws SQLException {
 throw org.postgresql.Driver.notImplemented(this.getClass(),
   "updateBlob(int, InputStream, long)");
}

代码示例来源:origin: org.postgresql/postgresql

public void registerOutParameter(String parameterName, java.sql.SQLType sqlType, String typeName)
  throws SQLException {
 throw Driver.notImplemented(this.getClass(), "registerOutParameter");
}
//JCP! endif

代码示例来源:origin: org.postgresql/postgresql

@Override
public Clob createClob() throws SQLException {
 checkClosed();
 throw org.postgresql.Driver.notImplemented(this.getClass(), "createClob()");
}

代码示例来源:origin: org.postgresql/postgresql

@Override
public Blob createBlob() throws SQLException {
 checkClosed();
 throw org.postgresql.Driver.notImplemented(this.getClass(), "createBlob()");
}

代码示例来源:origin: org.postgresql/postgresql

/**
 * For now, this is not implemented.
 */
public synchronized long position(String pattern, long start) throws SQLException {
 checkFreed();
 throw org.postgresql.Driver.notImplemented(this.getClass(), "position(String,long)");
}

代码示例来源:origin: org.postgresql/postgresql

public Ref getRef(int i) throws SQLException {
 checkClosed();
 // The backend doesn't yet have SQL3 REF types
 throw org.postgresql.Driver.notImplemented(this.getClass(), "getRef(int)");
}

代码示例来源:origin: org.postgresql/postgresql

/**
  * This should be simply passing the byte value of the pattern Blob.
  */
 public synchronized long position(Clob pattern, long start) throws SQLException {
  checkFreed();
  throw org.postgresql.Driver.notImplemented(this.getClass(), "position(Clob,start)");
 }
}

代码示例来源:origin: org.postgresql/postgresql

@Override
public NClob createNClob() throws SQLException {
 checkClosed();
 throw org.postgresql.Driver.notImplemented(this.getClass(), "createNClob()");
}

代码示例来源:origin: org.postgresql/postgresql

@Override
public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
 checkClosed();
 throw org.postgresql.Driver.notImplemented(this.getClass(), "createStruct(String, Object[])");
}

代码示例来源:origin: org.postgresql/postgresql

public Object getObjectImpl(int i, Map<String, Class<?>> map) throws SQLException {
 if (map == null || map.isEmpty()) {
  return getObject(i);
 }
 throw Driver.notImplemented(this.getClass(), "getObjectImpl(int,Map)");
}

代码示例来源:origin: org.postgresql/postgresql

public java.net.URL getURL(int columnIndex) throws SQLException {
 connection.getLogger().log(Level.FINEST, "  getURL columnIndex: {0}", columnIndex);
 checkClosed();
 throw org.postgresql.Driver.notImplemented(this.getClass(), "getURL(int)");
}

代码示例来源:origin: org.postgresql/postgresql

public Object getObjectImpl(int i, Map<String, Class<?>> map) throws SQLException {
 checkClosed();
 if (map == null || map.isEmpty()) {
  return getObject(i);
 }
 throw org.postgresql.Driver.notImplemented(this.getClass(), "getObjectImpl(int,Map)");
}

相关文章