Re: Java object conversion using ConfigSlurper

2018-05-15 Thread adithyank
Ok. Thanks Daniel. I will proceed in the below way. Pls advice 1. I will write new class `ConfigCustomObjectBuilder` in `ConfigSlurper.groovy` to convert given ConfigObject to custom class instance 2. I will add below new method in ConfigObject T getAs(Class dataStructure) { re

Re: Java object conversion using ConfigSlurper

2018-05-16 Thread adithyank
Hi Mario Garcia, Groovy already has Map coercion feature with which the methods of any class can be delegated to the closures in Map. This uses `as` keyword. If we implement `asType(Class)` in `ConfigObject` (ConfigObject already implements Map), some of the functionalities of existing coercion m

Re: Java object conversion using ConfigSlurper

2018-05-16 Thread adithyank
Yes Jesper, It works. But, If that `MyConfig` class has fields of `List` or `Map` types, then it does not work. I am looking this feature as a way of converting `ConfigObject` (inturn Map>>>) of any levels to its respective java object with nested `List`, `Map`, `Other classes`. Now, what dec

sql.withBatch(batchSize, query) {} does not give performance benefit. Inserts rows one by one in database

2018-05-16 Thread adithyank
Team, sql.withBatch(batchSize, query) {} does not give performance benefit. Inserts rows one by one in database Below is the code I used The observations are below 1. The time taken to insert 10 lac rows is same as individual insert statements that I was having previously 2. Also, in Database

Re: sql.withBatch(batchSize, query) {} does not give performance benefit. Inserts rows one by one in database

2018-05-16 Thread adithyank
Sorry, the embedded code inside the tags disappeared in the final mail. So, edited the original post with with tags...! -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

New DSLs in the groovy platform itself for more script like use cases

2018-05-17 Thread adithyank
I have always felt that groovy platform itself can have rich set of DSLs (list given below) so that groovy will be in hands of many non-developers. Even developers will find it much useful for quicker outputs.We can design the DSLs in such a way that non-developers can define the work in declarativ

Re: sql.withBatch(batchSize, query) {} does not give performance benefit. Inserts rows one by one in database

2018-05-30 Thread adithyank
Team, sql.withBatch(batchSize, query) {} does not give performance benefit. Inserts rows one by one in database Below is the code I used ``` sql.withBatch(1000, phQuery) {BatchingPreparedStatementWrapper ps -> rows.each {

Re: New DSLs in the groovy platform itself for more script like use cases

2018-05-30 Thread adithyank
Hi All, Sorry for the disturbance ! I had proposed some of the friendly DSLs in groovy platform itself. The original post here http://groovy.329449.n5.nabble.com/New-DSLs-in-the-groovy-platform-itself-for-more-script-like-use-cases-td5750522.html As I am new the this dev group, I have couple of

Re: New DSLs in the groovy platform itself for more script like use cases

2018-06-02 Thread adithyank
Thanks Jochen Theodorou, Thanks for the feedback. I will create new topic of each DSL and elaborate there to enable easy discussions...! Reg, Adithyan K -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

High Level DSL for Database Querying

2018-06-02 Thread adithyank
Team, As suggested by Jochen Theodorou in this post, I have created this topic for `Database DSL` To make groovy usable in the hands of non-developer community database q

Re: High Level DSL for Database Querying

2018-10-12 Thread adithyank
Team, As suggested by Jochen Theodorou in this post, I have created this topic for `Database DSL` The methods given in this thread are some examples. We can either mod

Text / String processing DSL in groovy for String/Text processing (Both Command line usage and script based usage)

2018-10-12 Thread adithyank
As suggested by Jochen Theodorou in this post, I have created this topic for `Text / String processing` I have always felt that groovy platform itself can have rich set of

More Default String Methods

2018-10-12 Thread adithyank
As suggested by Jochen Theodorou in this link post, I have created this topic for `More Default String Methods` I would like to work in these if the community accepts this

Re: More Default String Methods

2018-10-20 Thread adithyank
There are couple of queries and I responded inline. How should I proceed now? Can I start coding ? or I have to write the documentation along with implementation details some where and send the link? Kindly advice -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: High Level DSL for Database Querying

2018-10-20 Thread adithyank
Hi MG, The objective of my proposal is to make "Database querying and result processing" more handy also for non developers. i.e., mostly people who can write shell scripts or some simple perl scripts. In that view, I proposed a wrapper DSL overy groovy's `Sql` class. I feel that your idea is ne

Re: Text / String processing DSL in groovy for String/Text processing (Both Command line usage and script based usage)

2018-10-20 Thread adithyank
just delete/move this topic away from the active list... Thanks, K Adithyan India adithyank wrote > As suggested by Jochen Theodorou in this > < > http://groovy.329449.n5.nabble.com/New-DSLs-in-the-groovy-platform-itself-for-more-script-like-use-cases-td5750522.html > > >

Re: More Default String Methods

2018-11-25 Thread adithyank
I have created a PR for this change and kept in my fork itself. Link below https://github.com/adithyank/groovy/pull/1 I have a doubt whether a jira issue be created for every commit... How should I Proceed... Kindly advice - Thanks, Adithyan K India -- Sent from: http://groovy.329449

Configuring Extension Module using Custom Annotation

2019-06-18 Thread adithyank
Hi Groovy Team, We have a DSL plug-in platform in our company. I advice people to write Extension module classes for existing Java classes for better readable code in groovy environment. In that perspective, I want to avoid every one having comma separated class name entries in `META-INF/groovy/or

Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread adithyank
Hi Eric, 1. The idea of maintaining one File with command separated values is ok if the classes are few (in 4 or 5). If we plan to write lot of Extension Classes, then that single file is becoming un-manageable 2. If repo is branched, then same file is touched by more people with their own entries

Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread adithyank
By having a annotation processor, we can update the org.codehaus.groovy.runtime.ExtensionModule file with required entries during compilation time... Having said that I will be happy if we have some arrangement like this... 1. We will have below directories in classpath a. META-INF/groovy/ex

Re: Configuring Extension Module using Custom Annotation

2019-06-20 Thread adithyank
So far we have only Java Extension classes. With AST Transformation, can we register Extension classes with Groovy Runtime?? is it what you are saying? - Thanks, Adithyan K India -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html