Tag: programming languages
Questions Related to programming languages
-
ejbCreate()
-
ejbActivate()
-
create()
-
setSessionContext()
-
getRollbackOnly()
-
getEJBHome()
-
findAllCustomers(…)
-
removeTheCustomer(…)
-
createCustomer(…)
-
create()
-
retrieveCustData(…)
-
One or more
-
Zero or more
-
Exactly one
-
Zero
-
ObjectNotFoundException.
-
An empty Collection will be returned.
-
An entity would be created and a reference to that entity would be returned.
-
EntityNotFoundException.
-
The entity bean instance is deleted.
-
The entity in the database is deleted.
-
Both the entity and the entity bean instance survive, but that entity bean instance does not represent that entity anymore.
-
Nothing happens; the container simply ignores the call.
-
You cannot write JDBC code in the bean class to make a connection and send queries to any database.
-
You cannot write JDBC code in the bean class to change the values of virtual persistent fields of your bean.
-
You can write JDBC code and get connected to any database you want.
-
You can write JDBC code to read the virtual persistent fields, but you cannot change their values.
-
getEJBObject()
-
getPrimaryKey()
-
getEJBHome()
-
getRollbackOnly()
-
getUserTransaction()
-
All entity bean instances of the same type (say CustomerBean) have the same Home, that is, an instance of an object that implements the home interface of this bean.
-
A specific entity bean instance can be accessed by only one client at a time.
-
If two clients wanted to access the same entity in the database concurrently, the container would make two entity bean instances to represent that entity.
-
If two clients wanted to access the same entity in the database concurrently, the container would make one entity bean to represent that entity, and the two clients would get their own references to the same EJBObject correspondtwo clients would get their
-
ejbCreate
-
Home business methods
-
Business methods exposed in the component interface
-
ejbStore()
-
None of the above
-
234
-
334
-
2334
-
0123456
-
01234456
-
12334567