ColumnImpl extends RelationalChildRestrictedObject implements Column { @Override public boolean isUpdatable( final UnitOfWork transaction ) throws KException { final String option = OptionContainerUtils.getOption( transaction, this, StandardOption.UPDATABLE.name() ); if ( option == null ) { return Column.DEFAULT_UPDATABLE; } return Boolean.parseBoolean( option ); } ColumnImpl( final UnitOfWork uow,
                       final Repository repository,
                       final String workspacePath ); @Override long getCharOctetLength( final UnitOfWork transaction ); @Override String getCollationName( final UnitOfWork uow ); @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 getDistinctValues( final UnitOfWork transaction ); @Override long getLength( final UnitOfWork uow ); @Override String getMaxValue( final UnitOfWork transaction ); @Override String getMinValue( final UnitOfWork transaction ); @Override String getNameInSource( final UnitOfWork transaction ); @Override String getNativeType( final UnitOfWork transaction ); @Override Nullable getNullable( final UnitOfWork uow ); @Override long getNullValueCount( final UnitOfWork transaction ); @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 getRadix( final UnitOfWork transaction ); @Override long getScale( final UnitOfWork uow ); @Override Searchable getSearchable( final UnitOfWork transaction ); @Override Map< String, String > getStandardOptions(); @Override String[] getStatementOptionNames( final UnitOfWork transaction ); @Override StatementOption[] getStatementOptions( final UnitOfWork transaction ); @Override int getTypeId(); @Override KomodoType getTypeIdentifier( final UnitOfWork uow ); @Override String getUuid( final UnitOfWork transaction ); @Override Table getParent( final UnitOfWork transaction ); @Override boolean hasProperties( final UnitOfWork transaction ); @Override boolean hasProperty( final UnitOfWork transaction,
                                final String name ); @Override boolean isAutoIncremented( final UnitOfWork uow ); @Override boolean isCaseSensitive( final UnitOfWork transaction ); @Override boolean isCurrency( final UnitOfWork transaction ); @Override boolean isCustomOption( final UnitOfWork transaction,
                                   final String name ); @Override boolean isFixedLength( final UnitOfWork transaction ); @Override boolean isSelectable( final UnitOfWork transaction ); @Override boolean isSigned( final UnitOfWork transaction ); @Override boolean isStandardOption( final String name ); @Override boolean isUpdatable( final UnitOfWork transaction ); @Override void removeStatementOption( final UnitOfWork transaction,
                                       final String optionToRemove ); @Override void setAutoIncremented( final UnitOfWork uow,
                                    final boolean newAutoIncremented ); @Override void setCaseSensitive( final UnitOfWork transaction,
                                  final boolean newCaseSensitive ); @Override void setCharOctetLength( final UnitOfWork transaction,
                                    final long newCharOctetLength ); @Override void setCollationName( final UnitOfWork uow,
                                  final String newCollationName ); @Override void setCurrency( final UnitOfWork transaction,
                             final boolean newCurrency ); @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 setDistinctValues( final UnitOfWork transaction,
                                   final long newDistinctValues ); @Override void setFixedLength( final UnitOfWork transaction,
                                final boolean newFixedLength ); @Override void setLength( final UnitOfWork uow,
                           final long newLength ); @Override void setMaxValue( final UnitOfWork transaction,
                             final String newMaxValue ); @Override void setMinValue( final UnitOfWork transaction,
                             final String newMinValue ); @Override void setNameInSource( final UnitOfWork transaction,
                                 final String newNameInSource ); @Override void setNativeType( final UnitOfWork transaction,
                               final String newNativeType ); @Override void setNullable( final UnitOfWork uow,
                             final Nullable newNullable ); @Override void setNullValueCount( final UnitOfWork transaction,
                                   final long newNullValueCount ); @Override void setPrecision( final UnitOfWork uow,
                              final long newPrecision ); @Override void setProperty( final UnitOfWork transaction,
                             final String propertyName,
                             final Object... values ); @Override void setRadix( final UnitOfWork transaction,
                          final long newRadix ); @Override void setScale( final UnitOfWork uow,
                          final long newScale ); @Override void setSearchable( final UnitOfWork transaction,
                               final Searchable newSearchable ); @Override void setSelectable( final UnitOfWork transaction,
                               final boolean newSelectable ); @Override void setSigned( final UnitOfWork transaction,
                           final boolean newSigned ); @Override StatementOption setStatementOption( final UnitOfWork transaction,
                                               final String optionName,
                                               final String optionValue ); @Override void setUpdatable( final UnitOfWork transaction,
                              final boolean newUpdatable ); @Override void setUuid( final UnitOfWork transaction,
                         final String newUuid );  }
@Test public void shouldHaveDefaultUpdatableAfterConstruction() throws Exception { assertThat( this.column.isUpdatable( getTransaction() ), is( Column.DEFAULT_UPDATABLE ) ); }