ResultSetColumnImpl extends RelationalChildRestrictedObject implements ResultSetColumn { @Override public Map< String, String > getStandardOptions() { return StandardOption.defaultValues(); } ResultSetColumnImpl( final UnitOfWork uow,
                                final Repository repository,
                                final String workspacePath ); @Override StatementOption[] getCustomOptions( final UnitOfWork transaction ); @Override String getDatatypeName( final UnitOfWork uow ); @Override String getDefaultValue( final UnitOfWork uow ); @Override String getDescription( final UnitOfWork transaction ); @Override long getLength( final UnitOfWork uow ); @Override String getNameInSource( final UnitOfWork transaction ); @Override Nullable getNullable( final UnitOfWork uow ); @Override long getPrecision( final UnitOfWork uow ); @Override Descriptor getPrimaryType( final UnitOfWork transaction ); @Override Property getProperty( final UnitOfWork transaction,
                                 final String name ); @Override PropertyDescriptor getPropertyDescriptor( final UnitOfWork transaction,
                                                     final String propName ); @Override String[] getPropertyNames( final UnitOfWork transaction ); @Override long getScale( final UnitOfWork uow ); @Override Map< String, String > getStandardOptions(); @Override String[] getStatementOptionNames( final UnitOfWork transaction ); @Override StatementOption[] getStatementOptions( final UnitOfWork transaction ); @Override KomodoType getTypeIdentifier( final UnitOfWork uow ); @Override String getUuid( final UnitOfWork transaction ); @Override boolean hasProperties( final UnitOfWork transaction ); @Override boolean hasProperty( final UnitOfWork transaction,
                                final String name ); @Override boolean isCustomOption( final UnitOfWork transaction,
                                   final String name ); @Override boolean isStandardOption( final String name ); @Override void removeStatementOption( final UnitOfWork transaction,
                                       final String optionToRemove ); @Override void setDatatypeName( final UnitOfWork uow,
                                 final String newTypeName ); @Override void setDefaultValue( final UnitOfWork uow,
                                 final String newDefaultValue ); @Override void setDescription( final UnitOfWork transaction,
                                final String newDescription ); @Override void setLength( final UnitOfWork uow,
                           final long newLength ); @Override void setNameInSource( final UnitOfWork transaction,
                                 final String newNameInSource ); @Override void setNullable( final UnitOfWork uow,
                             final Nullable newNullable ); @Override void setPrecision( final UnitOfWork uow,
                              final long newPrecision ); @Override void setProperty( final UnitOfWork transaction,
                             final String propertyName,
                             final Object... values ); @Override void setScale( final UnitOfWork uow,
                          final long newScale ); @Override StatementOption setStatementOption( final UnitOfWork transaction,
                                               final String optionName,
                                               final String optionValue ); @Override void setUuid( final UnitOfWork transaction,
                         final String newUuid );  }
@Test public void shouldIncludeStandardOptionsWithPropertyDescriptors() throws Exception { final Set< String > optionNames = this.column.getStandardOptions().keySet(); final PropertyDescriptor[] propDescriptors = this.column.getPropertyDescriptors( getTransaction() ); for ( final String optionName : optionNames ) { boolean found = false; for ( final PropertyDescriptor descriptor : propDescriptors ) { if ( optionName.equals( descriptor.getName() ) ) { assertThat( this.column.getStandardOptions().get( optionName ), is( nullValue() ) ); found = true; break; } } if ( !found ) { fail( "Option '" + optionName + "'was not included in the property descriptors" ); } } }