Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.merge
Class AddColumnToModel

    java.lang.Object
      org.apache.cayenne.merge.AbstractToModelToken
          org.apache.cayenne.merge.AddColumnToModel

All Implemented Interfaces:
  MergerToken

    public class AddColumnToModel

extends AbstractToModelToken

A `MergerToken` to add a `DbAttribute` to a `DbEntity`. The `EntityMergeSupport` will be used to update the mapped `ObjEntity`

Constructor Summary
`AddColumnToModel(DbEntity entity, DbAttribute column)`

Method Summary
`MergerToken` | `createReverse(MergerFactory factory)` Create a token with the reverse direction.
`void` | `execute(MergerContext mergerContext)`
`DbAttribute` | `getColumn()`
`DbEntity` | `getEntity()`
`String` | `getTokenName()`
`String` | `getTokenValue()`

Methods inherited from class org.apache.cayenne.merge.AbstractToModelToken
`getDirection, objEntitiesMappedToDbEntity, remove, remove, synchronizeWithObjEntity, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### AddColumnToModel

    public AddColumnToModel(DbEntity entity,
                            DbAttribute column)

Method Detail

### createReverse

    public MergerToken createReverse(MergerFactory factory)

  Description copied from interface: `MergerToken`
  Create a token with the reverse direction. AddColumn in one direction becomes DropColumn in the other direction.

  Not all tokens are reversible. See `#reversible()`

### execute

    public void execute(MergerContext mergerContext)

### getTokenName

    public String getTokenName()

### getColumn

    public DbAttribute getColumn()

### getTokenValue

    public String getTokenValue()

  Specified by:
    `getTokenValue` in interface `MergerToken`

### getEntity

    public DbEntity getEntity()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.