org.apache.ddlutils.platform
Class DefaultValueHelper

java.lang.Object
  extended by 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


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