Java Doc for EntityServer.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » ejb » entity » 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 » EJB Server resin 3.1.5 » resin » com.caucho.ejb.entity 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.ejb.AbstractServer
      com.caucho.ejb.entity.EntityServer

EntityServer
public class EntityServer extends AbstractServer (Code)
EntityServer is a container for the instances of an entity bean.

Inner Class :static class RemoveListener
Inner Class :static class EntityCmp implements Comparator<QEntityContext>


Constructor Summary
public  EntityServer(EjbContainer ejbContainer)
     Creates a new EntityServer.

Method Summary
public  voidaddRemoveListener(QEntityContext context)
     Adds a remove listener.
public  voidaddUpdateListener(EntityServer listener)
     Adds an update listener.
public static  IllegalStateExceptioncreateGetStateException(int state)
    
protected  AbstractHandlecreateHandle(Object primaryKey)
     Creates a handle for the primary key.
public static  IllegalStateExceptioncreateSetStateException(int state)
    
public  voiddestroy()
     Cleans up the entity server nicely.
public  booleandoLoad(long loadTime)
     Returns true if the bean should be loaded.
public  StringencodeId(Object primaryKey)
     Returns the encoded id.
public  AbstractContextfindByPrimaryKey(Object key)
     Returns the underlying object by searching the primary key.
public  AbstractContextfindByPrimaryKey(int key)
     Returns the underlying object by searching the primary key.
public  AbstractContextfindKnownObjectByPrimaryKey(Object key)
     Returns the underlying object by searching the primary key.
public  ObjectfindKnownObjectByPrimaryKey(int key)
     Returns the underlying object by searching the primary key.
public  EntityItemgetAmberCacheItem(Object key)
    
public  AmberEntityHomegetAmberEntityHome()
     Sets the amber entity home.
public  booleangetBeanManagedPersistence()
    
public  EJBHomegetClientHome()
    
public  EJBLocalHomegetClientLocalHome()
    
public  ConnectiongetConnection(boolean isReadOnly)
     Returns a new connection.
public  ConnectiongetConnection()
    
public  AbstractContextgetContext(Object key)
    
public  AbstractContextgetContext(Object key, boolean forceLoad)
     Finds the remote bean by its key.
public  AbstractContextgetContext(Object key, boolean forceLoad, boolean isFindEntityItem)
     Finds the remote bean by its key.
public  DataSourcegetDataSource()
    
public  EJBHomegetEJBHome()
    
public  ObjectgetHomeObject()
    
public  ObjectgetLocalObject(Class api)
    
public  ObjectgetLocalProxy(Class api)
    
public  ClassgetPrimaryKeyClass()
    
public  ObjectgetRemoteObject(Class api, String protocol)
    
public  ObjectgetRemoteObject(Object key)
    
public  voidinit()
     Initializes the EntityServer, generating and compiling the skeletons if necessary.
public  voidinvalidateCache()
     Invalidates all cache entries, forcing them to reload.
public  booleanisCMP()
     Sets CMP.
public  booleanisLoadLazyOnTransaction()
     Sets true if entities should be loaded lazily on transaction.
public  voidpostCreate(Object key, QEntityContext cxt)
     Associate the skeleton with a key.
public  intrandomInt(int max, int i)
    
public  StringrandomString(int max, int i)
    
public  voidremove(Object key)
     Remove an object.
public  voidremoveCache(Object key)
    
public  voidsetAmberEntityHome(AmberEntityHome home)
     Sets the amber entity home.
public  voidsetCMP(boolean isCMP)
     Sets CMP.
public  voidsetDataSource(DataSource dataSource)
    
public  voidsetJdbcIsolation(int isolation)
    
public  voidsetLoadLazyOnTransaction(boolean isLoadLazy)
     Sets true if entities should be loaded lazily on transaction.
public  voidsetPrimaryKeyClass(Class cl)
     Sets the primary key class.
public  voidupdate(Object key)
    
public  voidupdateView(Object key)
    


Constructor Detail
EntityServer
public EntityServer(EjbContainer ejbContainer)(Code)
Creates a new EntityServer.
Parameters:
  serverId - the entity server's unique identifier
Parameters:
  allowJVMCall - allows fast calls to the same JVM (with serialization)
Parameters:
  config - the EJB configuration.




Method Detail
addRemoveListener
public void addRemoveListener(QEntityContext context)(Code)
Adds a remove listener.
Parameters:
  listener - the home context that's listening for events.
