Java Code Examples for java.sql.RowIdLifetime#ROWID_UNSUPPORTED

The following examples show how to use java.sql.RowIdLifetime#ROWID_UNSUPPORTED . 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 File: ClientDBMetaData.java    From gemfirexd-oss with 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 File: ClientDBMetaData.java    From gemfirexd-oss with 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 File: CachedDatabaseMetaData.java    From shardingsphere with 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 4
Source File: CachedDatabaseMetaData.java    From shardingsphere with 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 5
Source File: EmbedDatabaseMetaData40.java    From spliceengine with GNU Affero General Public License v3.0 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 6
Source File: PhoenixDatabaseMetaData.java    From phoenix with Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 7
Source File: BlurDatabaseMetaData.java    From incubator-retired-blur with Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 8
Source File: PhoenixDatabaseMetaData.java    From phoenix with Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 9
Source File: EmbedDatabaseMetaData40.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 10
Source File: ClickHouseDatabaseMetadata.java    From clickhouse-jdbc with Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 11
Source File: PrestoDatabaseMetaData.java    From presto with Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime()
        throws SQLException
{
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 12
Source File: HerdDBDatabaseMetadata.java    From herddb with Apache License 2.0 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 13
Source File: JDBC4DatabaseMetaData.java    From Komondor with GNU General Public License v3.0 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 14
Source File: JDBC4DatabaseMetaDataUsingInfoSchema.java    From Komondor with GNU General Public License v3.0 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 15
Source File: AvaticaDatabaseMetaData.java    From calcite-avatica with Apache License 2.0 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 16
Source File: JDBC4DatabaseMetaData.java    From r-course with MIT License 4 votes vote down vote up
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 17
Source File: CloudSpannerDatabaseMetaData.java    From spanner-jdbc with MIT License 4 votes vote down vote up
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 18
Source File: NetDatabaseMetaData40.java    From gemfirexd-oss with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates whether or not this data source supports the SQL
 * <code>ROWID</code> type. Since Derby does not support the
 * <code>ROWID</code> type, return <code>ROWID_UNSUPPORTED</code>.
 *
 * @return <code>ROWID_UNSUPPORTED</code>
 * @exception SQLException if a database access error occurs
 */
public RowIdLifetime getRowIdLifetime() throws SQLException {
    checkForClosedConnection();
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 19
Source File: NetDatabaseMetaData40.java    From gemfirexd-oss with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates whether or not this data source supports the SQL
 * <code>ROWID</code> type. Since Derby does not support the
 * <code>ROWID</code> type, return <code>ROWID_UNSUPPORTED</code>.
 *
 * @return <code>ROWID_UNSUPPORTED</code>
 * @exception SQLException if a database access error occurs
 */
public RowIdLifetime getRowIdLifetime() throws SQLException {
    checkForClosedConnection();
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
Example 20
Source File: NetDatabaseMetaData.java    From spliceengine with GNU Affero General Public License v3.0 2 votes vote down vote up
/**
 * Indicates whether or not this data source supports the SQL
 * <code>ROWID</code> type. Since Derby does not support the
 * <code>ROWID</code> type, return <code>ROWID_UNSUPPORTED</code>.
 *
 * @return <code>ROWID_UNSUPPORTED</code>
 * @exception SQLException if a database access error occurs
 */
public RowIdLifetime getRowIdLifetime() throws SQLException {
    checkForClosedConnection();
    return RowIdLifetime.ROWID_UNSUPPORTED;
}