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

com.dakuupa.db.TrueFalseDb Maven / Gradle / Ivy

Go to download

Provides Struts 2 developers with easy to use framework for building CRUD (Create, read, update, delete) applications using convention over configuration. Includes several utility classes to facilitate quick Struts 2 app development.

The newest version!
package com.dakuupa.db;

/**
 *
 * @author ETWilliams
 */
public class TrueFalseDb {

    public static final int TRUE = 1;
    public static final int FALSE = 0;

    public static boolean getBooleanValue(int value){

        if (value == TRUE){
            return true;
        }
        else{
            return false;
        }
    }

    public static int getDbValue(boolean value){

        if (value){
            return TRUE;
        }
        else{
            return FALSE;
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy