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#functionColumnIn()
The following examples show how to use
java.sql.DatabaseMetaData#functionColumnIn() .
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: JDBCUtils.java From netbeans with Apache License 2.0 | 5 votes |
public static Direction getFunctionDirection(short sqlDirection) { switch (sqlDirection) { case DatabaseMetaData.functionColumnOut: return Direction.OUT; case DatabaseMetaData.functionColumnInOut: return Direction.INOUT; case DatabaseMetaData.functionColumnIn: return Direction.IN; default: LOGGER.log(Level.INFO, "Unknown direction value from DatabaseMetadata.getFunctionColumns(): " + sqlDirection); return Direction.IN; } }
Example 2
Source File: JDBCFunction.java From netbeans with Apache License 2.0 | 4 votes |
protected void createProcedureInfo() { LOGGER.log(Level.FINE, "Initializing procedure info in " + this); Map<String, Column> newColumns = new LinkedHashMap<String, Column>(); Map<String, Parameter> newParams = new LinkedHashMap<String, Parameter>(); int resultCount = 0; int paramCount = 0; try { ResultSet rs = jdbcSchema.getJDBCCatalog().getJDBCMetadata().getDmd().getFunctionColumns(jdbcSchema.getJDBCCatalog().getName(), jdbcSchema.getName(), name, "%"); // NOI18N try { while (rs.next()) { short columnType = rs.getShort("COLUMN_TYPE"); switch (columnType) { case DatabaseMetaData.functionColumnResult: addColumn(++resultCount, rs, newColumns); break; case DatabaseMetaData.functionColumnIn: case DatabaseMetaData.functionColumnInOut: case DatabaseMetaData.functionColumnOut: case DatabaseMetaData.functionColumnUnknown: addParameter(++paramCount, rs, newParams); break; case DatabaseMetaData.functionReturn: setReturnValue(rs); break; default: LOGGER.log(Level.INFO, "Encountered unexpected column type " + columnType + " when retrieving metadadta for procedure " + name); } } } finally { if (rs != null) { rs.close(); } } } catch (SQLException e) { throw new MetadataException(e); } columns = Collections.unmodifiableMap(newColumns); parameters = Collections.unmodifiableMap(newParams); }