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 $
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 |
DefaultValueHelper
public DefaultValueHelper()
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 valueoriginalTypeCode
- The original type codetargetTypeCode
- The target type code
- Returns:
- The converted default value
Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.