Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.ao.types;
 
 
 
import static java.sql.Types.DOUBLE;
import static java.sql.Types.NUMERIC;
import static java.sql.Types.DECIMAL;
final class DoubleType extends AbstractLogicalType<Double>
    public DoubleType()
    {
        super("Double",
              new Class<?>[] { Double.classdouble.class },
              new Integer[] {  });
    }
    @Override
    public Double pullFromDatabase(EntityManager managerResultSet resClass<DoubletypeString columnName)
        throws SQLException
    {
        return res.getDouble(columnName);
    }
    
    @Override
    protected Double validateInternal(Double value)
    {
        DoubleUtils.checkDouble(value);
        return value;
    }
    
    @Override
    public Double parse(String input)
    {
        return StringUtils.isBlank(input) ? null : Double.parseDouble(input);
    } 
New to GrepCode? Check out our FAQ X