Back to project page SimpleStorage.
The source code is released under:
Apache License
If you think the Android project SimpleStorage listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.njzk2.simplestorage.handler; /* ww w . j a va2 s.c o m*/ import android.database.Cursor; public class BooleanHandler extends TypeHandler<Boolean> { @Override public Boolean fromCursor(String name, Cursor content) { return content.getInt(content.getColumnIndex(name)) != 0; } @Override public String getSQLType() { return "INTEGER"; } }