Parameters:
  listenClass - the class for this server.



addUpdateListener
public void addUpdateListener(EntityServer listener)(Code)
Adds an update listener.



createGetStateException
public static IllegalStateException createGetStateException(int state)(Code)



createHandle
protected AbstractHandle createHandle(Object primaryKey)(Code)
Creates a handle for the primary key.



createSetStateException
public static IllegalStateException createSetStateException(int state)(Code)



destroy
public void destroy()(Code)
Cleans up the entity server nicely.



doLoad
public boolean doLoad(long loadTime)(Code)
Returns true if the bean should be loaded.
Parameters:
  loadTime - the time the bean was last loaded.



encodeId
public String encodeId(Object primaryKey)(Code)
Returns the encoded id.



findByPrimaryKey
public AbstractContext findByPrimaryKey(Object key) throws FinderException(Code)
Returns the underlying object by searching the primary key.



findByPrimaryKey
public AbstractContext findByPrimaryKey(int key) throws FinderException(Code)
Returns the underlying object by searching the primary key.



findKnownObjectByPrimaryKey
public AbstractContext findKnownObjectByPrimaryKey(Object key)(Code)
Returns the underlying object by searching the primary key. In this case, the object is known to exist.



findKnownObjectByPrimaryKey
public Object findKnownObjectByPrimaryKey(int key)(Code)
Returns the underlying object by searching the primary key. In this case, the object is known to exist.



getAmberCacheItem
public EntityItem getAmberCacheItem(Object key)(Code)



getAmberEntityHome
public AmberEntityHome getAmberEntityHome()(Code)
Sets the amber entity home.



getBeanManagedPersistence
public boolean getBeanManagedPersistence()(Code)
Gets the persistence scheme for the entity bean



getClientHome
public EJBHome getClientHome() throws RemoteException(Code)
Returns the EJBHome stub for the container



getClientLocalHome
public EJBLocalHome getClientLocalHome()(Code)
Returns the EJBLocalHome stub for the container



getConnection
public Connection getConnection(boolean isReadOnly) throws java.sql.SQLException(Code)
Returns a new connection.



getConnection
public Connection getConnection() throws SQLException(Code)



getContext
public AbstractContext getContext(Object key) throws FinderException(Code)



getContext
public AbstractContext getContext(Object key, boolean forceLoad) throws FinderException(Code)
Finds the remote bean by its key.
Parameters:
  key - the remote key the remote interface of the entity.



getContext
public AbstractContext getContext(Object key, boolean forceLoad, boolean isFindEntityItem) throws FinderException(Code)
Finds the remote bean by its key.
Parameters:
  key - the remote key the remote interface of the entity.



getDataSource
public DataSource getDataSource()(Code)
Returns the server's DataSource



getEJBHome
public EJBHome getEJBHome()(Code)
Returns the EJBHome stub for the container



getHomeObject
public Object getHomeObject()(Code)



getLocalObject
public Object getLocalObject(Class api)(Code)
Returns the 3.0 remote stub for the container



getLocalProxy
public Object getLocalProxy(Class api)(Code)
Returns the 3.0 remote stub for the container



getPrimaryKeyClass
public Class getPrimaryKeyClass()(Code)
Gets the primary key class



getRemoteObject
public Object getRemoteObject(Class api, String protocol)(Code)
Returns the 3.0 remote stub for the container



getRemoteObject
public Object getRemoteObject(Object key) throws FinderException(Code)
Returns the 3.0 remote stub for the container



init
public void init() throws Exception(Code)
Initializes the EntityServer, generating and compiling the skeletons if necessary.



invalidateCache
public void invalidateCache()(Code)
Invalidates all cache entries, forcing them to reload.



isCMP
public boolean isCMP()(Code)
Sets CMP.



isLoadLazyOnTransaction
public boolean isLoadLazyOnTransaction()(Code)
Sets true if entities should be loaded lazily on transaction.



postCreate
public void postCreate(Object key, QEntityContext cxt)(Code)
Associate the skeleton with a key.



randomInt
public int randomInt(int max, int i)(Code)
Returns a random integer for a new id
Parameters:
  max - the previous maximum value
Parameters:
  i - the repetition index



randomString
public String randomString(int max, int i)(Code)
Returns a random string for a new id
Parameters:
  max - the previous maximum value
Parameters:
  i - the repetition index



remove
public void remove(Object key)(Code)
Remove an object.



removeCache
public void removeCache(Object key)(Code)



