Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String addDateLesserCondition(String conditions, String key, String value) {
        if ((conditions == null) || (key == null) || (value == null) || (key == "") || (value == ""))
            return conditions;
        conditions = (new StringBuilder(String.valueOf(conditions))).append(" and to_date(").append(key)
                .append(",'yyyy-mm-dd')<to_date('").append(value).append("','yyyy-mm-dd')").toString();
        return conditions;
    }
}