/** * @param encoding * the encoding to set */ @Override public void setStringEncoding( String encoding ) { this.stringEncoding = encoding; determineSingleByteEncoding(); compareStorageAndActualFormat(); }
public ValueMeta( String name, int type, int length, int precision ) { this.name = name; this.type = type; this.length = length; this.precision = precision; this.storageType = STORAGE_TYPE_NORMAL; this.sortedDescending = false; this.outputPaddingEnabled = false; this.decimalSymbol = "" + Const.DEFAULT_DECIMAL_SEPARATOR; this.groupingSymbol = "" + Const.DEFAULT_GROUPING_SEPARATOR; this.dateFormatLocale = Locale.getDefault(); this.dateFormatTimeZone = TimeZone.getDefault(); this.identicalFormat = true; this.bigNumberFormatting = true; this.lenientStringToNumber = convertStringToBoolean( Const.NVL( System.getProperty( Const.KETTLE_LENIENT_STRING_TO_NUMBER_CONVERSION, "N" ), "N" ) ); super.determineSingleByteEncoding(); setDefaultConversionMask(); }
public ValueMetaBase( String name, int type, int length, int precision, Comparator<Object> comparator ) { this.name = name; this.type = type; this.length = length; this.precision = precision; this.storageType = STORAGE_TYPE_NORMAL; this.sortedDescending = false; this.outputPaddingEnabled = false; this.decimalSymbol = "" + Const.DEFAULT_DECIMAL_SEPARATOR; this.groupingSymbol = "" + Const.DEFAULT_GROUPING_SEPARATOR; this.dateFormatLocale = Locale.getDefault(); this.collatorDisabled = true; this.collatorLocale = Locale.getDefault(); this.collator = Collator.getInstance( this.collatorLocale ); this.collatorStrength = 0; this.dateFormatTimeZone = TimeZone.getDefault(); this.identicalFormat = true; this.bigNumberFormatting = true; this.lenientStringToNumber = convertStringToBoolean( Const.NVL( System.getProperty( Const.KETTLE_LENIENT_STRING_TO_NUMBER_CONVERSION, "N" ), "N" ) ); this.ignoreTimezone = convertStringToBoolean( Const.NVL( System.getProperty( Const.KETTLE_COMPATIBILITY_DB_IGNORE_TIMEZONE, "N" ), "N" ) ); this.comparator = comparator; determineSingleByteEncoding(); setDefaultConversionMask(); }