|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vdoclet.ejb.EjbInfo
Represents an EJB derived from Javadoc information
Constructor Summary | |
EjbInfo(ClassInfo srcClass)
Construct a new EjbInfo. |
Method Summary | |
List |
getAllSrcMethods()
Get methods from the srcClass and any inner "CMP" class |
String |
getBaseName()
Get the base-name for derived classes. |
EjbBundle |
getBundle()
Get the associated EjbBundle |
ClassInfo |
getCmp11Class()
Get a representation of the generated cmp11Class. |
String |
getCmp11ClassName()
Get the name of the bean cmp11Class. |
List |
getCmpFields()
Derive a set of persistent fields based on the CMP_COLUMN tag. |
String |
getCmpSchemaName()
Get the name of the abstract persistence schema |
List |
getCmrFields()
Derive a set of relationship fields based on the CMR_TARGET tag. |
ClassInfo |
getEjbClass()
Return a representation of the ejb-class. |
EjbLocalView |
getLocalView()
Get the local client view |
String |
getName()
Get the EJB-name of the EJB. |
ClassInfo |
getPrimaryKey()
Get a representation of the primary-key class. |
List |
getPrimaryKeyFields()
Derive a list of primary-key fields. |
Collection |
getQueryMethods()
Get a representation of the view-home interface. |
EjbRemoteView |
getRemoteView()
Get the remote client view |
ClassInfo |
getSrcClass()
Get ClassInfo for the bean implementation class. |
ClassInfo |
getSrcCmpInnerClass()
|
EjbInfo |
getSuperEjb()
|
List |
getTags(String name)
Return all the values of the named tag from the srcClass. |
String |
getTagValue(String name)
Return the named tag from the srcClass. |
String |
getTagValue(String name,
String defaultValue)
Return the named tag from the srcClass. |
String |
getType()
|
boolean |
isAbstract()
True if the srcClass was tagged with "@ejb-abstract". |
boolean |
isCmpEntity()
True if this represents a container-managed entity. |
boolean |
isEjb()
True if the srcClass represents an EJB. |
boolean |
isEntity()
True if the srcClass was tagged with "@ejb-entity". |
boolean |
isMessageDriven()
True if the srcClass was tagged with "@ejb-mdb". |
boolean |
isPrimaryKeyRequired()
Check whether we need to generate the primary-key |
boolean |
isSession()
True if the srcClass was tagged with "@ejb-session". |
void |
setBundle(EjbBundle bundle)
Associate this EjbInfo with an EjbBundle |
static String |
shortName(String fullName)
Get the last part of the argument, removing any package prefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EjbInfo(ClassInfo srcClass)
srcClass
- the bean implementation classMethod Detail |
public void setBundle(EjbBundle bundle)
public EjbBundle getBundle()
public ClassInfo getSrcClass()
public ClassInfo getSrcCmpInnerClass()
public List getAllSrcMethods()
public EjbInfo getSuperEjb()
public String getTagValue(String name, String defaultValue)
public String getTagValue(String name)
public List getTags(String name)
public boolean isEjb()
public boolean isEntity()
public boolean isSession()
public boolean isMessageDriven()
public boolean isCmpEntity()
public boolean isAbstract()
public String getType()
public String getBaseName()
public String getName()
public boolean isPrimaryKeyRequired()
public List getPrimaryKeyFields()
public ClassInfo getPrimaryKey()
public Collection getQueryMethods()
public EjbRemoteView getRemoteView()
public EjbLocalView getLocalView()
public String getCmp11ClassName()
The default is getBaseName() plus a "Cmp11" suffix. This can be overridden with an "@ejb-cmp11-class" tag.
public ClassInfo getCmp11Class()
public List getCmpFields()
public List getCmrFields()
public String getCmpSchemaName()
The default is the last word of getName(). This can be overridden with an "@ejb-cmp-schema-name" tag.
public ClassInfo getEjbClass()
public static String shortName(String fullName)
fullName
- a fully-qualified name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |