Java Doc for EJBPOManager.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » pm » ejb » lib » 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 » Database ORM » Speedo_1.4.5 » org.objectweb.speedo.pm.ejb.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.pm.lib.AbstractPOManager
      org.objectweb.speedo.pm.ejb.lib.EJBPOManager

EJBPOManager
public class EJBPOManager extends AbstractPOManager implements EJBPOManagerItf(Code)
TODO: runtimeException thrown by the methods will cause the current transaction to rollback
author:
   S.Chassande-Barrioz



Constructor Summary
public  EJBPOManager()
    

Method Summary
public  voidclear()
    
public  voidclose()
     closes an application-managed EntityManager.
public  booleancontains(Object entity)
    
public  QuerycreateNamedQuery(String name)
     Create an instance of Query for executing a named query (EJB QL or native SQL).
public  QuerycreateNativeQuery(String sqlString)
     Create an instance of Query for executing a native SQL statement.
public  QuerycreateNativeQuery(String sqlString, Class resultClass)
     Create an instance of Query for executing a native SQL statement.
public  QuerycreateNativeQuery(String sqlString, String resultSetMapping)
     Create an instance of Query for executing a native SQL statement.
public  QuerycreateQuery(String ejbqlString)
    
public  Objectfind(Class entityClass, Object primaryKey)
    
public  voidflush()
     Synchronize the persistence context to the underlying database.
public  FlushModeTypegetFlushMode()
    
public  ObjectgetReference(Class entityClass, Object primaryKey)
     Get an instance, whoose state may be lazily fetched.
public  EntityTransactiongetTransaction()
     Returns the resource-level transaction object.
public  booleanisOpen()
     Indicates whether the EntityManager is open.
public  voidlock(Object arg0, LockModeType arg1)
    
public  Objectmerge(Object entity)
    
public  voidpersist(Object entity)
    
public  voidrefresh(Object entity)
     Refresh the state of the instanc from the database overwriting chages mades to the entity, if any.
public  voidremove(Object entity)
    
public  voidsetFlushMode(FlushModeType fmt)
    
public  ObjectspeedoAttachCopy(Object detached, Map map)
    
public  voidspeedoDeletePersistent(Object o)
    
public  voidspeedoDeletePersistent(Object oid, Class pc)
    
public  ObjectspeedoDetachCopy(PersistentObjectItf sp, Map map, Collection fgHints)
    
public  FetchPlanItfspeedoGetFetchPlan()
    
public  ObjectspeedoMakePersistent(PersistentObjectItf sp, Map map)
    
public  voidspeedoRefresh(PersistentObjectItf sp, Map map, Collection fgHints)
    
public  voidspeedoRetrieve(PersistentObjectItf sp, Map map, Collection fgHints)
    


Constructor Detail
EJBPOManager
public EJBPOManager()(Code)




Method Detail
clear
public void clear()(Code)



close
public void close()(Code)
closes an application-managed EntityManager. This method can only be called when the EntityManaged is not associated with an active transaction. After an EntityManager has been closed, all methodes on the EntityManager instance will throw the IllegalStateException except for isOpen, which will return false;
throws:
  java.lang.IllegalStateException - if the EntityManager isassociated with an active transaction or if the EntityManager is container-managed.
See Also:   javax.persistence.EntityManager.close



contains
public boolean contains(Object entity)(Code)
Check if the instance belongs to the current persistence context
Parameters:
  entity -
throws:
  java.lang.IllegalArgumentException - if not an entity
See Also:   javax.persistence.EntityManager.contains(java.lang.Object)



createNamedQuery
public Query createNamedQuery(String name)(Code)
Create an instance of Query for executing a named query (EJB QL or native SQL).
Parameters:
  name - the name of a query defined in metadata the new query instance
throws:
  IllegalArgumentException - if query string is not valid
See Also:   javax.persistence.EntityManager.createNamedQuery(java.lang.String)



createNativeQuery
public Query createNativeQuery(String sqlString)(Code)
Create an instance of Query for executing a native SQL statement.
Parameters:
  sqlString - an EJB QL query string the new query instance
throws:
  IllegalArgumentException - if query string is not valid
See Also:   javax.persistence.EntityManager.createNativeQuery(java.lang.String)



createNativeQuery
public Query createNativeQuery(String sqlString, Class resultClass)(Code)
Create an instance of Query for executing a native SQL statement.
Parameters:
  sqlString - an EJB QL query string
Parameters:
  resultClass - the class of the resulting instances the new query instance
throws:
  IllegalArgumentException - if query string is not valid
See Also:   javax.persistence.EntityManager.createNativeQuery(java.lang.Stringjava.lang.Class)



createNativeQuery
public Query createNativeQuery(String sqlString, String resultSetMapping)(Code)
Create an instance of Query for executing a native SQL statement.
Parameters:
  sqlString - an EJB QL query string
Parameters:
  resultSetMapping - the class of the resulting instances the new query instance
throws:
  IllegalArgumentException - if query string is not valid
See Also:   javax.persistence.EntityManager.createNativeQuery(java.lang.Stringjava.lang.String)



createQuery
public Query createQuery(String ejbqlString)(Code)
Create an instance of Query for executing an EJB QL statement
Parameters:
  ejbqlString - an EJB QL query string the new query instance
throws:
  IllegalArgumentException - if query string is not valid
See Also:   javax.persistence.EntityManager.createQuery(java.lang.String)



find
public Object find(Class entityClass, Object primaryKey)(Code)
Find by primary key
Parameters:
  entityClass -
Parameters:
  primaryKey - the found entity instance or null if the entity does not existthrows
throws:
  java.lang.IllegalArgumentException - if the first argument does notdenote an entity type or the second argument is not a valid type for thatentity'primary key
See Also:   javax.persistence.EntityManager.find(java.lang.Classjava.lang.Object)



flush
public void flush()(Code)
Synchronize the persistence context to the underlying database.
throws:
  javax.persistence.TransactionRequiredException - if there is no transaction
throws:
  javax.persistence.PersistenceException - if there the flush fails
See Also:   javax.persistence.EntityManager.flush



getFlushMode
public FlushModeType getFlushMode()(Code)



getReference
public Object getReference(Class entityClass, Object primaryKey)(Code)
Get an instance, whoose state may be lazily fetched. If the requested instance does not exist in the database, throws javax.persistence.EntityNotFoundException when the instance state is first accessed. (The container is permitted to throw EntityNotFoundException when get is called.) The application shoud not expect that the instance state will be availlable upon detachment, unless it was accessed by the application while the entity manager was open.
Parameters:
  entityClass -
Parameters:
  primaryKey - the found entity instance
throws:
  java.lang.IllegalArgumentException - if the first argument does notdenote an entity type or the second argument is not a valid type for thatentity'primary key
throws:
  javax.persistence.EntityNotFoundException - if the entity state cannot be accessed
See Also:   javax.persistence.EntityManager.getReference(java.lang.Classjava.lang.Object)



getTransaction
public EntityTransaction getTransaction()(Code)
Returns the resource-level transaction object. The EntityTransaction instance may be used serially to bein and commit multiple transactions. EntityTransaction instance
throws:
  java.lang.IllegalStateException - if invoked on a JTA EntityManageror an EntityManager that has been closed.
See Also:   javax.persistence.EntityManager.getTransaction



isOpen
public boolean isOpen()(Code)
Indicates whether the EntityManager is open. true until the EntityManager has been closed.
See Also:   javax.persistence.EntityManager.isOpen



lock
public void lock(Object arg0, LockModeType arg1)(Code)



merge
public Object merge(Object entity)(Code)
Merge the state of the given entry into the current persistence context
Parameters:
  entity - the instance that the state was merge to
throws:
  java.lang.IllegalArgumentException - if instance is not an entity or is a removed instance
throws:
  javax.persistence.TransactionRequiredException - if there is no transaction
See Also:   javax.persistence.EntityManager.merge(java.lang.Object)



persist
public void persist(Object entity)(Code)
Make an instance managed and persistent
Parameters:
  entity -
throws:
  java.lang.IllegalArgumentException - if not an entity or entity is detached
throws:
  javax.persistence.TransactionRequiredException - if there is no transaction
See Also:   javax.persistence.EntityManager.persist(java.lang.Object)



refresh
public void refresh(Object entity)(Code)
Refresh the state of the instanc from the database overwriting chages mades to the entity, if any.
Parameters:
  entity -
throws:
  java.lang.IllegalArgumentException - if not an entity or entity is not managed.
throws:
  javax.persistence.TransactionRequiredException - if there is no transaction
throws:
  javax.persistence.EntityNotFoundException - if there is no longerexists in the database
See Also:   javax.persistence.EntityManager.refresh(java.lang.Object)



remove
public void remove(Object entity)(Code)
Remove the instance
Parameters:
  entity -
throws:
  java.lang.IllegalArgumentException - if not an entity or if a detached entity
throws:
  javax.persistence.TransactionRequiredException - if there is no transaction
See Also:   javax.persistence.EntityManager.remove(java.lang.Object)



setFlushMode
public void setFlushMode(FlushModeType fmt)(Code)

