Vikyath Ram has Published 151 Articles

Java ResultSetMetaData getColumnTypeName() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

673 Views

The getColumnTypeName() method of the ResultSetMetaData (interface) retrieves and returns the name of the datatype of the specified column in the current ResultSet object.This method accepts an integer value representing the index of a column and, returns a String value representing the name of the SQL data type of the specified ... Read More

Java DatabaseMetaData supportsSavepoints() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

28 Views

The supportsSavepoints() method of the DatabaseMetaData interface is used to determine whether the underlying database supports savepoints.This method returns a boolean value which is −True, when the underlying database supports savepoints.False, when the underlying database doesn't support savepoints.To determine whether the underlying database supports save points −Make sure your database is ... Read More

Java DatabaseMetaData supportsTransactions() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

54 Views

The supportsTransactions() method of the DatabaseMetaData interface is used to determine whether the underlying database supports transactions.This method returns a boolean value which is −True, when the underlying database supports stored procedures.False, when the underlying database doesn't support stored procedures.To determine whether the underlying database supports stored procedures−Make sure your ... Read More

Java DatabaseMetaData supportsResultSetType() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

84 Views

While creating a Statement object you can choose the concurrency and the type of the ResultSet object using the following variant of the createStatement() method −Statement createStatement(int resultSetType, int resultSetConcurrency)ResultSet ConcurrencyThe concurrency of the ResultSet object determines whether its contents can be updated or not.The ResultSet interface provides two values ... Read More

What is CLOSE_CURSORS_AT_COMMIT in JDBC?

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

321 Views

CLOSE_CURSORS_AT_COMMIT is the constant value of the ResultSet interface representing the holdability value. If the ResultSet holdability is set to this value whenever you commit/save a transaction using the commit() method of the Connection interface, the ResultSet objects created in the current transaction (that are already opened) will be closed.Let ... Read More

Java Connection setSavepoint() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

512 Views

A save point is a logical rollback point within a transaction. When you set a save point, whenever an error occurs past a save point, you can undo the events you have done up to the save point using the rollback() method.You can set a save point in a database ... Read More

Java Connection rollBack() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

4K+ Views

A rollback operation undoes all the changes done by the current transaction i.e. If you call a rollBack() method of the Connection interface, all the modifications are reverted until the last commit.Con.rollback()You can also rollback the changes in the database up to a particular save point by passing the required Savepoint ... Read More

Java Connection setAutoCommit() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

3K+ Views

If you commit a database, it saves all the changes that have been done till that particular point. By default, some databases commits/saves the changes done automatically.You can turn off/on the auto-commit using the setAutoCommit() method of the Connection interface.ParameterThis method accepts a boolean value as a parameter. If you ... Read More

Java Connection getCatalog() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

701 Views

In general, a catalog is a directory which holds information about data sets, file or, a database. Whereas in a database catalog holds the list of all the databases, base tables, views (virtual tables), synonyms, value ranges, indexes, users, and user groups.The getCatalog() method of the Connection interface returns the ... Read More

Java Connection The setClientInfo() method with example

Vikyath Ram

Vikyath Ram

Updated on 30-Jul-2019 22:30:26

642 Views

The setClientInfo() method of the Connection interface sets values to the client info properties of the current connection object.ParametersThis method accepts a Properties object as a parameter.con.setClientInfo(properties);To set values to the client info properties file.Register the driver using the registerDriver() method of the DriverManager class as −//Registering the Driver DriverManager.registerDriver(new com.mysql.jdbc.Driver());Get the ... Read More

Previous 1 ... 7 8 9 10 11 ... 16 Next
Advertisements