@Test public void shouldReturnScaleBasedUponPropertyTypeWhenResultIsNotExtendedJcrQueryResult() { assertThat(extMetadata.getScale(1), is(0)); assertThat(extMetadata.getScale(2), is(0)); assertThat(extMetadata.getScale(3), is(0)); assertThat(extMetadata.getScale(4), is(0)); assertThat(extMetadata.getScale(5), is(3)); }
@Override public int getScale( int column ) { JcrType typeInfo = getJcrType(column); if (typeInfo.getJcrType() == PropertyType.DOUBLE) { return 3; } return 0; }
JcrResultSetMetaData implements ResultSetMetaData { @Override public int getScale( int column ) { JcrType typeInfo = getJcrType(column); if (typeInfo.getJcrType() == PropertyType.DOUBLE) { return 3; } return 0; } }
JcrResultSetMetaData implements ResultSetMetaData { @Override public int getScale( int column ) { JcrType typeInfo = getJcrType(column); if (typeInfo.getJcrType() == PropertyType.DOUBLE) { return 3; } return 0; } protected  JcrResultSetMetaData( JcrConnection connection,
                                    QueryResult results ); }
JcrResultSetMetaData implements ResultSetMetaData { @Override public int getScale( int column ) { JcrType typeInfo = getJcrType(column); if (typeInfo.getJcrType() == PropertyType.DOUBLE) { return 3; } return 0; } protected  JcrResultSetMetaData( JcrConnection connection,
                                    QueryResult results ); @Override String getCatalogName( int column ); @Override String getColumnClassName( int column ); @Override int getColumnCount(); @Override int getColumnDisplaySize( int column ); @Override String getColumnLabel( int column ); @Override String getColumnName( int column ); @Override int getColumnType( int column ); @Override String getColumnTypeName( int column ); @Override int getPrecision( int column ); @Override int getScale( int column ); @Override String getSchemaName( int column ); @Override String getTableName( int column ); @Override boolean isAutoIncrement( int column ); @Override boolean isCaseSensitive( int column ); @Override boolean isCurrency( int column ); @Override boolean isDefinitelyWritable( int column ); @Override int isNullable( int column ); @Override boolean isReadOnly( int column ); @Override boolean isSearchable( int column ); @Override boolean isSigned( int column ); @Override boolean isWritable( int column ); @Override boolean isWrapperFor( Class<?> iface ); @Override T unwrap( Class<T> iface ); }
JcrResultSetMetaData implements ResultSetMetaData { @Override public int getScale( int column ) { JcrType typeInfo = getJcrType(column); if (typeInfo.getJcrType() == PropertyType.DOUBLE) { return 3; } return 0; } protected  JcrResultSetMetaData( JcrConnection connection,
                                    QueryResult results ); @Override String getCatalogName( int column ); @Override String getColumnClassName( int column ); @Override int getColumnCount(); @Override int getColumnDisplaySize( int column ); @Override String getColumnLabel( int column ); @Override String getColumnName( int column ); @Override int getColumnType( int column ); @Override String getColumnTypeName( int column ); @Override int getPrecision( int column ); @Override int getScale( int column ); @Override String getSchemaName( int column ); @Override String getTableName( int column ); @Override boolean isAutoIncrement( int column ); @Override boolean isCaseSensitive( int column ); @Override boolean isCurrency( int column ); @Override boolean isDefinitelyWritable( int column ); @Override int isNullable( int column ); @Override boolean isReadOnly( int column ); @Override boolean isSearchable( int column ); @Override boolean isSigned( int column ); @Override boolean isWritable( int column ); @Override boolean isWrapperFor( Class<?> iface ); @Override T unwrap( Class<T> iface );  }