Examples of apply()


Examples of org.apache.ddlutils.alteration.ColumnChange.apply()

                                        targetColumn,
                                        (change instanceof ColumnDataTypeChange) || (change instanceof ColumnSizeChange));
                    processedColumns.add(targetColumn);
                }
                changes.remove(change);
                change.apply(currentModel, getPlatform().isDelimitedIdentifierModeOn());
            }
        }
        // Finally we add primary keys
        for (Iterator changeIt = changes.iterator(); changeIt.hasNext();)
        {
View Full Code Here

Examples of org.apache.ddlutils.alteration.TableChange.apply()

                                        targetColumn,
                                        (change instanceof ColumnDataTypeChange) || (change instanceof ColumnSizeChange));
                    processedColumns.add(targetColumn);
                }
                changes.remove(change);
                change.apply(currentModel, getPlatform().isDelimitedIdentifierModeOn());
            }
        }
        // Finally we add primary keys
        for (Iterator changeIt = changes.iterator(); changeIt.hasNext();)
        {
View Full Code Here

Examples of org.apache.derby.iapi.services.property.PropertySetCallback.apply()

            if (PropertyUtil.whereSet(key, d) == PropertyUtil.SET_IN_JVM)
              continue;
          }

          Serviceable s;
          if ((s = psc.apply(key,value,d)) != null)
            ((TransactionManager) tc).addPostCommitWork(s);
          if (mappedValue == null)
             mappedValue = psc.map(key, value, d);
        }
      }
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.Attribute.apply()

    {
        Attribute attr1 = new DefaultAttribute( atDC );
        Attribute attr2 = new DefaultAttribute( atSN );
        assertNotSame( attr1.hashCode(), attr2.hashCode() );

        attr2.apply( atDC );
        assertEquals( attr1.hashCode(), attr2.hashCode() );

        attr1.add( ( String ) null );
        assertNotSame( attr1.hashCode(), attr2.hashCode() );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.BinaryValue.apply()

    @Test
    public void testSerializeStandard() throws LdapException, IOException, ClassNotFoundException
    {
        BinaryValue bv = new BinaryValue( ( byte[] ) null );
        bv = new BinaryValue( BYTES2 );
        bv.apply( at );
        assertTrue( bv.isValid( BINARY_CHECKER ) );

        BinaryValue cbvSer = deserializeValue( at, serializeValue( bv ) );
        assertNotSame( bv, cbvSer );
        assertTrue( Arrays.equals( bv.getReference(), cbvSer.getReference() ) );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.DefaultAttribute.apply()

    {
        Attribute attr = new DefaultAttribute( atCN );

        try
        {
            attr.apply( null );
            fail();
        }
        catch ( IllegalArgumentException iae )
        {
            assertTrue( true );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.DefaultModification.apply()

            if ( ( attribute != null ) && ( schemaManager != null ) )
            {
                AttributeType attributeType = schemaManager.getAttributeType( attribute.getId() );

                modification.apply( attributeType );
            }

            return modification;
        }
        catch ( IOException ioe )
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.Modification.apply()

            if ( ( attribute != null ) && ( schemaManager != null ) )
            {
                AttributeType attributeType = schemaManager.getAttributeType( attribute.getId() );

                modification.apply( attributeType );
            }

            return modification;
        }
        catch ( IOException ioe )
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.StringValue.apply()

    public void testApply() throws LdapException
    {
        AttributeType attribute = EntryUtils.getIA5StringAttributeType();
        StringValue sv = new StringValue( attribute );

        sv.apply( at );
        assertEquals( null, sv.getNormValue() );

        sv = new StringValue( attribute, "" );
        sv.apply( at );
        assertEquals( "", sv.getNormValue() );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.name.Dn.apply()

                    Dn contextEntryDn = contextEntry.getDn();

                    // Checking if the context entry DN is schema aware
                    if ( !contextEntryDn.isSchemaAware() )
                    {
                        contextEntryDn.apply( schemaManager );
                    }

                    // We're only adding the entry if the two DNs are equal
                    if ( suffixDn.equals( contextEntryDn ) )
                    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.