|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 EntityBeanClassWriter
protected JavaMethod generateCreateMethod(JavaSource js)
Generates the create() method.
generateCreateMethod
in class EntityBeanClassWriter
protected JavaMethod generateEjbPostCreateMethod(JavaSource js)
Generates the ejbPostCreate() method.
generateEjbPostCreateMethod
in class EntityBeanClassWriter
protected JavaMethod generateFindByPrimaryKeyMethod(JavaSource js)
Generates the findByPrimaryKey() method.
generateFindByPrimaryKeyMethod
in class EntityBeanClassWriter
protected JavaMethod generateFindByQueryOneArgMethod(JavaSource js)
Generates the findByQuery() method with one argument.
generateFindByQueryOneArgMethod
in class EntityBeanClassWriter
protected JavaMethod generateFindByQueryTwoArgsMethod(JavaSource js)
Generates the findByQuery() method with two arguments.
generateFindByQueryTwoArgsMethod
in class EntityBeanClassWriter
protected JavaMethod generateFindByQueryThreeArgsMethod(JavaSource js)
Generates the findByQuery() method with three arguments.
generateFindByQueryThreeArgsMethod
in class EntityBeanClassWriter
protected JavaMethod generateFindByQueryFourArgsMethod(JavaSource js)
Generates the findByQuery() method with four arguments.
generateFindByQueryFourArgsMethod
in class EntityBeanClassWriter
protected JavaMethod generateGetXMLMethod(JavaSource js)
Generates the getXML() method.
generateGetXMLMethod
in class EntityBeanClassWriter
protected JavaMethod generateUpdateMethod(JavaSource js)
Generates the update() method.
generateUpdateMethod
in class EntityBeanClassWriter
protected JavaMethod generateEjbStoreMethod(JavaSource js)
Generates the ejbStore() method.
generateEjbStoreMethod
in class EntityBeanClassWriter
protected JavaMethod generateEjbLoadMethod(JavaSource js)
Generates the ejbLoad() method.
generateEjbLoadMethod
in class EntityBeanClassWriter
protected JavaMethod generateEjbRemoveMethod(JavaSource js)
Generates the ejbRemove() method.
generateEjbRemoveMethod
in class EntityBeanClassWriter
protected JavaMethod generateSetContextMethod(JavaSource js)
Generates the setEntityContext() method.
generateSetContextMethod
in class EntityBeanClassWriter
protected JavaMethod generateUnsetContextMethod(JavaSource js)
Generates the unsetEntityContext() method.
generateUnsetContextMethod
in class EntityBeanClassWriter
protected JavaMethod generateIsModifiedMethod(JavaSource js)
Generates the isModified() method.
generateIsModifiedMethod
in class EntityBeanClassWriter
protected JavaField generateContextField(JavaSource js)
Generates the context field.
generateContextField
in class EntityBeanClassWriter
protected JavaField generateElementField(JavaSource js)
Generates the element field.
generateElementField
in class EntityBeanClassWriter
protected java.lang.String[] getBeanImplementsClass()
Generates the interface, that the bean class implements.
getBeanImplementsClass
in class EntityBeanClassWriter
public JavaSource generatePrimaryKey()
Generates the primary key class.
generatePrimaryKey
in interface BeanClassWriter
generatePrimaryKey
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 BeanClassWriter
writeEntityDeclaration
in class EntityBeanClassWriter
org.xml.sax.SAXException
protected JdbcListMethod[] getBeanListMethods()
getBeanListMethods
in class EntityBeanClassWriter
protected JdbcListMethod[] getHomeListMethods()
getHomeListMethods
in class EntityBeanClassWriter
protected JdbcListMethod[] getRemoteListMethods()
getRemoteListMethods
in class EntityBeanClassWriter
protected JavaMethod getListMethod(JavaSource pJs, JdbcListMethod pMethod) throws SchemaException
getListMethod
in class EntityBeanClassWriter
SchemaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |