Java Doc for HibernateUtil.java in  » Report » pentaho-report » org » pentaho » repository » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » pentaho report » org.pentaho.repository 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.pentaho.repository.HibernateUtil

HibernateUtil
public class HibernateUtil implements IPentahoSystemEntryPoint,IPentahoSystemExitPoint(Code)




Method Summary
public static  voidbeginTransaction()
     Start a new database transaction.
public static  voidclear()
    
public static  voidcloseSession()
     Closes the Session local to the thread.
public static  voidcommitTransaction()
     Commit the database transaction.
public static  SessiondisconnectSession()
     Disconnect and return Session from current Thread.
public static  voidevict(Object obj)
     Evicts the object from the Hibernate cache.
public static  voidflushSession()
    
public static  ConfigurationgetConfiguration()
     Returns the original Hibernate configuration.
public static  ListgetHibernatedObjectHandlerList()
    
public static  SessiongetSession()
     Retrieves the current Session local to the thread.
public static  SessionFactorygetSessionFactory()
     Returns the SessionFactory used for this static class.
protected static  booleaninitialize()
    
public static  booleanisOracleDialect()
     HACK This method is necessary to determine whether code should execute based on Oracle in use as the RDBMS repository for the platform.
public static  voidmakePersistent(Object obj)
     Persists changes to the object.
public static  voidmakeTransient(Object obj)
    
public static  voidrebuildSessionFactory()
     Rebuild the SessionFactory with the static Configuration.
public static  voidrebuildSessionFactory(Configuration cfg)
     Rebuild the SessionFactory with the given Hibernate Configuration.
public static  voidregisterInterceptor(Interceptor interceptor)
     Register a Hibernate interceptor with the current thread.
public static  voidrollbackTransaction()
     Commit the database transaction.
public static  ListsearchForTerm(ISearchable searchable, String searchTerm, int searchType)
     Searches an ISearchable object for a search term.
public  voidsystemEntryPoint()
    
public  voidsystemExitPoint()
    
public static  voidupdateSchema()
    



Method Detail
beginTransaction
public static void beginTransaction() throws RepositoryException(Code)
Start a new database transaction.



clear
public static void clear()(Code)



closeSession
public static void closeSession() throws RepositoryException(Code)
Closes the Session local to the thread.



commitTransaction
public static void commitTransaction() throws RepositoryException(Code)
Commit the database transaction.



disconnectSession
public static Session disconnectSession() throws RepositoryException(Code)
Disconnect and return Session from current Thread. Session the disconnected Session



evict
public static void evict(Object obj)(Code)
Evicts the object from the Hibernate cache. Call this if you don't believe you'll need this object in the cache. This is also good to call if you're doing semi-mass updates.
Parameters:
  obj -



flushSession
public static void flushSession() throws RepositoryException(Code)



getConfiguration
public static Configuration getConfiguration()(Code)
Returns the original Hibernate configuration. Configuration



getHibernatedObjectHandlerList
public static List getHibernatedObjectHandlerList()(Code)



getSession
public static Session getSession() throws RepositoryException(Code)
Retrieves the current Session local to the thread.

If no Session is open, opens a new Session for the running thread. Session




getSessionFactory
public static SessionFactory getSessionFactory()(Code)
Returns the SessionFactory used for this static class. SessionFactory



initialize
protected static boolean initialize()(Code)



isOracleDialect
public static boolean isOracleDialect()(Code)
HACK This method is necessary to determine whether code should execute based on Oracle in use as the RDBMS repository for the platform. Helps us work around Oracle JDBC driver bugs. true if Hibernate dialect for oracle is in use.



makePersistent
public static void makePersistent(Object obj) throws RepositoryException(Code)
Persists changes to the object. Object must be defined to hibernate.
Parameters:
  obj - The object to make persistent
throws:
  RepositoryException -



makeTransient
public static void makeTransient(Object obj) throws RepositoryException(Code)
Deletes the object from Hibernate
Parameters:
  obj - The object to make transient
throws:
  RepositoryException -



rebuildSessionFactory
public static void rebuildSessionFactory() throws RepositoryException(Code)
Rebuild the SessionFactory with the static Configuration.



rebuildSessionFactory
public static void rebuildSessionFactory(Configuration cfg) throws RepositoryException(Code)
Rebuild the SessionFactory with the given Hibernate Configuration.
Parameters:
  cfg -



registerInterceptor
public static void registerInterceptor(Interceptor interceptor)(Code)
Register a Hibernate interceptor with the current thread.

Every Session opened is opened with this interceptor after registration. Has no effect if the current Session of the thread is already open, effective on next close()/getSession().




rollbackTransaction
public static void rollbackTransaction() throws RepositoryException(Code)
Commit the database transaction.



searchForTerm
public static List searchForTerm(ISearchable searchable, String searchTerm, int searchType)(Code)
Searches an ISearchable object for a search term. The search rules are as follows: If the searchType is ISearchable.SEARCH_TYPE_PHRASE, then the fields in the table are searched for the exact phrase given. If the searchType is ISearchable.SEARCH_TYPE_WORDS_AND or ..._OR, then the following happens: a- Each word in the searchTerm is extracted and put into a list of search terms. b- Each search term is surrounded by the SQL wildcard '%'. So each search term becomes %term%. c- A dynamic query is generated searching each of the columns for each search term d- The searchType is used to determine the connector between each search term. e- The AND will match only if all of the terms appear in a specific column - cross-column searching using ..._AND will NOT work. In other words, if your search term is "East Sales", and your search type is ..._AND, a row will be returned if one of the columns contains East and the same column contains Sales. A row will NOT be returned if one column only contains East, and another column only contains Sales. This type of functionality could be obtained using a view that concatenates all of the searchable columns together into one large column, but this would be costly and database-specific.
Parameters:
  searchable - ISearchable to search
Parameters:
  searchTerm - Search Term - see above for rules
Parameters:
  searchType - One of:ISearchable.SEARCH_TYPE_PHRASE,ISearchable.SEARCH_TYPE_WORDS_AND,ISearchable.SEARCH_TYPE_WORDS_OR A list of objects from Hibernate that met the conditionsspecified.



systemEntryPoint
public void systemEntryPoint()(Code)



systemExitPoint
public void systemExitPoint()(Code)



updateSchema
public static void updateSchema() throws RepositoryException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.