JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   14.  'Business Object' Reference
 


14.35 ServerJar Object

SuperclassjarBase
Subclassed By
assembly
DescriptionThis is a grouping of objects in the business object model. It is a slight enhancement of the Jar meta-class from the Java meta-model.

It contains

  • interfaces
  • internal-classes and its derivatives at the business object level - business-object, entity and session
  • relations.
This also gives a namespace for looking up types: types can be validated within this namespace.
Contained
Lists
1
Name  referenceType
Type  java:referenceType
Inherited from  java:jar
 
2
Name  jarGlobalImports
Type  String
Inherited from  java:jar
 
3
Name  baseViewRelation
Type  baseViewRelation
Inherited from  jarBase
 
4
Name  internalClass
Type  java:jwclass
Inherited from  jarBase
 
5
Name  relation
Type  relation
Description   Defines the relationship between two entities in the Jar.
Indexed property  name
 
6
Name  roleGroup
Type  roleGroup
Description  Defines the named group of security roles used by permissions on business methods.
GenerateAllList  false
Inherited
properties
name from java:jar.name

description from relation.description

template (base property)

text from parameter.text

jwpattern (base property)

extraJavacProperties from java:jar.extraJavacProperties

extraJavacElements from java:jar.extraJavacElements

extraJarProperties from java:jar.extraJarProperties

createAggregateImports from java:jar.createAggregateImports

headerComment from java:referenceType.headerComment

customerHeaderComment from java:referenceType.customerHeaderComment

package from baseViewRelation.package

generateLogLevel from constraint.generateLogLevel

constraintExceptionType from constraint.constraintExceptionType

uid from roleGroup.uid

generateSecurityRoles from jarBase.generateSecurityRoles

convertEmptyStringsToNull from entity.convertEmptyStringsToNull

 14.35.1  Property 'generateMaintenanceSession'
 14.35.2  Property 'generateDataViewForEntity'
 14.35.3  Property 'generatePagesForBusinessMethods'
 14.35.4  Property 'generateDataviewImplClass'
 14.35.5  Property 'dataSource'

14.35.1  Property 'generateMaintenanceSession'
DescriptionSet this flag to 'true' to generate the maintenance session bean for this data-view. This is a delegated property, so it can be set in the jar/assembly, application or top-level configuration properties. By default it is set to 'true'. If you want to disable this for a particular object, set the value to 'false'.

The standard patterns will automatically generate methods on the session bean to
  • search for the object
  • view/update the object
  • delete the object.
Typeboolean
Defaulttrue
Delegatestrue

14.35.2  Property 'generateDataViewForEntity'
DescriptionSet this to 'true' to generate the data view for this entity. By default, data views are generated for entities based on a setting in the system.properties file. If you want to disable this for a particular object, set the value to 'false'.

The default pattern copies all fields from the entity to the data-view.
Typeboolean
Delegatestrue

14.35.3  Property 'generatePagesForBusinessMethods'
DescriptionSet this to 'true' to generate pages based on a business method.

The default for this value (which is true in the standard distribution) comes from the generatePagesForBusinessMethods setting in the system.properties file. If you want to disable this for a particular object, set the value to 'false'.

The standard pattern triggered by this value creates a page with a single button that will be linked to the business method.
Typeboolean
Delegatestrue

14.35.4  Property 'generateDataviewImplClass'
DescriptionIf this property is true, the rendering creates both an implementation class and a base class.

The default is false, which will create just the one class (with the implementation name, but with the base implementation).

This flag only needs to be set where additional methods will need to be implemented by hand to support the operation of the data-view.
Typeboolean
Delegatestrue

14.35.5  Property 'dataSource'
DescriptionThe data-source is the JNDI name of a java.sql.DataSource to be used for database connectivity: in other words, it is a logical name for a database and the username and other properties used to connect to it.

This is a delegated property, that exists on entities and jars (assemblies in .NET). The value used will then be the first value encountered on the parent chain - entities, jars/assemblies, or configuration property. In the standard distribution, the default (e.g. 'JeeWizDemoDS') is specified in the J2EE or .NET meta-models system.properties or a build property.
TypeString
Delegatestrue
 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.