setAmberEntityHome
public void setAmberEntityHome(AmberEntityHome home)(Code)
Sets the amber entity home.



setCMP
public void setCMP(boolean isCMP)(Code)
Sets CMP.



setDataSource
public void setDataSource(DataSource dataSource)(Code)
Sets the server's DataSource



setJdbcIsolation
public void setJdbcIsolation(int isolation)(Code)



setLoadLazyOnTransaction
public void setLoadLazyOnTransaction(boolean isLoadLazy)(Code)
Sets true if entities should be loaded lazily on transaction.



setPrimaryKeyClass
public void setPrimaryKeyClass(Class cl)(Code)
Sets the primary key class.



update
public void update(Object key)(Code)
Updates the named entity bean



updateView
public void updateView(Object key)(Code)
Updates the named entity bean



Fields inherited from com.caucho.ejb.AbstractServer
protected ComponentImpl _component(Code)(Java Doc)
protected Class _contextImplClass(Code)(Java Doc)
protected DataSource _dataSource(Code)(Java Doc)
protected Class _ejbClass(Code)(Java Doc)
final protected EjbContainer _ejbContainer(Code)(Java Doc)
protected String _ejbName(Code)(Java Doc)
protected String _filename(Code)(Java Doc)
protected HandleEncoder _handleEncoder(Code)(Java Doc)
protected String _handleServerId(Code)(Java Doc)
protected HomeHandle _homeHandle(Code)(Java Doc)
protected Class _homeStubClass(Code)(Java Doc)
protected String _id(Code)(Java Doc)
protected ConfigProgram[] _initInject(Code)(Java Doc)
protected ConfigProgram _initProgram(Code)(Java Doc)
protected int _line(Code)(Java Doc)
protected EnvironmentClassLoader _loader(Code)(Java Doc)
protected Class _local21(Code)(Java Doc)
protected ArrayList<Class> _localApiList(Code)(Java Doc)
protected EJBLocalHome _localHome(Code)(Java Doc)
protected Class _localHomeClass(Code)(Java Doc)
protected String _location(Code)(Java Doc)
protected String _mappedName(Code)(Java Doc)
protected EJBMetaDataImpl _metaData(Code)(Java Doc)
protected String _moduleName(Code)(Java Doc)
protected Class _primaryKeyClass(Code)(Java Doc)
protected HashMap<String, HandleEncoder> _protocolEncoderMap(Code)(Java Doc)
protected Class _remote21(Code)(Java Doc)
protected ArrayList<Class> _remoteApiList(Code)(Java Doc)
protected EJBHome _remoteHome(Code)(Java Doc)
protected Class _remoteHomeClass(Code)(Java Doc)
protected EJBHome _remoteHomeView(Code)(Java Doc)
protected Class _remoteObjectClass(Code)(Java Doc)
protected Class _remoteStubClass(Code)(Java Doc)
protected Class _serviceEndpointClass(Code)(Java Doc)
protected long _transactionTimeout(Code)(Java Doc)

