Examples of makeDateInInterval()


Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

        fields[5] = "e" + id + "t.jpg"; // imagethumburl
        fields[6] = "e" + id + "l.pdf"; //literatureurl
        fields[7] = RandomUtil.randomPhone(r, buffer); //phone
        DateFormat dateFormat = tr.getDateFormat(); // eventtimestamp
        String eventDate = dateFormat.format(
                    r.makeDateInInterval(BASE_DATE, 0, 540));
        int eventHr = r.random(7, 21);
        String eventMin = EVT_MINUTES[r.random(0, 3)]// eventtimestamp
        fields[8] = String.format("%s %02d:%s:00",
                                            eventDate, eventHr, eventMin);
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

        int eventHr = r.random(7, 21);
        String eventMin = EVT_MINUTES[r.random(0, 3)]// eventtimestamp
        fields[8] = String.format("%s %02d:%s:00",
                                            eventDate, eventHr, eventMin);

        createdTimestamp = r.makeDateInInterval( //createdtimestamp
                                        BASE_DATE, -540, 0);
        ifields[0] = r.random(1, ScaleFactors.users); // addressId
        // The rest is initialized to 0 anyway, leave it that way.
    }
   
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

            int userId = r.random(1, ScaleFactors.users);
            userNames[i] = UserName.getUserName(userId);
            comments[i] = r.makeCString(10, 1000);
            ratings[i] = r.random(2, 5);          
        }
    created_at = r.makeDateInInterval( BASE_DATE, -540, 0);

    }


    public void load() {
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

        fields[5] = "e" + id + "l.pdf"; //literatureurl
        fields[6] = RandomUtil.randomPhone(r, buffer); //phone
        fields[7] = RandomUtil.randomTimeZone(r); // timezone
        DateFormat dateFormat = tr.getDateFormat(); // eventtimestamp
        String eventDate = dateFormat.format(
                    r.makeDateInInterval(BASE_DATE, 0, 540));
        int eventHr = r.random(7, 21);
        String eventMin = EVT_MINUTES[r.random(0, 3)]// eventtimestamp
        fields[8] = String.format("%s %02d:%s:00",
                                            eventDate, eventHr, eventMin);
        fields[9] = eventDate; // eventdate
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

        String eventMin = EVT_MINUTES[r.random(0, 3)]// eventtimestamp
        fields[8] = String.format("%s %02d:%s:00",
                                            eventDate, eventHr, eventMin);
        fields[9] = eventDate; // eventdate
        fields[10] = RandomUtil.randomText(r, 50, 90); //summary
        createdTimestamp = r.makeDateInInterval( //createdtimestamp
                BASE_DATE, -540, 0);
        ifields[0] = r.random(1, ScaleFactors.users); // addressId
        // The rest is initialized to 0 anyway, leave it that way.
    }
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

            int userId = r.random(1, ScaleFactors.users);
            userNames[i] = UserName.getUserName(userId);
            comments[i] = r.makeCString(10, 1000);
            ratings[i] = r.random(2, 5);
        }
        created_at = r.makeDateInInterval( BASE_DATE, -540, 0);
    }


    public void load() {
        ThreadConnection c = ThreadConnection.getInstance();
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

        fields[0] = RandomUtil.randomText(r, 20, 100); //title
        fields[1] = RandomUtil.randomText(r, 1024, 4096); // description
        fields[2] = RandomUtil.randomPhone(r, buffer); //phone
        DateFormat dateFormat = tr.getDateFormat(); // eventtimestamp
        String eventDate = dateFormat.format(
                    r.makeDateInInterval(BASE_DATE, 0, 540));
                   
        int eventHr = r.random(7, 21);
        String eventMin = EVT_MINUTES[r.random(0, 3)]// eventtimestamp
        fields[3] = String.format("%s %02d:%s:00",
                                            eventDate, eventHr, eventMin);
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

        fields[3] = String.format("%s %02d:%s:00",
                                            eventDate, eventHr, eventMin);
        fields[4] = eventDate; // eventdate
        fields[5] = RandomUtil.randomText(r, 500, 1024); // summary
       
        createdTimestamp = r.makeDateInInterval( //createdtimestamp
                BASE_DATE, -540, 0);
       
        ifields[0] = r.random(1, ScaleFactors.users);
        ifields[1] = 0;
        ifields[2] = 0;
View Full Code Here

Examples of com.sun.faban.driver.util.Random.makeDateInInterval()

        for (int i = 0; i < users.length; i++) {
            users[i] = r.random(1, ScaleFactors.users);;
            comments[i] = r.makeCString(250, 1024);
            ratings[i] = r.random(2, 5);
        }
        createdTimestamp = r.makeDateInInterval( //createdtimestamp
                BASE_DATE, -540, 0);
    }


    public void load() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.