public int getColumnCount() throws SQLException { return provider.getColumnCount(); }
public int getIntValue(int columnIndex, Integer metadataPropertyKey) throws SQLException { return getIntValue(columnIndex, metadataPropertyKey, 0); }
public String getSchemaName(int index) throws SQLException { String name = provider.getStringValue(adjustColumn(index), ResultsMetadataConstants.GROUP_NAME); if (name != null) { int dotIndex = name.indexOf('.'); if (dotIndex != -1) { return name.substring(0, dotIndex); } } return null; }
private ResultSetMetaData createResultSetMetaData(Map[] columnMetadata) { ResultSetMetaData rsmd = new ResultSetMetaDataImpl(new MetadataProvider(columnMetadata), this.getExecutionProperty(ExecutionProperties.JDBC4COLUMNNAMEANDLABELSEMANTICS)); return rsmd; }
public boolean isAutoIncrement(int index) throws SQLException { return provider.getBooleanValue(adjustColumn(index), ResultsMetadataConstants.AUTO_INCREMENTING); }
public int getIntValue(int columnIndex, Integer metadataPropertyKey, int defaultValue) throws SQLException { Integer val = (Integer) getValue(columnIndex, metadataPropertyKey); if (val == null) { return defaultValue; } return val; }
private ResultSetMetaData createResultSetMetaData(Map[] columnMetadata) { ResultSetMetaData rsmd = new ResultSetMetaDataImpl(new MetadataProvider(columnMetadata), this.getExecutionProperty(ExecutionProperties.JDBC4COLUMNNAMEANDLABELSEMANTICS)); return rsmd; }
public boolean isSigned(int index) throws SQLException { return provider.getBooleanValue(adjustColumn(index), ResultsMetadataConstants.SIGNED); }
public int getIntValue(int columnIndex, Integer metadataPropertyKey, int defaultValue) throws SQLException { Integer val = (Integer) getValue(columnIndex, metadataPropertyKey); if (val == null) { return defaultValue; } return val; }
public ParameterMetaDataImpl getParameterMetaData() throws SQLException { if (parameterMetaData == null) { //TODO: some of the base implementation of ResultSetMetadata could be on the MetadataProvider this.parameterMetaData = new ParameterMetaDataImpl(new ResultSetMetaDataImpl(new MetadataProvider(getMetadataResults().getParameterMetadata()), this.getExecutionProperty(ExecutionProperties.JDBC4COLUMNNAMEANDLABELSEMANTICS))); } return parameterMetaData; }
public String getSchemaName(int index) throws SQLException { String name = provider.getStringValue(adjustColumn(index), ResultsMetadataConstants.GROUP_NAME); if (name != null) { int dotIndex = name.indexOf('.'); if (dotIndex != -1) { return name.substring(0, dotIndex); } } return null; }
public boolean isReadOnly(int index) throws SQLException { return ! provider.getBooleanValue(adjustColumn(index), ResultsMetadataConstants.WRITABLE); }
public String getStringValue(int columnIndex, Integer metadataPropertyKey) throws SQLException { return (String) getValue(columnIndex, metadataPropertyKey); }
public int getIntValue(int columnIndex, Integer metadataPropertyKey) throws SQLException { return getIntValue(columnIndex, metadataPropertyKey, 0); }
public int getColumnCount() throws SQLException { return provider.getColumnCount(); }
public ParameterMetaDataImpl getParameterMetaData() throws SQLException { if (parameterMetaData == null) { //TODO: some of the base implementation of ResultSetMetadata could be on the MetadataProvider this.parameterMetaData = new ParameterMetaDataImpl(new ResultSetMetaDataImpl(new MetadataProvider(getMetadataResults().getParameterMetadata()), this.getExecutionProperty(ExecutionProperties.JDBC4COLUMNNAMEANDLABELSEMANTICS))); } return parameterMetaData; }
public String getColumnName(int index) throws SQLException { if (!useJDBC4ColumnNameAndLabelSemantics) { String result = provider.getStringValue(adjustColumn(index), ResultsMetadataConstants.ELEMENT_LABEL); if (result != null) { return result; } } return provider.getStringValue(adjustColumn(index), ResultsMetadataConstants.ELEMENT_NAME); }
public boolean isWritable(int index) throws SQLException { return provider.getBooleanValue(adjustColumn(index), ResultsMetadataConstants.WRITABLE); }
public String getStringValue(int columnIndex, Integer metadataPropertyKey) throws SQLException { return (String) getValue(columnIndex, metadataPropertyKey); }
public int getColumnDisplaySize(int index) throws SQLException { return provider.getIntValue(adjustColumn(index), ResultsMetadataConstants.DISPLAY_SIZE, Integer.MAX_VALUE); }