See Also:   javax.persistence.EntityManager.setFlushMode(javax.persistence.FlushModeType)



speedoAttachCopy
public Object speedoAttachCopy(Object detached, Map map)(Code)



speedoDeletePersistent
public void speedoDeletePersistent(Object o)(Code)



speedoDeletePersistent
public void speedoDeletePersistent(Object oid, Class pc)(Code)



speedoDetachCopy
public Object speedoDetachCopy(PersistentObjectItf sp, Map map, Collection fgHints)(Code)



speedoGetFetchPlan
public FetchPlanItf speedoGetFetchPlan()(Code)



speedoMakePersistent
public Object speedoMakePersistent(PersistentObjectItf sp, Map map)(Code)



speedoRefresh
public void speedoRefresh(PersistentObjectItf sp, Map map, Collection fgHints)(Code)



speedoRetrieve
public void speedoRetrieve(PersistentObjectItf sp, Map map, Collection fgHints)(Code)



Fields inherited from org.objectweb.speedo.pm.lib.AbstractPOManager
final public static String COMPONENT_BINDING(Code)(Java Doc)
final public static String JORM_FACTORY_BINDING(Code)(Java Doc)
final public static String PNAME_CODER_BINDING(Code)(Java Doc)
final public static String PO_MANAGER_FACTORY_BINDING(Code)(Java Doc)
final public static String QUERY_MANAGER_BINDING(Code)(Java Doc)
final public static String TRANSACTIONAL_PERSISTENCE_MANAGER_BINDING(Code)(Java Doc)
final public static String TRANSACTION_BINDING(Code)(Java Doc)
protected Object connectionSpec(Code)(Java Doc)
protected Thread currentThread(Code)(Java Doc)
protected FetchPlanItf fetchPlan(Code)(Java Doc)
protected JormFactory jf(Code)(Java Doc)
protected Logger logger(Code)(Java Doc)
protected LoggerFactory loggerFactory(Code)(Java Doc)
protected short nbUse(Code)(Java Doc)
protected POManagerFactoryItf pmf(Code)(Java Doc)
protected PNameCoder pnc(Code)(Java Doc)
protected boolean prefetchOnExtent(Code)(Java Doc)
protected boolean prefetchOnQuery(Code)(Java Doc)
protected QueryManager queryManager(Code)(Java Doc)
protected Semaphore semaphore(Code)(Java Doc)
protected POManagerItf thisPM(Code)(Java Doc)
protected TransactionalPersistenceManager tpm(Code)(Java Doc)
protected TransactionItf tx(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.pm.lib.AbstractPOManager
public void addUse()(Code)(Java Doc)
public void afterCompletion(int i)(Code)(Java Doc)
protected void assertIsOpen()(Code)(Java Doc)
protected void assertIsPO(Object pc, String cmd)(Code)(Java Doc)
protected void assertPOManager(PersistentObjectItf sp)(Code)(Java Doc)
public void beforeCompletion()(Code)(Java Doc)
public void bindFc(String s, Object o)(Code)(Java Doc)
protected void bindPMThread()(Code)(Java Doc)
public void closePOManager()(Code)(Java Doc)
public PName decodeIdentifier(Class aClass, Object s)(Code)(Java Doc)
public Object getConnectionSpec()(Code)(Java Doc)
public Object getEncodedPName(PersistentObjectItf o)(Code)(Java Doc)
public POManagerFactoryItf getPOManagerFactory()(Code)(Java Doc)
public Semaphore getSemaphore()(Code)(Java Doc)
public TransactionItf getSpeedoTransaction()(Code)(Java Doc)
public TransactionalPersistenceManager getTransactionalPersistenceManager()(Code)(Java Doc)
public boolean isPOMClosed()(Code)(Java Doc)
public String[] listFc()(Code)(Java Doc)
public Object lookupFc(String s)(Code)(Java Doc)
public void open(Object connectionspec)(Code)(Java Doc)
protected void resetPMOnOpen(Object connectionspec)(Code)(Java Doc)
public void speedoDeletePersistentAll(Object[] o)(Code)(Java Doc)
public void speedoFlush() throws PersistenceException(Code)(Java Doc)
abstract public FetchPlanItf speedoGetFetchPlan()(Code)(Java Doc)
public Object speedoGetObject(PName pn, boolean validate)(Code)(Java Doc)
public Object speedoGetObject(Object id, Class poc, boolean validate) throws PException, PersistenceException(Code)(Java Doc)
protected Object speedoPersist(PersistentObjectItf po, Map map) throws PException, PersistenceException(Code)(Java Doc)
public void unbindFc(String s)(Code)(Java Doc)

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.