|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.ispsoft.jaxme.generator.beanwriter.EntityBeanClassWriter
de.ispsoft.jaxme.generator.beanwriter.SessionBeanClassWriter
Used by the BeanWriter to generate session beans.
| Field Summary |
| Fields inherited from class de.ispsoft.jaxme.generator.beanwriter.EntityBeanClassWriter |
element, emptyAttributes, sourceWriter |
| Constructor Summary | |
SessionBeanClassWriter(SourceWriterImpl pSourceWriter,
SchemaComplexElement pElement)
Creates a new instance of SessionBeanWriter |
|
| Method Summary | |
protected JavaField |
generateContextField(JavaSource js)
Generates the context field. |
protected JavaMethod |
generateCreateMethod(JavaSource js)
Generates the create() method. |
protected JavaMethod |
generateEjbLoadMethod(JavaSource js)
Generates the ejbLoad() method. |
protected JavaMethod |
generateEjbPostCreateMethod(JavaSource js)
Generates the ejbPostCreate() method. |
protected JavaMethod |
generateEjbRemoveMethod(JavaSource js)
Generates the ejbRemove() method. |
protected JavaMethod |
generateEjbStoreMethod(JavaSource js)
Generates the ejbStore() method. |
protected JavaField |
generateElementField(JavaSource js)
Generates the element field. |
protected JavaMethod |
generateFindByPrimaryKeyMethod(JavaSource js)
Generates the findByPrimaryKey() method. |
protected JavaMethod |
generateFindByQueryFourArgsMethod(JavaSource js)
Generates the findByQuery() method with four arguments. |
protected JavaMethod |
generateFindByQueryOneArgMethod(JavaSource js)
Generates the findByQuery() method with one argument. |
protected JavaMethod |
generateFindByQueryThreeArgsMethod(JavaSource js)
Generates the findByQuery() method with three arguments. |
protected JavaMethod |
generateFindByQueryTwoArgsMethod(JavaSource js)
Generates the findByQuery() method with two arguments. |
protected JavaMethod |
generateGetXMLMethod(JavaSource js)
Generates the getXML() method. |
protected JavaMethod |
generateIsModifiedMethod(JavaSource js)
Generates the isModified() method. |
JavaSource |
generatePrimaryKey()
Generates the primary key class. |
protected JavaMethod |
generateSetContextMethod(JavaSource js)
Generates the setEntityContext() method. |
protected JavaMethod |
generateUnsetContextMethod(JavaSource js)
Generates the unsetEntityContext() method. |
protected JavaMethod |
generateUpdateMethod(JavaSource js)
Generates the update() method. |
protected java.lang.String[] |
getBeanImplementsClass()
Generates the interface, that the bean class implements. |
protected JdbcListMethod[] |
getBeanListMethods()
|
protected java.lang.String |
getBeanName()
Returns the beans name for resource references. |
protected JdbcListMethod[] |
getHomeListMethods()
|
protected JavaMethod |
getListMethod(JavaSource pJs,
JdbcListMethod pMethod)
|
protected JdbcListMethod[] |
getRemoteListMethods()
|
void |
writeEntityDeclaration(org.xml.sax.ContentHandler pHandler)
Writes an entity bean declaration in the ejb-jar file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SessionBeanClassWriter(SourceWriterImpl pSourceWriter,
SchemaComplexElement pElement)
| Method Detail |
protected java.lang.String getBeanName()
Returns the beans name for resource references.
getBeanName in class EntityBeanClassWriterprotected JavaMethod generateCreateMethod(JavaSource js)
Generates the create() method.
generateCreateMethod in class EntityBeanClassWriterprotected JavaMethod generateEjbPostCreateMethod(JavaSource js)
Generates the ejbPostCreate() method.
generateEjbPostCreateMethod in class EntityBeanClassWriterprotected JavaMethod generateFindByPrimaryKeyMethod(JavaSource js)
Generates the findByPrimaryKey() method.
generateFindByPrimaryKeyMethod in class EntityBeanClassWriterprotected JavaMethod generateFindByQueryOneArgMethod(JavaSource js)
Generates the findByQuery() method with one argument.
generateFindByQueryOneArgMethod in class EntityBeanClassWriterprotected JavaMethod generateFindByQueryTwoArgsMethod(JavaSource js)
Generates the findByQuery() method with two arguments.
generateFindByQueryTwoArgsMethod in class EntityBeanClassWriterprotected JavaMethod generateFindByQueryThreeArgsMethod(JavaSource js)
Generates the findByQuery() method with three arguments.
generateFindByQueryThreeArgsMethod in class EntityBeanClassWriterprotected JavaMethod generateFindByQueryFourArgsMethod(JavaSource js)
Generates the findByQuery() method with four arguments.
generateFindByQueryFourArgsMethod in class EntityBeanClassWriterprotected JavaMethod generateGetXMLMethod(JavaSource js)
Generates the getXML() method.
generateGetXMLMethod in class EntityBeanClassWriterprotected JavaMethod generateUpdateMethod(JavaSource js)
Generates the update() method.
generateUpdateMethod in class EntityBeanClassWriterprotected JavaMethod generateEjbStoreMethod(JavaSource js)
Generates the ejbStore() method.
generateEjbStoreMethod in class EntityBeanClassWriterprotected JavaMethod generateEjbLoadMethod(JavaSource js)
Generates the ejbLoad() method.
generateEjbLoadMethod in class EntityBeanClassWriterprotected JavaMethod generateEjbRemoveMethod(JavaSource js)
Generates the ejbRemove() method.
generateEjbRemoveMethod in class EntityBeanClassWriterprotected JavaMethod generateSetContextMethod(JavaSource js)
Generates the setEntityContext() method.
generateSetContextMethod in class EntityBeanClassWriterprotected JavaMethod generateUnsetContextMethod(JavaSource js)
Generates the unsetEntityContext() method.
generateUnsetContextMethod in class EntityBeanClassWriterprotected JavaMethod generateIsModifiedMethod(JavaSource js)
Generates the isModified() method.
generateIsModifiedMethod in class EntityBeanClassWriterprotected JavaField generateContextField(JavaSource js)
Generates the context field.
generateContextField in class EntityBeanClassWriterprotected JavaField generateElementField(JavaSource js)
Generates the element field.
generateElementField in class EntityBeanClassWriterprotected java.lang.String[] getBeanImplementsClass()
Generates the interface, that the bean class implements.
getBeanImplementsClass in class EntityBeanClassWriterpublic JavaSource generatePrimaryKey()
Generates the primary key class.
generatePrimaryKey in interface BeanClassWritergeneratePrimaryKey in class EntityBeanClassWriter
public void writeEntityDeclaration(org.xml.sax.ContentHandler pHandler)
throws org.xml.sax.SAXException
Writes an entity bean declaration in the ejb-jar file.
writeEntityDeclaration in interface BeanClassWriterwriteEntityDeclaration in class EntityBeanClassWriterorg.xml.sax.SAXExceptionprotected JdbcListMethod[] getBeanListMethods()
getBeanListMethods in class EntityBeanClassWriterprotected JdbcListMethod[] getHomeListMethods()
getHomeListMethods in class EntityBeanClassWriterprotected JdbcListMethod[] getRemoteListMethods()
getRemoteListMethods in class EntityBeanClassWriter
protected JavaMethod getListMethod(JavaSource pJs,
JdbcListMethod pMethod)
throws SchemaException
getListMethod in class EntityBeanClassWriterSchemaException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||