New $RR API Methods in RapidRep 5.7.4

Read news about the RapidRep Application

New $RR API Methods in RapidRep 5.7.4

Postby ChristoffSchmitz » 19 Apr 2018, 13:02

Date arithmetic

isLeapYear(Year)
isLeapYear(Date)
getDayOfYear(Date)
diffInDays(Date, Date)
diffInHours(Date, Date)
diffInMinutes(Date, Date)
diffInSeconds(Date, Date)
diffInMilliseconds(Date, Date)

SQL Error Handling

catchExceptionForSqlExec(SQL)
catchExceptionForSqlExec(SQL, Connection)
tryExecuteSql(SQL)
tryExecuteSql(SQL, Connection)

Utility functions for Maps & Collections

addIfMissing(Collection, Value)
addAllMissing(Collection, Values)
containsDuplicateValues(Map)
removeAll(Map, Keys)
removeAll(Map, OtherMap)
add(Map, Key, Value)
addIfMissing(Map, Key, Value)
addAll(Map, OtherMap)
addAllMissing(Map, OtherMap)
addAll(Map, Keys, Value/Values)
addAllMissing(Map, Keys, Value/Values)
retainAll(Map, Keys)
retainAll(Map, OtherMap)
retain(Map, Key)
containsAny(Collection, Values)
containsAll(Collection, Values)

Iterators

getCharIterator(String)
getStringSplitIterator(String, length)
getStringSplitIterator(String, SplitPattern)
getRegexStringSplitIterator(String, RegexSplitPattern)
getCycleIterator(Iterator)
getReverseIterator(Iterator)
getDoubleIterator(LowerBound, UpperBound)
getBigDecimalIterator(LowerBound, UpperBound)
getBigDecimalIterator(LowerBound, UpperBound, StepSize)
getIntegerIterator(LowerBound, UpperBound)
getIntegerIterator(LowerBound, UpperBound, StepSize)
getLongIterator(LowerBound, UpperBound)
getLongIterator(LowerBound, UpperBound, StepSize)
getDateIteratorBySecond(LowerBound, UpperBound)
getDateIteratorBySecond(LowerBound, UpperBound, StepSize)
getDateIteratorByMinute(LowerBound, UpperBound)
getDateIteratorByMinute(LowerBound, UpperBound, StepSize)
getDateIteratorByHour(LowerBound, UpperBound)
getDateIteratorByHour(LowerBound, UpperBound, StepSize)
getDateIteratorByDay(LowerBound, UpperBound)
getDateIteratorByDay(LowerBound, UpperBound, StepSize)

Please note that all Iterator functions taking LowerBound, UpperBound, StartPosition and StepSize as Arguments were removed with RapidRep 5.7.4
StartPosition is no longer supported by our Iterators. If your have used one of the removed functions, you will have to replace it with the corresponding function taking LowerBound, UpperBound and StepSize. To achieve the same functionality you will have to set the new LowerBound to the value of the formerly used StartPosition.


Other functions

encodeRegexPattern(String)
isNullOrEmpty(Object)


The method descriptions will be included in the RapidRep 5.7.4 documentation and in the inline method proposals ($RR.)
ChristoffSchmitz
 
Posts: 11
Joined: 20 Aug 2013, 09:54

Return to News



Who is online

Users browsing this forum: No registered users and 1 guest

cron