return createNamedUserTagObject(userTagTblAlias, tagTblAlias, userTblAlias, rs,false);
}
public static UserTag createNamedUserTagObject(String userTagTblAlias, String tagTblAlias, String userTblAlias, ResultSet rs, boolean noColumnRef) throws SQLException{
if(rs == null) return null;
UserTag userTag = new UserTag();
Tag tag = createNamedTagObject(tagTblAlias, rs, noColumnRef);
userTag.setTag(tag);
User user = UserDBDao.createNamedUserObject(userTblAlias, rs, noColumnRef);
userTag.setUser(user);
String idCol = userTagTblAlias+UserTagIdxSchema.ID_COL;
String countCol = userTagTblAlias+UserTagIdxSchema.COUNT_COL;
if(noColumnRef == true){
idCol = idCol.replaceAll("\\.","_");
countCol = countCol.replaceAll("\\.","_");
}
userTag.setId(rs.getInt(idCol));
userTag.setCount(rs.getInt(countCol));
return userTag;
}