mgi.logme.worker
Class Finder

java.lang.Object
  extended bymgi.logme.worker.Finder
All Implemented Interfaces:
java.io.Serializable

public class Finder
extends java.lang.Object
implements java.io.Serializable

Finder Klasse für alle Objekte.

 
Beispielanwendung

 Ausgabe aller Objekte des Typs Browser:
 
 Session ses = HibernateUtil.currentSession();
    int i = 0;
    for(Iterator it = Finder.findAll("Browser"); it.hasNext();)
        {
        Browser b = (Browser) it.next();
        out.println(i + " - " +b.getValue()+" 
"); i++; } HibernateUtil.closeSession();

See Also:
Serialized Form

Constructor Summary
Finder()
           
 
Method Summary
static java.lang.Object checkForItem(java.lang.Class c, java.lang.String value)
           
static java.lang.Object checkForPage(java.lang.Class c, java.lang.String value, java.lang.String link)
           
static AnonymousVisit findAnonymousVisit(int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static AnonymousVisit findAnonymousVisit(int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Browser findBrowser(java.lang.String value)
          Deprecated. Use method below instead!
static Browser findBrowser(java.lang.String value, boolean nocreate)
           
static Browser findBrowserByID(int id)
           
static BrowserVisit findBrowserVisit(Browser b, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static BrowserVisit findBrowserVisit(Browser b, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Clickpath findClickpath(java.lang.String value, boolean nocreate)
           
static Clickpath findClickpathByID(int id)
           
static ClickpathVisit findClickpathVisit(Clickpath cp, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static CookieVisit findCookieVisit(int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static CookieVisit findCookieVisit(int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static IPCountry findCountryByID(int id)
           
static IPCountry findCountryByIP(long iplong)
           
static IPCountry findCountryByIP(java.lang.String ip)
           
static CountryVisit findCountryVisit(IPCountry c, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Duration findDuration(int value)
           
static Duration findDurationByID(int id)
           
static DurationVisit findDurationVisit(Duration d, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static FirstpageVisit findFirstpageVisit(Page p, Language l, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Helpdesk findHelpdeskByID(int id)
           
static Helpdesk findHelpdeskByName(java.lang.String name, java.lang.String langid)
           
static JavaVisit findJavaVisit(int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static JavaVisit findJavaVisit(int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static JsVisit findJsVisit(int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static JsVisit findJsVisit(int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Language findLanguage(java.lang.String value)
          Deprecated. Use method below instead!
static Language findLanguage(java.lang.String value, boolean nocreate)
           
static Language findLanguageByID(java.lang.String id)
           
static LanguageVisit findLanguageVisit(Language l, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static LanguageVisit findLanguageVisit(Language l, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static LastpageVisit findLastpageVisit(Page p, Language l, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Link findLink(java.lang.String value)
          Deprecated. Use method below instead!
static Link findLink(java.lang.String value, boolean nocreate)
           
static Link findLinkByID(int id)
           
static LinkVisit findLinkVisit(Link li, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static LinkVisit findLinkVisit(Link li, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static java.util.Iterator findLogMessagesForNodeForTime(java.lang.Integer nodeid, long fromts, long untilts, int loglevel)
           
static Node findNode(java.lang.String ip, java.lang.String hostname)
          Deprecated. Use method below instead!
static Node findNode(java.lang.String ip, java.lang.String hostname, boolean nocreate)
           
static Node findNodeByID(java.lang.Integer id)
           
static Obj findObj(java.lang.String value)
          Deprecated. Use method below instead!
static Obj findObj(java.lang.String value, boolean nocreate)
           
static Obj findObjByID(int id)
           
static ObjectVisit findObjectVisit(Obj obj, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static ObjectVisit findObjectVisit(Obj obj, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Os findOs(java.lang.String value)
          Deprecated. Use method below instead!
static Os findOs(java.lang.String value, boolean nocreate)
           
static Os findOsByID(int id)
           
static OsVisit findOsVisit(Os os, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static OsVisit findOsVisit(Os os, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Page findPage(java.lang.String value, java.lang.String link, Referer r)
          Deprecated. Use method below instead!
static Page findPage(java.lang.String value, java.lang.String link, Referer r, boolean nocreate)
           
static Page findPageByID(int id)
           
static PageVisit findPageVisit(Page p, Language l, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static PageVisit findPageVisit(Page p, Language l, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Query findQuery(java.lang.String value)
          Deprecated. Use method below instead!
static Query findQuery(java.lang.String value, boolean nocreate)
           
static Query findQueryByID(int id)
           
static QueryVisit findQueryVisit(Query q, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static QueryVisit findQueryVisit(Query q, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Referer findReferer(java.lang.String value)
          Deprecated. Use method below instead!
static Referer findReferer(java.lang.String value, boolean nocreate)
           
static Referer findRefererByID(java.lang.String id)
           
static java.util.List findRefererBySiteGroupID(java.lang.Integer id)
           
static Resolution findResolution(java.lang.String value)
          Deprecated. Use method below instead!
static Resolution findResolution(java.lang.String value, boolean nocreate)
           
static Resolution findResolutionByID(int id)
           
static ResolutionVisit findResolutionVisit(Resolution res, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static ResolutionVisit findResolutionVisit(Resolution res, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static java.lang.Object findSearchSingleFinal(java.lang.Class type, java.lang.String term, java.lang.String order)
           
static SessionVisit findSessionVisit(Language l, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static java.util.Iterator findSiteByGroup(SiteGroupName sgn)
           
static SiteGroupName findSiteGroupByID(java.lang.Integer id)
           
static java.util.Iterator findSiteGroupByUserGroup(UserGroupName ugn)
           
static Template findTemplate(java.lang.String value)
          Deprecated. Use method below instead!
static Template findTemplate(java.lang.String value, boolean nocreate)
           
static Template findTemplateByID(int id)
           
static TemplateVisit findTemplateVisit(Template t, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static TemplateVisit findTemplateVisit(Template t, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static java.util.Iterator findUserAccess(User user)
           
static java.util.Iterator findUserByGroup(UserGroupName ugn)
           
static User findUserByID(java.lang.Integer id)
           
static User findUserByName(java.lang.String name)
           
static User findUserByNameAndPassword(java.lang.String username, java.lang.String userpass)
           
static UserGroupName findUserGroupByID(java.lang.Integer id)
           
static java.util.Iterator findUserGroupByUser(User u)
           
static UserVisit findUserVisit(boolean newuser, int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static UserVisit findUserVisit(boolean newuser, int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Visit findVisit(int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static Visit findVisit(int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static Visitor findVisitor(int minute, int hour, int day, int month, int year, Referer r)
          Deprecated. Use method below instead!
static Visitor findVisitor(int minute, int hour, int day, int month, int year, Referer r, boolean nocreate)
           
static java.util.Iterator getAllBrowsers()
           
static java.util.Iterator getAllHelpdesk()
           
static java.util.Iterator getAllLanguages()
           
static java.util.Iterator getAllLinks()
           
static java.util.Iterator getAllNodes()
           
static java.util.Iterator getAllNodes(java.lang.String sort)
           
static java.util.Iterator getAllObj()
           
static java.util.Iterator getAllOs()
           
static java.util.Iterator getAllPages()
           
static java.util.Iterator getAllQuerys()
           
static java.util.Iterator getAllReferer()
           
static java.util.Iterator getAllResolutions()
           
static java.util.Iterator getAllSiteGroups()
           
static java.util.Iterator getAllTemplates()
           
static java.util.Iterator getAllUser()
           
static java.util.Iterator getAllUserGroups()
           
static java.lang.String getBrowsernameForID(int id)
           
static Language getLocaleByLanguageValue(java.lang.String value)
           
static java.util.Iterator getNonVisitStats(java.lang.Class c, java.util.List referer, int minute, int hour, int day, int month, int year)
           
static java.lang.String getUserStats(java.util.List referer, int minute, int hour, int day, int month, int year)
           
static int getVisitors(java.util.List referer, int minute, int hour, int day, int month, int year)
           
static int getVisits(java.util.List referer, int minute, int hour, int day, int month, int year)
           
static boolean hasUserRightsOnReferer(User user, Referer referer)
           
static boolean isSiteGroupInUserGroup(UserGroupName ugn, SiteGroupName sgn)
           
static boolean isSiteInGroup(Referer r, SiteGroupName sgn)
           
static boolean isUserInGroup(User user, UserGroupName ugn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Finder

public Finder()
Method Detail

findSearchSingleFinal

public static java.lang.Object findSearchSingleFinal(java.lang.Class type,
                                                     java.lang.String term,
                                                     java.lang.String order)
                                              throws java.sql.SQLException,
                                                     net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

checkForItem

public static java.lang.Object checkForItem(java.lang.Class c,
                                            java.lang.String value)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException,
                                            java.util.NoSuchElementException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException
java.util.NoSuchElementException

checkForPage

public static java.lang.Object checkForPage(java.lang.Class c,
                                            java.lang.String value,
                                            java.lang.String link)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException,
                                            java.util.NoSuchElementException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException
java.util.NoSuchElementException

findTemplate

public static Template findTemplate(java.lang.String value)
                             throws java.sql.SQLException,
                                    net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findTemplate

public static Template findTemplate(java.lang.String value,
                                    boolean nocreate)
                             throws java.sql.SQLException,
                                    net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findTemplateByID

public static Template findTemplateByID(int id)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findHelpdeskByName

public static Helpdesk findHelpdeskByName(java.lang.String name,
                                          java.lang.String langid)
                                   throws java.sql.SQLException,
                                          net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findHelpdeskByID

public static Helpdesk findHelpdeskByID(int id)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findBrowserByID

public static Browser findBrowserByID(int id)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findBrowser

public static Browser findBrowser(java.lang.String value)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findBrowser

public static Browser findBrowser(java.lang.String value,
                                  boolean nocreate)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findCountryByID

public static IPCountry findCountryByID(int id)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findCountryByIP

public static IPCountry findCountryByIP(java.lang.String ip)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findCountryByIP

public static IPCountry findCountryByIP(long iplong)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findCountryVisit

public static CountryVisit findCountryVisit(IPCountry c,
                                            int minute,
                                            int hour,
                                            int day,
                                            int month,
                                            int year,
                                            Referer r,
                                            boolean nocreate)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findClickpathByID

public static Clickpath findClickpathByID(int id)
                                   throws java.sql.SQLException,
                                          net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findClickpath

public static Clickpath findClickpath(java.lang.String value,
                                      boolean nocreate)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findClickpathVisit

public static ClickpathVisit findClickpathVisit(Clickpath cp,
                                                int minute,
                                                int hour,
                                                int day,
                                                int month,
                                                int year,
                                                Referer r,
                                                boolean nocreate)
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findDuration

public static Duration findDuration(int value)
                             throws java.sql.SQLException,
                                    net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findDurationByID

public static Duration findDurationByID(int id)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findDurationVisit

public static DurationVisit findDurationVisit(Duration d,
                                              int minute,
                                              int hour,
                                              int day,
                                              int month,
                                              int year,
                                              Referer r,
                                              boolean nocreate)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLanguage

public static Language findLanguage(java.lang.String value)
                             throws java.sql.SQLException,
                                    net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLanguage

public static Language findLanguage(java.lang.String value,
                                    boolean nocreate)
                             throws java.sql.SQLException,
                                    net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLanguageByID

public static Language findLanguageByID(java.lang.String id)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLinkByID

public static Link findLinkByID(int id)
                         throws java.sql.SQLException,
                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLink

public static Link findLink(java.lang.String value)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLink

public static Link findLink(java.lang.String value,
                            boolean nocreate)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findObjByID

public static Obj findObjByID(int id)
                       throws java.sql.SQLException,
                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findObj

public static Obj findObj(java.lang.String value)
                   throws java.sql.SQLException,
                          net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findObj

public static Obj findObj(java.lang.String value,
                          boolean nocreate)
                   throws java.sql.SQLException,
                          net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findOsByID

public static Os findOsByID(int id)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findOs

public static Os findOs(java.lang.String value)
                 throws java.sql.SQLException,
                        net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findOs

public static Os findOs(java.lang.String value,
                        boolean nocreate)
                 throws java.sql.SQLException,
                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findPageByID

public static Page findPageByID(int id)
                         throws java.sql.SQLException,
                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findPage

public static Page findPage(java.lang.String value,
                            java.lang.String link,
                            Referer r)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findPage

public static Page findPage(java.lang.String value,
                            java.lang.String link,
                            Referer r,
                            boolean nocreate)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findResolution

public static Resolution findResolution(java.lang.String value)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findResolution

public static Resolution findResolution(java.lang.String value,
                                        boolean nocreate)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findQueryByID

public static Query findQueryByID(int id)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findQuery

public static Query findQuery(java.lang.String value)
                       throws java.sql.SQLException,
                              net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findQuery

public static Query findQuery(java.lang.String value,
                              boolean nocreate)
                       throws java.sql.SQLException,
                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findReferer

public static Referer findReferer(java.lang.String value)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findReferer

public static Referer findReferer(java.lang.String value,
                                  boolean nocreate)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findAnonymousVisit

public static AnonymousVisit findAnonymousVisit(int minute,
                                                int hour,
                                                int day,
                                                int month,
                                                int year,
                                                Referer r)
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findAnonymousVisit

public static AnonymousVisit findAnonymousVisit(int minute,
                                                int hour,
                                                int day,
                                                int month,
                                                int year,
                                                Referer r,
                                                boolean nocreate)
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findTemplateVisit

public static TemplateVisit findTemplateVisit(Template t,
                                              int minute,
                                              int hour,
                                              int day,
                                              int month,
                                              int year,
                                              Referer r)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findTemplateVisit

public static TemplateVisit findTemplateVisit(Template t,
                                              int minute,
                                              int hour,
                                              int day,
                                              int month,
                                              int year,
                                              Referer r,
                                              boolean nocreate)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findBrowserVisit

public static BrowserVisit findBrowserVisit(Browser b,
                                            int minute,
                                            int hour,
                                            int day,
                                            int month,
                                            int year,
                                            Referer r)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findBrowserVisit

public static BrowserVisit findBrowserVisit(Browser b,
                                            int minute,
                                            int hour,
                                            int day,
                                            int month,
                                            int year,
                                            Referer r,
                                            boolean nocreate)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findCookieVisit

public static CookieVisit findCookieVisit(int minute,
                                          int hour,
                                          int day,
                                          int month,
                                          int year,
                                          Referer r)
                                   throws java.sql.SQLException,
                                          net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findCookieVisit

public static CookieVisit findCookieVisit(int minute,
                                          int hour,
                                          int day,
                                          int month,
                                          int year,
                                          Referer r,
                                          boolean nocreate)
                                   throws java.sql.SQLException,
                                          net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findJavaVisit

public static JavaVisit findJavaVisit(int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findJavaVisit

public static JavaVisit findJavaVisit(int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r,
                                      boolean nocreate)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findJsVisit

public static JsVisit findJsVisit(int minute,
                                  int hour,
                                  int day,
                                  int month,
                                  int year,
                                  Referer r)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findJsVisit

public static JsVisit findJsVisit(int minute,
                                  int hour,
                                  int day,
                                  int month,
                                  int year,
                                  Referer r,
                                  boolean nocreate)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserVisit

public static UserVisit findUserVisit(boolean newuser,
                                      int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserVisit

public static UserVisit findUserVisit(boolean newuser,
                                      int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r,
                                      boolean nocreate)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLanguageVisit

public static LanguageVisit findLanguageVisit(Language l,
                                              int minute,
                                              int hour,
                                              int day,
                                              int month,
                                              int year,
                                              Referer r)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLanguageVisit

public static LanguageVisit findLanguageVisit(Language l,
                                              int minute,
                                              int hour,
                                              int day,
                                              int month,
                                              int year,
                                              Referer r,
                                              boolean nocreate)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLinkVisit

public static LinkVisit findLinkVisit(Link li,
                                      int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLinkVisit

public static LinkVisit findLinkVisit(Link li,
                                      int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r,
                                      boolean nocreate)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findObjectVisit

public static ObjectVisit findObjectVisit(Obj obj,
                                          int minute,
                                          int hour,
                                          int day,
                                          int month,
                                          int year,
                                          Referer r)
                                   throws java.sql.SQLException,
                                          net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findObjectVisit

public static ObjectVisit findObjectVisit(Obj obj,
                                          int minute,
                                          int hour,
                                          int day,
                                          int month,
                                          int year,
                                          Referer r,
                                          boolean nocreate)
                                   throws java.sql.SQLException,
                                          net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findOsVisit

public static OsVisit findOsVisit(Os os,
                                  int minute,
                                  int hour,
                                  int day,
                                  int month,
                                  int year,
                                  Referer r)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findOsVisit

public static OsVisit findOsVisit(Os os,
                                  int minute,
                                  int hour,
                                  int day,
                                  int month,
                                  int year,
                                  Referer r,
                                  boolean nocreate)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findPageVisit

public static PageVisit findPageVisit(Page p,
                                      Language l,
                                      int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findPageVisit

public static PageVisit findPageVisit(Page p,
                                      Language l,
                                      int minute,
                                      int hour,
                                      int day,
                                      int month,
                                      int year,
                                      Referer r,
                                      boolean nocreate)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findFirstpageVisit

public static FirstpageVisit findFirstpageVisit(Page p,
                                                Language l,
                                                int minute,
                                                int hour,
                                                int day,
                                                int month,
                                                int year,
                                                Referer r,
                                                boolean nocreate)
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLastpageVisit

public static LastpageVisit findLastpageVisit(Page p,
                                              Language l,
                                              int minute,
                                              int hour,
                                              int day,
                                              int month,
                                              int year,
                                              Referer r,
                                              boolean nocreate)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findResolutionVisit

public static ResolutionVisit findResolutionVisit(Resolution res,
                                                  int minute,
                                                  int hour,
                                                  int day,
                                                  int month,
                                                  int year,
                                                  Referer r)
                                           throws java.sql.SQLException,
                                                  net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findResolutionVisit

public static ResolutionVisit findResolutionVisit(Resolution res,
                                                  int minute,
                                                  int hour,
                                                  int day,
                                                  int month,
                                                  int year,
                                                  Referer r,
                                                  boolean nocreate)
                                           throws java.sql.SQLException,
                                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findQueryVisit

public static QueryVisit findQueryVisit(Query q,
                                        int minute,
                                        int hour,
                                        int day,
                                        int month,
                                        int year,
                                        Referer r)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findQueryVisit

public static QueryVisit findQueryVisit(Query q,
                                        int minute,
                                        int hour,
                                        int day,
                                        int month,
                                        int year,
                                        Referer r,
                                        boolean nocreate)
                                 throws java.sql.SQLException,
                                        net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findVisit

public static Visit findVisit(int minute,
                              int hour,
                              int day,
                              int month,
                              int year,
                              Referer r)
                       throws java.sql.SQLException,
                              net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findVisit

public static Visit findVisit(int minute,
                              int hour,
                              int day,
                              int month,
                              int year,
                              Referer r,
                              boolean nocreate)
                       throws java.sql.SQLException,
                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findSessionVisit

public static SessionVisit findSessionVisit(Language l,
                                            int minute,
                                            int hour,
                                            int day,
                                            int month,
                                            int year,
                                            Referer r,
                                            boolean nocreate)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findVisitor

public static Visitor findVisitor(int minute,
                                  int hour,
                                  int day,
                                  int month,
                                  int year,
                                  Referer r)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findVisitor

public static Visitor findVisitor(int minute,
                                  int hour,
                                  int day,
                                  int month,
                                  int year,
                                  Referer r,
                                  boolean nocreate)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllHelpdesk

public static java.util.Iterator getAllHelpdesk()
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllReferer

public static java.util.Iterator getAllReferer()
                                        throws java.sql.SQLException,
                                               net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllBrowsers

public static java.util.Iterator getAllBrowsers()
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllTemplates

public static java.util.Iterator getAllTemplates()
                                          throws java.sql.SQLException,
                                                 net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllLanguages

public static java.util.Iterator getAllLanguages()
                                          throws java.sql.SQLException,
                                                 net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllLinks

public static java.util.Iterator getAllLinks()
                                      throws java.sql.SQLException,
                                             net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllObj

public static java.util.Iterator getAllObj()
                                    throws java.sql.SQLException,
                                           net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllOs

public static java.util.Iterator getAllOs()
                                   throws java.sql.SQLException,
                                          net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllPages

public static java.util.Iterator getAllPages()
                                      throws java.sql.SQLException,
                                             net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllQuerys

public static java.util.Iterator getAllQuerys()
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllResolutions

public static java.util.Iterator getAllResolutions()
                                            throws java.sql.SQLException,
                                                   net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllUser

public static java.util.Iterator getAllUser()
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllUserGroups

public static java.util.Iterator getAllUserGroups()
                                           throws java.sql.SQLException,
                                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllSiteGroups

public static java.util.Iterator getAllSiteGroups()
                                           throws java.sql.SQLException,
                                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getVisits

public static int getVisits(java.util.List referer,
                            int minute,
                            int hour,
                            int day,
                            int month,
                            int year)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getVisitors

public static int getVisitors(java.util.List referer,
                              int minute,
                              int hour,
                              int day,
                              int month,
                              int year)
                       throws java.sql.SQLException,
                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getNonVisitStats

public static java.util.Iterator getNonVisitStats(java.lang.Class c,
                                                  java.util.List referer,
                                                  int minute,
                                                  int hour,
                                                  int day,
                                                  int month,
                                                  int year)
                                           throws java.sql.SQLException,
                                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getUserStats

public static java.lang.String getUserStats(java.util.List referer,
                                            int minute,
                                            int hour,
                                            int day,
                                            int month,
                                            int year)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getBrowsernameForID

public static java.lang.String getBrowsernameForID(int id)
                                            throws java.sql.SQLException,
                                                   net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findNode

public static Node findNode(java.lang.String ip,
                            java.lang.String hostname)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Deprecated. Use method below instead!

Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findNode

public static Node findNode(java.lang.String ip,
                            java.lang.String hostname,
                            boolean nocreate)
                     throws java.sql.SQLException,
                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findNodeByID

public static Node findNodeByID(java.lang.Integer id)
                         throws java.sql.SQLException,
                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findLogMessagesForNodeForTime

public static java.util.Iterator findLogMessagesForNodeForTime(java.lang.Integer nodeid,
                                                               long fromts,
                                                               long untilts,
                                                               int loglevel)
                                                        throws java.sql.SQLException,
                                                               net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllNodes

public static java.util.Iterator getAllNodes(java.lang.String sort)
                                      throws java.sql.SQLException,
                                             net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getAllNodes

public static java.util.Iterator getAllNodes()
                                      throws java.sql.SQLException,
                                             net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

getLocaleByLanguageValue

public static Language getLocaleByLanguageValue(java.lang.String value)
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findRefererByID

public static Referer findRefererByID(java.lang.String id)
                               throws java.sql.SQLException,
                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findResolutionByID

public static Resolution findResolutionByID(int id)
                                     throws java.sql.SQLException,
                                            net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserByName

public static User findUserByName(java.lang.String name)
                           throws java.sql.SQLException,
                                  net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserByID

public static User findUserByID(java.lang.Integer id)
                         throws java.sql.SQLException,
                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserByNameAndPassword

public static User findUserByNameAndPassword(java.lang.String username,
                                             java.lang.String userpass)
                                      throws java.sql.SQLException,
                                             net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserAccess

public static java.util.Iterator findUserAccess(User user)
                                         throws java.sql.SQLException,
                                                net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

hasUserRightsOnReferer

public static boolean hasUserRightsOnReferer(User user,
                                             Referer referer)
                                      throws java.sql.SQLException,
                                             net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserByGroup

public static java.util.Iterator findUserByGroup(UserGroupName ugn)
                                          throws java.sql.SQLException,
                                                 net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findSiteByGroup

public static java.util.Iterator findSiteByGroup(SiteGroupName sgn)
                                          throws java.sql.SQLException,
                                                 net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findSiteGroupByUserGroup

public static java.util.Iterator findSiteGroupByUserGroup(UserGroupName ugn)
                                                   throws java.sql.SQLException,
                                                          net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findRefererBySiteGroupID

public static java.util.List findRefererBySiteGroupID(java.lang.Integer id)
                                               throws java.sql.SQLException,
                                                      net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserGroupByUser

public static java.util.Iterator findUserGroupByUser(User u)
                                              throws java.sql.SQLException,
                                                     net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

isUserInGroup

public static boolean isUserInGroup(User user,
                                    UserGroupName ugn)
                             throws java.sql.SQLException,
                                    net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

isSiteInGroup

public static boolean isSiteInGroup(Referer r,
                                    SiteGroupName sgn)
                             throws java.sql.SQLException,
                                    net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

isSiteGroupInUserGroup

public static boolean isSiteGroupInUserGroup(UserGroupName ugn,
                                             SiteGroupName sgn)
                                      throws java.sql.SQLException,
                                             net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findUserGroupByID

public static UserGroupName findUserGroupByID(java.lang.Integer id)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException

findSiteGroupByID

public static SiteGroupName findSiteGroupByID(java.lang.Integer id)
                                       throws java.sql.SQLException,
                                              net.sf.hibernate.HibernateException
Throws:
java.sql.SQLException
net.sf.hibernate.HibernateException