if ( sqlType != Types.INTEGER && sqlType != Types.NUMERIC && sqlType != Types.DECIMAL && sqlType != Types.BIGINT) throw new MappingException( Messages.format( "mapping.keyGenSQLType", getClass().getName(), new Integer( sqlType ) ) );
supportsSqlType( sqlType );
    public HighLowKeyGenerator( PersistenceFactory factory,  Properties params, int sqlType )            throws MappingException    {        String factorStr;        _factory = factory;        _sqlType = sqlType;        if ( sqlType != Types.INTEGER && sqlType != Types.NUMERIC && sqlType != Types.DECIMAL && sqlType != Types.BIGINT)            throw new MappingException( Messages.format( "mapping.keyGenSQLType",                                        getClass().getName(), new Integer( sqlType ) ) );        _seqTable = params.getProperty( SEQ_TABLE );        if ( _seqTable == null )             throw new MappingException( Messages.format( "mapping.KeyGenParamNotSet",                                        SEQ_TABLE, getClass().getName() ) );        _seqKey = params.getProperty( SEQ_KEY );        if ( _seqKey == null )             throw new MappingException( Messages.format( "mapping.KeyGenParamNotSet",                                        SEQ_KEY, getClass().getName() ) );        _seqValue = params.getProperty( SEQ_VALUE );        if ( _seqValue == null )             throw new MappingException( Messages.format( "mapping.KeyGenParamNotSet",                                        SEQ_VALUE, getClass().getName() ) );        factorStr = params.getProperty( GRAB_SIZE, "10" );        try {            _grabSizeI = Integer.parseInt( factorStr );        } catch ( NumberFormatException except ) {            _grabSizeI = 0;        }        if ( _grabSizeI <= 0 )             throw new MappingException( Messages.format( "mapping.wrongKeyGenParam",                                        factorStr, GRAB_SIZE, getClass().getName() ) );        _grabSizeD = new BigDecimal( _grabSizeI );        _sameConnection = "true".equals( params.getProperty( SAME_CONNECTION ) );        _global = "true".equals( params.getProperty( GLOBAL ) );    }