當前位置: 首頁>>代碼示例>>Java>>正文


Java RowIdLifetime.ROWID_UNSUPPORTED屬性代碼示例

本文整理匯總了Java中java.sql.RowIdLifetime.ROWID_UNSUPPORTED屬性的典型用法代碼示例。如果您正苦於以下問題:Java RowIdLifetime.ROWID_UNSUPPORTED屬性的具體用法?Java RowIdLifetime.ROWID_UNSUPPORTED怎麽用?Java RowIdLifetime.ROWID_UNSUPPORTED使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在java.sql.RowIdLifetime的用法示例。


在下文中一共展示了RowIdLifetime.ROWID_UNSUPPORTED屬性的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getRowIdLifetime

/**
 * {@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();
  }
}
 
開發者ID:gemxd,項目名稱:gemfirexd-oss,代碼行數:26,代碼來源:ClientDBMetaData.java

示例2: getRowIdLifetime

@Override
public RowIdLifetime getRowIdLifetime() throws SQLException
{
	return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:olavloite,項目名稱:spanner-jdbc,代碼行數:5,代碼來源:CloudSpannerDatabaseMetaData.java

示例3: getRowIdLifetime

public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:bragex,項目名稱:the-vigilantes,代碼行數:3,代碼來源:JDBC4DatabaseMetaDataUsingInfoSchema.java

示例4: getRowIdLifetime

public RowIdLifetime getRowIdLifetime() throws SQLException {
  return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:apache,項目名稱:calcite-avatica,代碼行數:3,代碼來源:AvaticaDatabaseMetaData.java

示例5: getRowIdLifetime

/**
 * Get the lifetime of a rowid.
 *
 * @return ROWID_UNSUPPORTED
 */
@Override
public RowIdLifetime getRowIdLifetime() {
    debugCodeCall("getRowIdLifetime");
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:vdr007,項目名稱:ThriftyPaxos,代碼行數:10,代碼來源:JdbcDatabaseMetaData.java

示例6: getRowIdLifetime

@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:diennea,項目名稱:herddb,代碼行數:4,代碼來源:HerdDBDatabaseMetadata.java

示例7: getRowIdLifetime

@Override
public RowIdLifetime getRowIdLifetime() {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:datadotworld,項目名稱:dw-jdbc,代碼行數:4,代碼來源:AbstractDatabaseMetaData.java

示例8: getRowIdLifetime

/**
 * {@inheritDoc}.
 */
@Override
public RowIdLifetime getRowIdLifetime() {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:leonhad,項目名稱:paradoxdriver,代碼行數:7,代碼來源:ParadoxDatabaseMetaData.java

示例9: getRowIdLifetime

@Override
public RowIdLifetime getRowIdLifetime()
        throws SQLException
{
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:y-lan,項目名稱:presto,代碼行數:6,代碼來源:PrestoDatabaseMetaData.java

示例10: getRowIdLifetime

public RowIdLifetime getRowIdLifetime() throws SQLException {
	return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:hinsenchan,項目名稱:fil_project_mgmt_app_v2,代碼行數:3,代碼來源:JDBC4DatabaseMetaDataUsingInfoSchema.java

示例11: getRowIdLifetime

@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
  return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:apache,項目名稱:incubator-blur,代碼行數:4,代碼來源:BlurDatabaseMetaData.java

示例12: getRowIdLifetime

/**
     * Indicates whether or not this data source supports the SQL <code>ROWID</code> type,
     * and if so  the lifetime for which a <code>RowId</code> object remains valid.
     * <p>
     * The returned int values have the following relationship:
     * <pre>
     *     ROWID_UNSUPPORTED < ROWID_VALID_OTHER < ROWID_VALID_TRANSACTION
     *         < ROWID_VALID_SESSION < ROWID_VALID_FOREVER
     * </pre>
     * so conditional logic such as
     * <pre>
     *     if (metadata.getRowIdLifetime() > DatabaseMetaData.ROWID_VALID_TRANSACTION)
     * </pre>
     * can be used. Valid Forever means valid across all Sessions, and valid for
     * a Session means valid across all its contained Transactions.
     *
     * @return the status indicating the lifetime of a <code>RowId</code>
     * @throws SQLException if a database access error occurs
     * @since JDK 1.6, HSQLDB 1.9
     */
//#ifdef JAVA6
    public RowIdLifetime getRowIdLifetime() throws SQLException {
        return RowIdLifetime.ROWID_UNSUPPORTED;
    }
 
開發者ID:tiweGH,項目名稱:OpenDiabetes,代碼行數:24,代碼來源:JDBCDatabaseMetaData.java

示例13: getRowIdLifetime

/**
 * 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;
}
 
開發者ID:gemxd,項目名稱:gemfirexd-oss,代碼行數:12,代碼來源:NetDatabaseMetaData40.java

示例14: getRowIdLifetime

/**
 * <p>
 * <h1>Implementation Details:</h1><br>
 * Returns RowIdLifetime.ROWID_UNSUPPORTED
 * </p>
 */
@Override
public RowIdLifetime getRowIdLifetime() throws SQLException {
    return RowIdLifetime.ROWID_UNSUPPORTED;
}
 
開發者ID:jonathanswenson,項目名稱:starschema-bigquery-jdbc,代碼行數:10,代碼來源:BQDatabaseMetadata.java


注:本文中的java.sql.RowIdLifetime.ROWID_UNSUPPORTED屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。