Java Code Examples for java.sql.RowIdLifetime

The following examples show how to use java.sql.RowIdLifetime. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: gemfirexd-oss   Source File: ClientDBMetaData.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * {@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();
  }
}
 
Example 2
Source Project: gemfirexd-oss   Source File: ClientDBMetaData.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * {@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();
  }
}
 
Example 3
Source Project: Tomcat8-Source-Read   Source File: DelegatingDatabaseMetaData.java    License: MIT License 5 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    try {
        return databaseMetaData.getRowIdLifetime();
    } catch (final SQLException e) {
        handleException(e);
        throw new AssertionError();
    }
}
 
Example 4
Source Project: snowflake-jdbc   Source File: SnowflakeDatabaseMetaData.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException
{
  logger.debug("public RowIdLifetime getRowIdLifetime()");

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