| com.caucho.ejb.cfg.EjbBean com.caucho.ejb.cfg21.Ejb21Bean com.caucho.ejb.cfg21.EjbEntityBean
EjbEntityBean | public class EjbEntityBean extends Ejb21Bean (Code) | | Configuration for an ejb entity bean.
|
Method Summary | |
public CmpField | addField(String fieldName) Add a cmp-field. | protected void | addImports(BeanAssembler assembler) Adds the assemblers. | public void | addQuery(Query query) Adds a query. | public void | addRelation(CmrRelation relation) Adds a relation role. | public void | addStubMethod(ApiMethod method) | protected void | assembleCreateMethod(ApiMethod method, BaseClass baseClass, String contextClassName, String prefix) | protected void | assembleHomeMethods(BeanAssembler assembler, BaseClass baseClass, String contextClassName, ApiClass homeClass, String prefix) | protected void | assembleViews(BeanAssembler assembler, String fullClassName) Assembles the generator methods. | public void | configureAmber(AmberConfig config) Configure for amber. | protected BeanAssembler | createAssembler(String fullClassName) Creates the assembler for the bean. | protected BeanGenerator | createBeanGenerator() Creates the bean generator for the session bean. | public CmpFieldProxy | createCmpField() Adds a new cmp-field. | protected EjbHomeView | createHomeView(ApiClass homeClass, String prefix) Creates the views. | protected EjbObjectView | createObjectView(ArrayList<ApiClass> apiList, String prefix, String suffix) Creates the views. | public Query | createQuery() Creates a query object for addition. | protected void | createViews21() Creates the views. | public boolean | dependsOn(EjbEntityBean target) Compares dependencies for identifying relations. | public AbstractServer | deployServer(EjbContainer ejbManager, JavaClassGenerator javaGen) Deploys the bean. | public void | generateAfterCommit(JavaWriter out) Generates the after commit method. | public void | generateBeanPrologue(JavaWriter out) Generates the bean prologue. | public void | generateDestroy(JavaWriter out) Generates the destroy method. | public String | getAbstractSchemaName() Returns the abstract-schema-name for the bean. | public int | getCacheSize() Returns the number of items in the entity cache. | public long | getCacheTimeout() Gets the timeout for items in the entity cache. | public CmpField | getCmpField(String fieldName) Gets the matching cmp-field. | public ArrayList<CmpField> | getCmpFields() | public ApiClass | getCompositeKeyClass() Returns the primary key class. | public DataSource | getDataSource() | public String | getEJBKind() Returns the kind of bean. | public EntityType | getEntityType() Returns the amber entity-type. | public ApiMethod | getFieldGetter(String fieldName) Returns the field getter method. | public Class | getFieldType(String fieldName) Gets the matching cmp-field. | public String | getFullImplName() Gets the implementation class name. | public ApiClass | getLocal() | public EjbMethodPattern | getMethod(MethodSignature sig) | public ApiClass | getPrimKeyClass() Returns the primary key class. | public String | getPrimKeyField() Returns the primary key field. | public EjbMethodPattern | getQuery(ApiMethod method, String intf) Gets the best method. | public ArrayList<EjbMethodPattern> | getQueryList() returns the method list. | public CmrRelation | getRelation(String relationName) Gets the matching cmp-relation. | public ArrayList<CmrRelation> | getRelations() | public String | getSQLTable() Returns the sql-table for the bean. | public ArrayList<ApiMethod> | getStubMethods() | public void | init() Configure initialization. | public void | initIntrospect() Configure initialization. | protected void | introspectCMPCompositeId() Introspects the CMP id. | protected void | introspectCMPFields() Introspects the missing CMP fields. | protected void | introspectCMPId() Introspects the CMP id. | protected EjbBaseMethod | introspectEJBMethod(ApiMethod method) Introspects an ejb method. | public boolean | isCMP() Returns true if the entity bean is a CMP. | public boolean | isCMP1() Returns true if the entity bean is a CMP. | public boolean | isReadOnly() | public void | setAbstractSchemaName(String abstractSchema) Sets the abstract-schema for the bean. | public void | setCMP(boolean isCMP) Sets true if the entity bean is CMP. | public void | setCacheSize(int cacheSize) Sets the number of items in the entity cache. | public void | setCacheTimeout(Period cacheTimeout) Sets the timeout for items in the entity cache. | public void | setCmpVersion(String version) Sets the CMP version. | public void | setDataSource(DataSource dataSource) Sets the data-source for the bean. | public void | setEJBClass(Class ejbClass) Sets the ejb implementation class. | public void | setPersistenceType(String type) Sets the persistence type. | public void | setPrimKeyClass(Class cl) Sets the primary key class. | public void | setPrimKeyField(String field) Sets the primary key field. | public void | setReadOnly(boolean isReadOnly) | public void | setReentrant(boolean reentrant) Sets true if the bean is reentrant. | public void | setSQLTable(String sqlTable) Sets the sql-table for the bean. | public String | toString() | protected void | validateCMPFields() Introspects the missing CMP fields. | protected void | validateImplMethod(ApiMethod method) Introspects an ejb method. |
EjbEntityBean | public EjbEntityBean(EjbConfig ejbConfig, String ejbModuleName)(Code) | | Creates a new entity bean configuration.
|
addQuery | public void addQuery(Query query)(Code) | | Adds a query.
|
addRelation | public void addRelation(CmrRelation relation) throws ConfigException(Code) | | Adds a relation role.
|
addStubMethod | public void addStubMethod(ApiMethod method)(Code) | | Adds a stub method
|
assembleViews | protected void assembleViews(BeanAssembler assembler, String fullClassName) throws ConfigException(Code) | | Assembles the generator methods.
|
configureAmber | public void configureAmber(AmberConfig config) throws ConfigException(Code) | | Configure for amber.
|
createBeanGenerator | protected BeanGenerator createBeanGenerator()(Code) | | Creates the bean generator for the session bean.
|
createQuery | public Query createQuery()(Code) | | Creates a query object for addition.
|
createViews21 | protected void createViews21() throws ConfigException(Code) | | Creates the views.
|
dependsOn | public boolean dependsOn(EjbEntityBean target)(Code) | | Compares dependencies for identifying relations.
|
getAbstractSchemaName | public String getAbstractSchemaName()(Code) | | Returns the abstract-schema-name for the bean.
|
getCacheSize | public int getCacheSize()(Code) | | Returns the number of items in the entity cache.
|
getCacheTimeout | public long getCacheTimeout()(Code) | | Gets the timeout for items in the entity cache.
|
getCompositeKeyClass | public ApiClass getCompositeKeyClass()(Code) | | Returns the primary key class.
|
getDataSource | public DataSource getDataSource()(Code) | | Returns the JNDI name for the data-source
|
getEJBKind | public String getEJBKind()(Code) | | Returns the kind of bean.
|
getEntityType | public EntityType getEntityType()(Code) | | Returns the amber entity-type.
|
getFieldType | public Class getFieldType(String fieldName)(Code) | | Gets the matching cmp-field.
|
getFullImplName | public String getFullImplName()(Code) | | Gets the implementation class name.
|
getPrimKeyClass | public ApiClass getPrimKeyClass()(Code) | | Returns the primary key class.
|
getPrimKeyField | public String getPrimKeyField()(Code) | | Returns the primary key field.
|
getSQLTable | public String getSQLTable()(Code) | | Returns the sql-table for the bean.
|
init | public void init() throws ConfigException(Code) | | Configure initialization.
|
initIntrospect | public void initIntrospect() throws ConfigException(Code) | | Configure initialization.
|
introspectCMPCompositeId | protected void introspectCMPCompositeId() throws ConfigException(Code) | | Introspects the CMP id.
|
introspectCMPFields | protected void introspectCMPFields() throws ConfigException(Code) | | Introspects the missing CMP fields.
|
introspectCMPId | protected void introspectCMPId() throws ConfigException(Code) | | Introspects the CMP id.
|
isCMP | public boolean isCMP()(Code) | | Returns true if the entity bean is a CMP.
|
isCMP1 | public boolean isCMP1()(Code) | | Returns true if the entity bean is a CMP.
|
isReadOnly | public boolean isReadOnly()(Code) | | Returns true if the entity bean is read-only
|
setAbstractSchemaName | public void setAbstractSchemaName(String abstractSchema) throws ConfigException(Code) | | Sets the abstract-schema for the bean.
|
setCMP | public void setCMP(boolean isCMP)(Code) | | Sets true if the entity bean is CMP.
|
setCacheSize | public void setCacheSize(int cacheSize)(Code) | | Sets the number of items in the entity cache.
|
setCacheTimeout | public void setCacheTimeout(Period cacheTimeout)(Code) | | Sets the timeout for items in the entity cache.
|
setCmpVersion | public void setCmpVersion(String version) throws ConfigException(Code) | | Sets the CMP version.
|
setDataSource | public void setDataSource(DataSource dataSource)(Code) | | Sets the data-source for the bean.
|
setEJBClass | public void setEJBClass(Class ejbClass) throws ConfigException(Code) | | Sets the ejb implementation class.
|
setPersistenceType | public void setPersistenceType(String type) throws ConfigException(Code) | | Sets the persistence type.
|
setPrimKeyClass | public void setPrimKeyClass(Class cl)(Code) | | Sets the primary key class.
|
setPrimKeyField | public void setPrimKeyField(String field)(Code) | | Sets the primary key field.
|
setReadOnly | public void setReadOnly(boolean isReadOnly)(Code) | | Sets true if the entity bean is read-only
|
setReentrant | public void setReentrant(boolean reentrant) throws ConfigException(Code) | | Sets true if the bean is reentrant.
|
setSQLTable | public void setSQLTable(String sqlTable)(Code) | | Sets the sql-table for the bean.
|
validateCMPFields | protected void validateCMPFields() throws ConfigException(Code) | | Introspects the missing CMP fields.
|
validateImplMethod | protected void validateImplMethod(ApiMethod method) throws ConfigException(Code) | | Introspects an ejb method.
|
Methods inherited from com.caucho.ejb.cfg.EjbBean | public void addBeanDependency(String ejbName)(Code)(Java Doc) public void addBuilderProgram(ConfigProgram init)(Code)(Java Doc) public void addBusinessLocal(Class localClass)(Code)(Java Doc) public void addBusinessRemote(Class remoteClass)(Code)(Java Doc) public void addDepend(Path path)(Code)(Java Doc) public void addDependency(PersistentDependency depend)(Code)(Java Doc) public void addDependency(Class cl)(Code)(Java Doc) public void addDependencyList(ArrayList<PersistentDependency> dependList)(Code)(Java Doc) protected void addImports(BeanAssembler assembler)(Code)(Java Doc) public void addInitProgram(ConfigProgram init)(Code)(Java Doc) public void addInterceptor(Interceptor interceptor)(Code)(Java Doc) public void addMethod(EjbMethodPattern method)(Code)(Java Doc) public void addPostConstruct(PostConstructType postConstruct)(Code)(Java Doc) public void addRemoveMethod(RemoveMethod removeMethod)(Code)(Java Doc) public void assembleBeanMethods() throws ConfigException(Code)(Java Doc) public GenClass assembleGenerator(String fullClassName) throws NoSuchMethodException, ConfigException(Code)(Java Doc) protected void assembleHomeMethods(BeanAssembler assembler, BaseClass baseClass, String contextClassName, ApiClass homeClass, String prefix) throws NoSuchMethodException(Code)(Java Doc) protected void assembleMethods(BeanAssembler assembler, String fullClassName) throws ConfigException(Code)(Java Doc) protected void assembleMethods(BeanAssembler assembler, ViewClass view, String contextClassName, ArrayList<ApiMethod> methods, String prefix) throws NoSuchMethodException(Code)(Java Doc) protected void assembleViews(BeanAssembler assembler, String fullClassName) throws ConfigException(Code)(Java Doc) public boolean classHasMethod(ApiMethod method, ApiClass cl)(Code)(Java Doc) public void configureAmber(AmberConfig config) throws ConfigException(Code)(Java Doc) public boolean containsInterceptor(String interceptorClassName)(Code)(Java Doc) protected BeanAssembler createAssembler(String fullClassName)(Code)(Java Doc) protected BeanGenerator createBeanGenerator()(Code)(Java Doc) protected EjbHomeView createHomeView(ApiClass homeClass, String prefix) throws ConfigException(Code)(Java Doc) public MessageDestinationRef createMessageDestinationRef()(Code)(Java Doc) public EjbMethodPattern createMethod(MethodSignature sig)(Code)(Java Doc) protected EjbObjectView createObjectView(ArrayList<ApiClass> apiList, String prefix, String suffix) throws ConfigException(Code)(Java Doc) protected EjbObjectView createRemoteObjectView(ArrayList<ApiClass> apiList, String prefix, String suffix) throws ConfigException(Code)(Java Doc) protected void createViews21() throws ConfigException(Code)(Java Doc) public AbstractServer deployServer(EjbContainer ejbContainer, JavaClassGenerator javaGen) throws ClassNotFoundException, ConfigException(Code)(Java Doc) public ConfigException error(String msg)(Code)(Java Doc) public RuntimeException error(Exception e)(Code)(Java Doc) protected ApiMethod findFirstCreateMethod(ApiClass cl) throws ConfigException(Code)(Java Doc) public static ApiMethod findMethod(MethodSignature sig, ApiClass cl, String intf)(Code)(Java Doc) public static ApiMethod findMethod(ArrayList<ApiMethod> methods, ApiMethod method)(Code)(Java Doc) public void generate(JavaClassGenerator javaGen, boolean isAutoCompile) throws Exception(Code)(Java Doc) public String getAroundInvokeMethodName()(Code)(Java Doc) public ArrayList<String> getBeanDependList()(Code)(Java Doc) public ClassLoader getClassLoader()(Code)(Java Doc) public static String getClassName(Class cl)(Code)(Java Doc) public EjbConfig getConfig()(Code)(Java Doc) public ArrayList<PersistentDependency> getDependList()(Code)(Java Doc) public Class getEJBClass()(Code)(Java Doc) public String getEJBClassName()(Code)(Java Doc) public ApiClass getEJBClassWrapper()(Code)(Java Doc) public String getEJBFullClassName()(Code)(Java Doc) public String getEJBKind()(Code)(Java Doc) public String getEJBModuleName()(Code)(Java Doc) public String getEJBName()(Code)(Java Doc) public EjbContainer getEjbContainer()(Code)(Java Doc) public String getFilename()(Code)(Java Doc) public String getFullImplName()(Code)(Java Doc) public static String getFullMethodName(ApiMethod method)(Code)(Java Doc) public static String getFullMethodName(String methodName, Class[] params)(Code)(Java Doc) public ContainerProgram getInitProgram()(Code)(Java Doc) public Interceptor getInterceptor(String interceptorClassName)(Code)(Java Doc) public ArrayList<Interceptor> getInterceptors()(Code)(Java Doc) public ArrayList<Interceptor> getInvokeInterceptors(String methodName)(Code)(Java Doc) public int getLine()(Code)(Java Doc) public ApiClass getLocalHome()(Code)(Java Doc) public ArrayList<ApiClass> getLocalList()(Code)(Java Doc) public String getLocation()(Code)(Java Doc) public String getMappedName()(Code)(Java Doc) public ApiMethod getMethod(String methodName, Class[] paramTypes)(Code)(Java Doc) public static ApiMethod getMethod(ApiClass cl, ApiMethod sourceMethod)(Code)(Java Doc) public static ApiMethod getMethod(ArrayList<ApiClass> apiList, String name, Class[] param)(Code)(Java Doc) public static ApiMethod getMethod(ApiClass cl, String name, Class[] param)(Code)(Java Doc) public ArrayList<EjbMethodPattern> getMethodList()(Code)(Java Doc) public EjbMethodPattern getMethodPattern(ApiMethod method, String intf)(Code)(Java Doc) public static ArrayList<ApiMethod> getMethods(ArrayList<ApiClass> apiList)(Code)(Java Doc) public Class getRemoteClass()(Code)(Java Doc) public ApiClass getRemoteHome()(Code)(Java Doc) public Class getRemoteHomeClass()(Code)(Java Doc) public ArrayList<ApiClass> getRemoteList()(Code)(Java Doc) public RemoveMethod getRemoveMethod(Method method)(Code)(Java Doc) public ArrayList<RemoveMethod> getRemoveMethods()(Code)(Java Doc) public CallChain getSecurityChain(CallChain next, ApiMethod method, String prefix)(Code)(Java Doc) public ContainerProgram getServerProgram()(Code)(Java Doc) public static String getShortClassName(Class cl)(Code)(Java Doc) public String getSkeletonName()(Code)(Java Doc) public String getTimeoutMethodName()(Code)(Java Doc) public TransactionAttributeType getTransactionAttribute(ApiMethod method, String intf)(Code)(Java Doc) public CallChain getTransactionChain(CallChain next, ApiMethod apiMethod, ApiMethod implMethod, String prefix)(Code)(Java Doc) public long getTransactionTimeout()(Code)(Java Doc) public boolean hasException(ApiMethod method, Class exn) throws ConfigException(Code)(Java Doc) public void init() throws ConfigException(Code)(Java Doc) public void initIntrospect() throws ConfigException(Code)(Java Doc) protected void introspect()(Code)(Java Doc) protected void introspectBean(ApiClass type, String defaultName) throws ConfigException(Code)(Java Doc) protected EjbBaseMethod introspectEJBMethod(ApiMethod method) throws ConfigException(Code)(Java Doc) public boolean isAllowPOJO()(Code)(Java Doc) public boolean isCMP()(Code)(Java Doc) public boolean isCMP1()(Code)(Java Doc) public boolean isContainerTransaction()(Code)(Java Doc) public boolean isEJB3()(Code)(Java Doc) public static boolean isEquiv(ApiMethod oldMethod, ApiMethod method)(Code)(Java Doc) public static boolean isMatch(ApiMethod methodA, ApiMethod methodB)(Code)(Java Doc) public static boolean isMatch(ApiMethod method, String name, Class[] param)(Code)(Java Doc) protected Class loadClass(String className)(Code)(Java Doc) public void setAllowPOJO(boolean allowPOJO)(Code)(Java Doc) public void setAroundInvoke(AroundInvokeConfig aroundInvoke)(Code)(Java Doc) public void setAroundInvokeMethodName(String aroundInvokeMethodName)(Code)(Java Doc) public void setConfigLocation(String filename, int line)(Code)(Java Doc) public void setContainerTransaction(boolean isContainerTransaction)(Code)(Java Doc) public void setEJBClass(Class ejbClass) throws ConfigException(Code)(Java Doc) public void setEJBClassWrapper(ApiClass ejbClass) throws ConfigException(Code)(Java Doc) public void setEJBName(String ejbName)(Code)(Java Doc) public void setHome(Class homeClass) throws ConfigException(Code)(Java Doc) public void setInit(ContainerProgram init)(Code)(Java Doc) public void setLocal(Class local) throws ConfigException(Code)(Java Doc) public void setLocalHome(Class localHomeClass) throws ConfigException(Code)(Java Doc) public void setLocalHomeWrapper(ApiClass localHome) throws ConfigException(Code)(Java Doc) public void setLocalWrapper(ApiClass local) throws ConfigException(Code)(Java Doc) public void setLocation(String location)(Code)(Java Doc) public void setMappedName(String mappedName)(Code)(Java Doc) public void setRemote(Class remote) throws ConfigException(Code)(Java Doc) public void setRemoteHomeWrapper(ApiClass remoteHome) throws ConfigException(Code)(Java Doc) public void setRemoteWrapper(ApiClass remote) throws ConfigException(Code)(Java Doc) public void setSecurityIdentity(EjbSecurityIdentity securityIdentity)(Code)(Java Doc) public void setTransactionTimeout(Period timeout)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void validateException(ApiMethod method, Class e) throws ConfigException(Code)(Java Doc) public void validateExceptions(ApiMethod method, Class[] exn) throws ConfigException(Code)(Java Doc) public void validateExceptions(ApiMethod caller, ApiMethod callee) throws ConfigException(Code)(Java Doc) protected void validateImplMethod(ApiMethod method) throws ConfigException(Code)(Java Doc) protected ApiMethod validateMethod(String methodName, Class[] param) throws ConfigException(Code)(Java Doc) protected ApiMethod validateMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass) throws ConfigException(Code)(Java Doc) protected ApiMethod validateMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass, boolean isOptional) throws ConfigException(Code)(Java Doc) protected ApiMethod validateNonFinalMethod(String methodName, Class[] param, boolean isOptional) throws ConfigException(Code)(Java Doc) protected ApiMethod validateNonFinalMethod(String methodName, Class[] param) throws ConfigException(Code)(Java Doc) protected ApiMethod validateNonFinalMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass) throws ConfigException(Code)(Java Doc) protected ApiMethod validateNonFinalMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass, boolean isOptional) throws ConfigException(Code)(Java Doc) protected void validatePublicMethod(ApiMethod method) throws ConfigException(Code)(Java Doc) protected void validateRemote(ApiClass objectClass) throws ConfigException(Code)(Java Doc)
|
|
|