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

## org.apache.ddlutils.platform
Class DefaultValueHelper

    java.lang.Object
      org.apache.ddlutils.platform.DefaultValueHelper

    public class DefaultValueHelper

extends Object

Helper class for dealing with default values, e.g. converting them to other types.

Version:
  $Revision: 289996 $

Constructor Summary
`DefaultValueHelper()`

Method Summary
`String` | `convert(String defaultValue, int originalTypeCode, int targetTypeCode)` Converts the given default value from the specified original to the target jdbc type.

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

Constructor Detail

### DefaultValueHelper

    public DefaultValueHelper()

Method Detail

### convert

    public String convert(String defaultValue,
                          int originalTypeCode,
                          int targetTypeCode)

  Converts the given default value from the specified original to the target jdbc type.

  Parameters:
    `defaultValue` - The default value
    `originalTypeCode` - The original type code
    `targetTypeCode` - The target type code
  Returns:
    The converted default value

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

Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.