Methods inherited from com.caucho.ejb.AbstractServer
public void addClientRemoteConfig(StringBuilder sb)(Code)(Java Doc)
public HandleEncoder addHandleEncoder(String protocol, String serverId)(Code)(Java Doc)
protected void bindContext()(Code)(Java Doc)
protected void bindInjection()(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public String encodeId(Object primaryKey)(Code)(Java Doc)
public ConfigException error(String msg)(Code)(Java Doc)
public Class getBeanSkelClass()(Code)(Java Doc)
public DynamicClassLoader getClassLoader()(Code)(Java Doc)
public AbstractContext getContext()(Code)(Java Doc)
public AbstractContext getContext(Object key) throws FinderException(Code)(Java Doc)
public AbstractContext getContext(long key) throws FinderException(Code)(Java Doc)
abstract public AbstractContext getContext(Object key, boolean forceLoad) throws FinderException(Code)(Java Doc)
public EJBHome getEJBHome()(Code)(Java Doc)
public EJBLocalHome getEJBLocalHome()(Code)(Java Doc)
public EJBMetaData getEJBMetaData()(Code)(Java Doc)
public String getEJBName()(Code)(Java Doc)
public EJBObject getEJBObject(Object key) throws FinderException(Code)(Java Doc)
protected Class getEjbClass()(Code)(Java Doc)
public EjbContainer getEjbContainer()(Code)(Java Doc)
public HandleEncoder getHandleEncoder(String protocol)(Code)(Java Doc)
public HandleEncoder getHandleEncoder()(Code)(Java Doc)
public String getHandleServerId()(Code)(Java Doc)
public HomeHandle getHomeHandle()(Code)(Java Doc)
public Class getHomeStubClass()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public ConfigProgram getInitProgram()(Code)(Java Doc)
public ArrayList<Class> getLocalApiList()(Code)(Java Doc)
public Class getLocalHomeClass()(Code)(Java Doc)
abstract public Object getLocalObject(Class api)(Code)(Java Doc)
abstract public Object getLocalProxy(Class api)(Code)(Java Doc)
public String getMappedName()(Code)(Java Doc)
public String getModuleName()(Code)(Java Doc)
public PostConstructConfig getPostConstruct()(Code)(Java Doc)
public PreDestroyConfig getPreDestroy()(Code)(Java Doc)
public Class getPrimaryKeyClass()(Code)(Java Doc)
public String getProtocolId()(Code)(Java Doc)
public String getProtocolId(Class cl)(Code)(Java Doc)
public Class getRemote21()(Code)(Java Doc)
public ArrayList<Class> getRemoteApiList()(Code)(Java Doc)
public Class getRemoteHomeClass()(Code)(Java Doc)
abstract public Object getRemoteObject(Class api, String protocol)(Code)(Java Doc)
public Object getRemoteObject(Object key) throws FinderException(Code)(Java Doc)
public Class getRemoteObjectClass()(Code)(Java Doc)
public Class getRemoteStubClass()(Code)(Java Doc)
public ConfigProgram getServerProgram()(Code)(Java Doc)
public Class getServiceEndpoint()(Code)(Java Doc)
public AbstractSessionContext getSessionContext()(Code)(Java Doc)
public TimerService getTimerService()(Code)(Java Doc)
public TransactionContext getTransaction()(Code)(Java Doc)
public EjbTransactionManager getTransactionManager()(Code)(Java Doc)
public long getTransactionTimeout()(Code)(Java Doc)
protected String getType()(Code)(Java Doc)
public UserTransaction getUserTransaction()(Code)(Java Doc)
public boolean hasRemoteObject()(Code)(Java Doc)
public void init() throws Exception(Code)(Java Doc)
public void initInstance(Object instance)(Code)(Java Doc)
public void initInstance(Object instance, ConfigContext env)(Code)(Java Doc)
public void invalidateCache()(Code)(Java Doc)
public boolean isContainerTransaction()(Code)(Java Doc)
public boolean isDead()(Code)(Java Doc)
public boolean isLocal()(Code)(Java Doc)
public boolean isRemote()(Code)(Java Doc)
public Object lookup(String jndiName)(Code)(Java Doc)
public Object remove(AbstractHandle handle)(Code)(Java Doc)
public void remove(Object primaryKey)(Code)(Java Doc)
public void setAroundInvoke(AroundInvokeConfig aroundInvoke)(Code)(Java Doc)
public void setConfigLocation(String filename, int line)(Code)(Java Doc)
public void setContainerTransaction(boolean isContainerTransaction)(Code)(Java Doc)
public void setContextImplClass(Class cl)(Code)(Java Doc)
public void setEJBName(String ejbName)(Code)(Java Doc)
public void setEjbClass(Class cl)(Code)(Java Doc)
public void setHandleEncoder(HandleEncoder encoder)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setInitProgram(ConfigProgram init)(Code)(Java Doc)
public void setLocalApiList(ArrayList<Class> list)(Code)(Java Doc)
public void setLocalHomeClass(Class cl)(Code)(Java Doc)
public void setLocation(String location)(Code)(Java Doc)
public void setMappedName(String mappedName)(Code)(Java Doc)
public void setModuleName(String moduleName)(Code)(Java Doc)
public void setPostConstruct(PostConstructConfig postConstruct)(Code)(Java Doc)
public void setPreDestroy(PreDestroyConfig preDestroy)(Code)(Java Doc)
public void setRemoteApiList(ArrayList<Class> list)(Code)(Java Doc)
public void setRemoteHomeClass(Class cl)(Code)(Java Doc)
public void setRemoteObjectClass(Class cl)(Code)(Java Doc)
public void setServerProgram(ConfigProgram serverProgram)(Code)(Java Doc)
public void setServiceEndpoint(Class cl)(Code)(Java Doc)
public void setTransactionTimeout(long timeout)(Code)(Java Doc)
public boolean start() throws Exception(Code)(Java Doc)
public String toString()(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.