java.sql.RowIdLifetime Java Examples

The following examples show how to use java.sql.RowIdLifetime. 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   Author: gemxd   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   Author: gemxd   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   Author: chenmudu   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   Author: snowflakedb   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   Author: apache   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   Author: apache   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   Author: apache   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   Author: wso2   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   Author: prestosql   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   Author: apache   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   Author: Impetus   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   Author: greenplum-db   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   Author: tigergraph   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   Author: olavloite   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   Author: olavloite   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   Author: apache   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   Author: apache   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   Author: ascendix   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   Author: joanby   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   Author: joanby   File: JDBC4DatabaseMetaData.java    License: MIT License 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example #21
Source Project: calcite-avatica   Author: apache   File: AvaticaNoopDatabaseMetaData.java    License: Apache License 2.0 4 votes vote down vote up
@Override public RowIdLifetime getRowIdLifetime() throws SQLException {
  throw unsupported();
}
 
Example #22
Source Project: calcite-avatica   Author: apache   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   Author: dremio   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
Source Project: Komondor   Author: wn-upf   File: JDBC4DatabaseMetaDataUsingInfoSchema.java    License: GNU General Public License v3.0 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example #25
Source Project: Komondor   Author: wn-upf   File: JDBC4DatabaseMetaData.java    License: GNU General Public License v3.0 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example #26
Source Project: herddb   Author: diennea   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   Author: gemxd   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   Author: gemxd   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
Source Project: clickhouse-jdbc   Author: ClickHouse   File: ClickHouseDatabaseMetadata.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example #30
Source Project: lucene-solr   Author: apache   File: DatabaseMetaDataImpl.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return null;
}