Available Methods
- getTables ( )
- getColumns ( )
- getPrimaryKeys ( )
- getDatabaseProductName ( )
- getSchemas ( )
- getIndexInfo ( )
- getImportedKeys ( )
- getDatabaseMajorVersion ( )
- getProcedureColumns ( )
- getTypeInfo ( )
- getURL ( )
- getUserName ( )
- getDatabaseProductVersion ( )
- getProcedures ( )
- getIdentifierQuoteString ( )
- getExportedKeys ( )
- getCrossReference ( )
- getDriverVersion ( )
- getTableTypes ( )
- getFunctionColumns ( )
- getDriverName ( )
- storesUpperCaseIdentifiers ( )
- supportsMixedCaseIdentifiers ( )
- getFunctions ( )
- getDatabaseMinorVersion ( )
- getSearchStringEscape ( )
- columnNullable ( )
- getCatalogs ( )
- getConnection ( )
- supportsMixedCaseQuotedIdentifiers ( )
- importedKeySetNull ( )
- supportsGetGeneratedKeys ( )
- columnNoNulls ( )
- generatedKeyAlwaysReturned ( )
- supportsSchemasInTableDefinitions ( )
- storesLowerCaseIdentifiers ( )
- supportsBatchUpdates ( )
- getMaxConnections ( )
- getPseudoColumns ( )
- sqlStateSQL99 ( )
- nullsAreSortedAtEnd ( )
- procedureColumnReturn ( )
- importedKeyNoAction ( )
- functionColumnIn ( )
- procedureResultUnknown ( )
- getUDTs ( )
- supportsNamedParameters ( )
- getMaxColumnsInGroupBy ( )
- locatorsUpdateCopy ( )
- supportsConvert ( )
- getNumericFunctions ( )
- getSuperTypes ( )
- procedureReturnsResult ( )
- columnNullableUnknown ( )
- supportsCatalogsInTableDefinitions ( )
- getDriverMajorVersion ( )
- supportsSavepoints ( )
- getColumnPrivileges ( )
- supportsANSI92EntryLevelSQL ( )
- procedureColumnInOut ( )
- supportsResultSetType ( )
- getSystemFunctions ( )
- getBestRowIdentifier ( )
- isReadOnly ( )
- doesMaxRowSizeIncludeBlobs ( )
- supportsGroupByUnrelated ( )
- isCatalogAtStart ( )
- getAttributes ( )
- supportsTransactionIsolationLevel ( )
- procedureColumnOut ( )
- getJDBCMajorVersion ( )
- procedureColumnIn ( )
- getResultSetHoldability ( )
- getMaxCharLiteralLength ( )
- supportsStatementPooling ( )
- supportsSchemasInDataManipulation ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- java.util.Iterator
- java.util.Locale
- java.lang.reflect.Method
- org.junit.Before
- java.util.LinkedList
- java.util.Properties
- java.util.stream.Collectors
- java.util.LinkedHashMap
- org.junit.Assert
- java.util.TreeMap
- java.util.TreeSet
- org.apache.commons.lang3.StringUtils
- java.sql.SQLException
- java.util.logging.Level
- java.sql.Connection
- java.sql.ResultSet
- org.mockito.Mockito
- com.google.common.collect.ImmutableList
- javax.sql.DataSource
- org.apache.commons.lang.StringUtils
- com.google.common.collect.ImmutableMap
- java.sql.PreparedStatement
- java.sql.Statement
Java Code Examples for java.sql.DatabaseMetaData#supportsNamedParameters()
The following examples show how to use
java.sql.DatabaseMetaData#supportsNamedParameters() .
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: ExtractedDatabaseMetaDataImpl.java From lams with GNU General Public License v2.0 | 6 votes |
public Builder apply(DatabaseMetaData databaseMetaData) throws SQLException { connectionCatalogName = databaseMetaData.getConnection().getCatalog(); // NOTE : databaseMetaData.getConnection().getSchema() would require java 1.7 as baseline supportsRefCursors = StandardRefCursorSupport.supportsRefCursors( databaseMetaData ); supportsNamedParameters = databaseMetaData.supportsNamedParameters(); supportsScrollableResults = databaseMetaData.supportsResultSetType( ResultSet.TYPE_SCROLL_INSENSITIVE ); supportsGetGeneratedKeys = databaseMetaData.supportsGetGeneratedKeys(); supportsBatchUpdates = databaseMetaData.supportsBatchUpdates(); supportsDataDefinitionInTransaction = !databaseMetaData.dataDefinitionIgnoredInTransactions(); doesDataDefinitionCauseTransactionCommit = databaseMetaData.dataDefinitionCausesTransactionCommit(); extraKeywords = parseKeywords( databaseMetaData.getSQLKeywords() ); sqlStateType = SQLStateType.interpretReportedSQLStateType( databaseMetaData.getSQLStateType() ); lobLocatorUpdateCopy = databaseMetaData.locatorsUpdateCopy(); typeInfoSet = new LinkedHashSet<TypeInfo>(); typeInfoSet.addAll( TypeInfo.extractTypeInfo( databaseMetaData ) ); return this; }
Example 2
Source File: preparedData.java From openbd-core with GNU General Public License v3.0 | 5 votes |
public static boolean supportsNamedParameters(Connection _conn) { // If the driver supports named parameters then return true try { DatabaseMetaData dbmd = _conn.getMetaData(); if (dbmd.supportsNamedParameters()) return true; } catch (Throwable t) { // The supportsNamedParameters() method was added in JDBC 3.0 (JDK 1.4) so // ignore exceptions that might be thrown by older drivers. For example, // with older JTurbo drivers the above call causes a java.lang.AbstractMethodError. } // Must not support named parameters so return false return false; }
Example 3
Source File: Dialect.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Override the DatabaseMetaData#supportsNamedParameters() * * @return boolean * * @throws SQLException Accessing the DatabaseMetaData can throw it. Just re-throw and Hibernate will handle. */ public boolean supportsNamedParameters(DatabaseMetaData databaseMetaData) throws SQLException { return databaseMetaData != null && databaseMetaData.supportsNamedParameters(); }