All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.pool.ServiceInfo
java.lang.Object
|
+----bea.jolt.pool.ServiceInfo
- public class ServiceInfo
- extends Object
This class provides the meta-information about a service and the parameters
in the service. It can be used to generate HTML for a service with its
input parameters.
- Author:
- Copyright (c) 1999 by BEA Systems, Inc. All Rights Reserved.
-
ServiceInfo()
-
-
getDataSet(SessionPool)
- Gets an empty data set from the input parameters of this service.
-
getDefinition(SessionPool)
- Gets the service definition from a repository.
-
getDisplayLength(String)
- Gets the display length for the value of an attribute defined in
the service definition.
-
getFieldName(String, int)
- Maps a multi-occurrence attribute name from the BEA Jolt repository
to a unique field name that can be used in a HTML Form.
-
getLabel(String, int)
- Gets a presentable label for a multi-occurrence attribute.
-
getMaxCount(String)
- Gets the maximum occurrence count for an attribute defined in the
service definition.
-
getType(String)
-
Gets a data type presented in string for an attribute.
-
setName(String)
- Sets the service name.
ServiceInfo
public ServiceInfo()
setName
public void setName(String svcname)
- Sets the service name.
- Parameters:
- svcname - The service name
getDataSet
public DataSet getDataSet(SessionPool spool)
- Gets an empty data set from the input parameters of this service.
- Parameters:
- spool - A session pool
- Returns:
- A web-server specific DataSet object
getDefinition
public int getDefinition(SessionPool spool)
- Gets the service definition from a repository.
- Parameters:
- spool - A session pool object
- name - A sevice name
- Returns:
- 0 if successful; -1 otherwise
getLabel
public String getLabel(String name,
int index)
- Gets a presentable label for a multi-occurrence attribute.
The return string may look like name[0], but it is subject
to change. This method is primarily for the generic HTML service.
- Parameters:
- name - The name of the attribute
- index - An instance number
- Returns:
- name or the name with an index.
getFieldName
public String getFieldName(String name,
int index)
- Maps a multi-occurrence attribute name from the BEA Jolt repository
to a unique field name that can be used in a HTML Form.
The field name has a trailing "_" and an index number
(for example, ACCOUNT_ID_2). This method
is primarily used by the generic HTML service.
- Parameters:
- name - The name of the attribute
- index - An instance number
- Returns:
- A unique field name
getMaxCount
public int getMaxCount(String name)
- Gets the maximum occurrence count for an attribute defined in the
service definition.
This method is primarily used by the generic
HTML service.
- Parameters:
- name - The name of the attribute
- Returns:
- The maximum occurrence count
getDisplayLength
public int getDisplayLength(String name)
- Gets the display length for the value of an attribute defined in
the service definition.
If the data type of the attribute is
string or CARRAY and the maximum length is undefined,
the defaults are 32 and 80 respectively. This method is
primarily used by the generic HTML service.
- Parameters:
- name - The name of the attribute
- Returns:
- The display field length
getType
public String getType(String name)
- Gets a data type presented in string for an attribute.
The return value is subject to change. This method is
primarily used by the generic HTML service.
- Parameters:
- name - The name of the attribute
- Returns:
- The data type string
All Packages Class Hierarchy This Package Previous Next Index