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
Interface MergerToken

All Known Implementing Classes:
  AbstractToDbToken, AbstractToModelToken, AddColumnToDb, AddColumnToModel, AddRelationshipToDb, AddRelationshipToModel, CreateTableToDb, CreateTableToModel, DropColumnToDb, DropColumnToModel, DropRelationshipToDb, DropRelationshipToModel, DropTableToDb, DropTableToModel, SetAllowNullToDb, SetAllowNullToModel, SetColumnTypeToDb, SetColumnTypeToModel, SetNotNullToDb, SetNotNullToModel

    public interface MergerToken

Method Summary
`MergerToken` | `createReverse(MergerFactory factory)` Create a token with the reverse direction.
`void` | `execute(MergerContext mergerContext)`
`MergeDirection` | `getDirection()` The direction of this token.
`String` | `getTokenName()`
`String` | `getTokenValue()`

Method Detail

### getTokenName

    String getTokenName()

### getTokenValue

    String getTokenValue()

### getDirection

    MergeDirection getDirection()

  The direction of this token. One of `MergeDirection.TO_DB` or `MergeDirection.TO_MODEL`

### createReverse

    MergerToken createReverse(MergerFactory factory)

  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

    void execute(MergerContext mergerContext)

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.