Saturday, July 13, 2013

Daughtry setlist tour 2013

Outta My Head
Crawling Back to You
Over You
Feels Like Tonight
In the Air Tonight(Phil Collins cover with Brad Arnold)
No Surprise
Life After You
It's Not Over
September
Home
There and Back Again


3 Doors Down setlist 2013

Time of My Life
Duck and Run
Loser
One Light
It's Not My Time
Away From the Sun
Citizen/Soldier
Behind Those Eyes
Here Without You
Symphony of Destruction (Megadeth cover)
The Better Life
Kryptonite (with Chris Daughtry)
When I'm Gone

Wednesday, July 10, 2013

Slash featuring Myles Kennedy and the conspirators @House of Blues, Boston, MA 8th July 2013

Halo
Been There Lately
Standing in the Sun
Doctor Alibi
Welcome to the Jungle
Rocket Queen
Back from Cali
Gotten
No More Heroes
Starlight
Let It Roll
Shine
Nothing to Say
We Will Roam
Nightrain
Ghost
You're a Lie
Sweet Child O' Mine
Slither
Anastasia


Encore:
Immigrant Song
Paradise City

Wednesday, June 19, 2013

Counting Crows setlist 2013

@Bank of America Pavillion, Boston, MA 18th June 2013

Black and Blue
Omaha
Start Again
Richard Manuel is Dead
Round Here
Catapult
Daylight Fading
Return of the Grievous Angel
You Ain't Goin' Nowhere
1492
Colorblind
Children in Bloom
Goodnight L.A.
Hospital
Anna Begins
Meet on the Ledge
A Long December
Rain King

Encore:
Washington Square
Holiday in Spain
Walkaways
Hanginaround 

Saturday, June 15, 2013

Monday, March 25, 2013

Ibatis queryForList returning a List of String objects

Using an IBatis query that returns mutiple rows from the database, each row can be returned as an object and all these individual objects can be encompassed in a List.

query
<select id="getEmpNames" resultClass="java.lang.String">
        select names from emp_address where dept_id = #value#
    </select>
   
    Java code
    public class EmployeeDaoImpl extends SqlMapClientDaoSupport {
    ...
    ...
        public List<String> getEmpNames(Long deptId) {
       
         List<String> tempList = getSqlMapClientTemplate().queryForList("getEmpNames", deptId);
         return tempList;
         }
     ..
     }
   

For example if the above code snippet returns 5 rows from the database, IBatis internally constructs 5 String objects and returns a List<String>.

Friday, March 8, 2013

Convert java attributes to start with upperCase when being written to xml file using XStream

    if (xstream == null) {
                xstream = new XStream(){
                  
                    @Override
                    protected MapperWrapper wrapMapper(MapperWrapper next) {
                            return new UpperCaseMapper(next);
                    }
                };
            }
           
    private static class UpperCaseMapper extends MapperWrapper {
        public UpperCaseMapper(Mapper wrapped) {
                super(wrapped);
        }

        @Override
        public String serializedMember(Class type, String memberName) {
            String camelCase = memberName.substring(0, 1).toUpperCase() + memberName.substring(1);
            return super.serializedMember(type, camelCase);
        }
       
        @Override
        public String realMember(Class type, String serialized) {
                String camelCase = serialized.substring(0, 1).toLowerCase()
                                + serialized.substring(1);
                return super.realMember(type, camelCase);
        }
    }