Found 4336 Articles for Java 8

Java DatabaseMetaData getMaxConnections() method with example.

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

257 Views

The getMaxConnections() method of the DatabaseMetaData interface is used to find out the maximum number of connections that the underlying database allows at a time.This method returns an integer value, representing the maximum number of connections allowed at a time. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of the DriverManager class. ... Read More

Java DatabaseMetaData getProcedureColumns() method with example

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

388 Views

This method retrieves the description of the procedure parameter and result columns of a database/catalog. It accepts 4 parameters −catalog - A string parameter representing the name of the catalog (database in general) in which the procedure exists, pass "" to get the description of the primary key columns in tables with no catalog and, pass null if you don't want to use catalog and thus narrow the search.schemaPattern - A String parameter representing the name (or, name pattern) of the schema, pass "" in case of no schema and, pass null if you don't want to use schema.procedureNamePattern - ... Read More

Java DatabaseMetaData getMaxColumnsInTable() method with example.

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

28 Views

The getMaxColumnsInTable() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in a table.This method returns an integer value, representing the maximum number of columns allowed in a table. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of the DriverManager ... Read More

Java DatabaseMetaData getMaxColumnsInSelect() method with example.

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

19 Views

The getMaxColumnsInSelect() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in a SELECT list.This method returns an integer value, representing the maximum number of columns allowed in a SELECT list. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of ... Read More

Java DatabaseMetaData getProcedures() method with example

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

465 Views

This method retrieves the description of the stored procedures of a database/catalog. It accepts 3 parameters −catalog: A string parameter representing the name of the catalog (database in general) in which the procedure exists. Pass "" to get the description of the primary key columns in tables with no catalog and, pass null if you don't want to use catalog and thus narrow the search.schemaPattern: A String parameter representing the name (or, name pattern) of the schema, pass "" in case of no schema and, pass null if you don't want to use schema.procedureNamePattern: A String parameter representing the name ... Read More

Java DatabaseMetaData getMaxColumnsInOrderBy() method with example.

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

23 Views

The getMaxColumnsInOrderBy() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in an ORDER BY clause.This method returns an integer value, representing the maximum number of columns allowed in an ORDER BY clause. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() ... Read More

Java DatabaseMetaData getMaxColumnsInGroupBy() method with example.

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

18 Views

The getMaxColumnsInGroupBy() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in a GROUP BY clause.This method returns an integer value, representing the maximum number of columns allowed in a GROUP BY clause. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() ... Read More

Java DatabaseMetaData getPrimaryKeys() method with example

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

1K+ Views

This method retrieves the description of the primary key columns of a table. It accepts 3 parameters −catalog - A string parameter representing the name of the catalog (database in general) in which the table exists, pass "" to get the description of the primary key columns in tables with no catalog and, pass null if you don't want to use catalog and thus narrow the search.schema - A String parameter representing the name of the schema of the table, pass "" to get the description of the columns in tables with no schema and, pass null if you don't ... Read More

Java DatabaseMetaData getJDBCMinorVersion() method with example

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

36 Views

The getJDBCMinorVersion() method of the DatabaseMetaData interface returns the minor version of the JDBC driver in integer format.To get the major version of the JDBC driver −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of the DriverManager class. Pass the URL the database and, user name, password of a user in the database, as String variables.Get the DatabaseMetaData object with respect to the current connection using the getMetaData() method of the ... Read More

Java DatabaseMetaData getMaxUserNameLength() method with example.

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

19 Views

The getMaxUserNameLength() method of the DatabaseMetaData interface is used to find out the maximum number of characters that the underlying database allows in the name of a user.This method returns an integer value, representing the maximum number of characters allowed in a user name. If this value is 0 it indicates that there is no limit or, the limit is unknown.To get the Maximum length of a user using this method:Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the ... Read More

Advertisements