All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xblackcat.sjpu.storage.converter.ToStringConverter Maven / Gradle / Ivy

Go to download

Service for generating DB access logic in simple way via interfaces and annotations

There is a newer version: 2.0
Show newest version
package org.xblackcat.sjpu.storage.converter;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * The class to convert a single-column result to Boolean object.
 * 

* Valid values are threaded as true: boolean true, non-zero number value. * All other values are threaded as false. NULL threaded as null. */ public class ToStringConverter implements IToObjectConverter { public String convert(ResultSet rs) throws SQLException { return rs.getString(1); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy