Java Code Examples for java.sql.ResultSet.HOLD_CURSORS_OVER_COMMIT

The following are Jave code examples for showing how to use HOLD_CURSORS_OVER_COMMIT of the java.sql.ResultSet class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: aceql-http   File: TransactionUtil.java   View Source Code Vote up 5 votes
private static int getHoldability(String actionValue) {

	if (actionValue.equals(HttpParameter.HOLD_CURSORS_OVER_COMMIT)) {
	    return ResultSet.HOLD_CURSORS_OVER_COMMIT;
	} else if (actionValue.equals(HttpParameter.CLOSE_CURSORS_AT_COMMIT)) {
	    return ResultSet.CLOSE_CURSORS_AT_COMMIT;
	} else {
	    throw new IllegalArgumentException("Unsupported Holdability: "
		    + actionValue);
	}
    }
 
Example 2
Project: aceql-http   File: TransactionUtil.java   View Source Code Vote up 5 votes
private static String getHoldabilityAsString(int holdability) {

	if (holdability == ResultSet.HOLD_CURSORS_OVER_COMMIT) {
	    return HttpParameter.HOLD_CURSORS_OVER_COMMIT;
	} else if (holdability == ResultSet.CLOSE_CURSORS_AT_COMMIT) {
	    return HttpParameter.CLOSE_CURSORS_AT_COMMIT;
	}else {
	    throw new IllegalArgumentException("Unsupported Holdability: "
		    + holdability);
	}
    }
 
Example 3
Project: calcite-avatica   File: AvaticaConnection.java   View Source Code Vote up 5 votes
public void setHoldability(int holdability) throws SQLException {
  if (!(holdability == ResultSet.CLOSE_CURSORS_AT_COMMIT
      || holdability == ResultSet.HOLD_CURSORS_OVER_COMMIT)) {
    throw new SQLException("invalid value");
  }
  this.holdability = holdability;
}
 
Example 4
Project: spanner-jdbc   File: AbstractCloudSpannerStatement.java   View Source Code Vote up 4 votes
@Override
public int getResultSetHoldability() throws SQLException
{
	return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
 
Example 5
Project: the-vigilantes   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#getResultSetHoldability()
 */
public int getResultSetHoldability() throws SQLException {
    return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
 
Example 6
Project: the-vigilantes   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#supportsResultSetHoldability(int)
 */
public boolean supportsResultSetHoldability(int holdability) throws SQLException {
    return (holdability == ResultSet.HOLD_CURSORS_OVER_COMMIT);
}
 
Example 7
Project: OpenVertretung   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#getResultSetHoldability()
 */
public int getResultSetHoldability() throws SQLException {
    return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
 
Example 8
Project: OpenVertretung   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#supportsResultSetHoldability(int)
 */
public boolean supportsResultSetHoldability(int holdability) throws SQLException {
    return (holdability == ResultSet.HOLD_CURSORS_OVER_COMMIT);
}
 
Example 9
Project: lams   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#getResultSetHoldability()
 */
public int getResultSetHoldability() throws SQLException {
    return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
 
Example 10
Project: lams   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#supportsResultSetHoldability(int)
 */
public boolean supportsResultSetHoldability(int holdability) throws SQLException {
    return (holdability == ResultSet.HOLD_CURSORS_OVER_COMMIT);
}
 
Example 11
Project: ProyectoPacientes   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#getResultSetHoldability()
 */
public int getResultSetHoldability() throws SQLException {
    return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
 
Example 12
Project: ProyectoPacientes   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#supportsResultSetHoldability(int)
 */
public boolean supportsResultSetHoldability(int holdability) throws SQLException {
    return (holdability == ResultSet.HOLD_CURSORS_OVER_COMMIT);
}
 
Example 13
Project: BibliotecaPS   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#getResultSetHoldability()
 */
public int getResultSetHoldability() throws SQLException {
    return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
 
Example 14
Project: BibliotecaPS   File: DatabaseMetaData.java   View Source Code Vote up 4 votes
/**
 * @see DatabaseMetaData#supportsResultSetHoldability(int)
 */
public boolean supportsResultSetHoldability(int holdability) throws SQLException {
    return (holdability == ResultSet.HOLD_CURSORS_OVER_COMMIT);
}
 
Example 15
Project: calcite-avatica   File: AvaticaDatabaseMetaData.java   View Source Code Vote up 4 votes
public int getResultSetHoldability() {
  return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}