类java.sql.RowIdLifetime源码实例Demo

下面列出了怎么用java.sql.RowIdLifetime的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: gemfirexd-oss   文件: ClientDBMetaData.java
/**
 * {@inheritDoc}
 */
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  this.conn.lock();
  try {
    initServiceMetaData();
    switch (this.serviceMetaData.getRowIdLifeTime()) {
      case ROWID_UNSUPPORTED:
        return RowIdLifetime.ROWID_UNSUPPORTED;
      case ROWID_VALID_OTHER:
        return RowIdLifetime.ROWID_VALID_OTHER;
      case ROWID_VALID_SESSION:
        return RowIdLifetime.ROWID_VALID_SESSION;
      case ROWID_VALID_TRANSACTION:
        return RowIdLifetime.ROWID_VALID_TRANSACTION;
      case ROWID_VALID_FOREVER:
        return RowIdLifetime.ROWID_VALID_FOREVER;
      default:
        return RowIdLifetime.ROWID_UNSUPPORTED;
    }
  } finally {
    this.conn.unlock();
  }
}
 
源代码2 项目: gemfirexd-oss   文件: ClientDBMetaData.java
/**
 * {@inheritDoc}
 */
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  this.conn.lock();
  try {
    initServiceMetaData();
    switch (this.serviceMetaData.getRowIdLifeTime()) {
      case ROWID_UNSUPPORTED:
        return RowIdLifetime.ROWID_UNSUPPORTED;
      case ROWID_VALID_OTHER:
        return RowIdLifetime.ROWID_VALID_OTHER;
      case ROWID_VALID_SESSION:
        return RowIdLifetime.ROWID_VALID_SESSION;
      case ROWID_VALID_TRANSACTION:
        return RowIdLifetime.ROWID_VALID_TRANSACTION;
      case ROWID_VALID_FOREVER:
        return RowIdLifetime.ROWID_VALID_FOREVER;
      default:
        return RowIdLifetime.ROWID_UNSUPPORTED;
    }
  } finally {
    this.conn.unlock();
  }
}
 
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    try {
        return databaseMetaData.getRowIdLifetime();
    } catch (final SQLException e) {
        handleException(e);
        throw new AssertionError();
    }
}
 
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException
{
  logger.debug("public RowIdLifetime getRowIdLifetime()");

  throw new SQLFeatureNotSupportedException();
}
 
源代码5 项目: shardingsphere   文件: CachedDatabaseMetaData.java
private RowIdLifetime getRowIdLifetimeFromOriginMetaData(final DatabaseMetaData databaseMetaData) throws SQLException {
    try {
        return databaseMetaData.getRowIdLifetime();
    } catch (final SQLFeatureNotSupportedException ignore) {
        return RowIdLifetime.ROWID_UNSUPPORTED;
    }
}
 
源代码6 项目: shardingsphere   文件: CachedDatabaseMetaData.java
private RowIdLifetime getRowIdLifetimeFromOriginMetaData(final DatabaseMetaData databaseMetaData) throws SQLException {
    try {
        return databaseMetaData.getRowIdLifetime();
    } catch (final SQLFeatureNotSupportedException ignore) {
        return RowIdLifetime.ROWID_UNSUPPORTED;
    }
}
 
源代码7 项目: commons-dbcp   文件: DelegatingDatabaseMetaData.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    try {
        return databaseMetaData.getRowIdLifetime();
    } catch (final SQLException e) {
        handleException(e);
        throw new AssertionError();
    }
}
 
源代码8 项目: micro-integrator   文件: TDatabaseMetaData.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    throw new SQLFeatureNotSupportedException("Functionality is not supported");  
}
 
源代码9 项目: presto   文件: PrestoDatabaseMetaData.java
@Override
public RowIdLifetime getRowIdLifetime()
        throws SQLException
{
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码10 项目: incubator-iotdb   文件: IoTDBDatabaseMetadata.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  throw new SQLException(METHOD_NOT_SUPPORTED_STRING);
}
 
源代码11 项目: eth-jdbc-connector   文件: EthDatabaseMetadata.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    throw new SQLFeatureNotSupportedException();
}
 
源代码12 项目: pxf   文件: S3SelectDatabaseMetaData.java
@Override
public RowIdLifetime getRowIdLifetime() {
    throw new UnsupportedOperationException();
}
 
源代码13 项目: ecosys   文件: DatabaseMetaData.java
@Override public RowIdLifetime getRowIdLifetime() throws SQLException {
  throw new UnsupportedOperationException("Not implemented yet.");
}
 
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
@Test
public void testGetRowIdLifetime() throws SQLException {
  assertEquals(RowIdLifetime.ROWID_UNSUPPORTED, testSubject.getRowIdLifetime());
}
 
源代码16 项目: netbeans   文件: DefaultAdaptor.java
public java.sql.RowIdLifetime getRowIdLifetime() throws SQLException {
    return null;
}
 
源代码17 项目: netbeans   文件: DatabaseMetaDataAdapter.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
源代码18 项目: salesforce-jdbc   文件: ForceDatabaseMetaData.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    // TODO Auto-generated method stub
    return null;
}
 
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码20 项目: r-course   文件: JDBC4DatabaseMetaData.java
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
@Override public RowIdLifetime getRowIdLifetime() throws SQLException {
  throw unsupported();
}
 
源代码22 项目: calcite-avatica   文件: AvaticaDatabaseMetaData.java
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码23 项目: dremio-oss   文件: DremioDatabaseMetaDataImpl.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  throwIfClosed();
  return super.getRowIdLifetime();
}
 
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码25 项目: Komondor   文件: JDBC4DatabaseMetaData.java
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码26 项目: herddb   文件: HerdDBDatabaseMetadata.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码27 项目: gemfirexd-oss   文件: EmbedDatabaseMetaData40.java
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码28 项目: gemfirexd-oss   文件: EmbedDatabaseMetaData.java
public RowIdLifetime getRowIdLifetime() throws SQLException {
  throw new AssertionError("only expected to be called in JDBC 4.0");
}
 
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
源代码30 项目: lucene-solr   文件: DatabaseMetaDataImpl.java
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return null;
}