Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 1 (11.1.1)
E14128-02


oracle.alm.connector.data
Class DataSourceDef

java.lang.Object
  extended by oracle.alm.connector.data.DataSourceDef


public class DataSourceDef
extends java.lang.Object

The DataSourceDef defines a data source for a work item field. It is the run time data structure for the DataSource tag used in the connector model meta data XML file.

Since:
11.1.1.1.0
See Also:
WorkItemDef

Constructor Summary
DataSourceDef(java.lang.String name)
          Constructs a data source with the specified name.

 

Method Summary
 void AddCriteria(java.lang.String name, WorkItemQuery criteria)
          Adds a criterion to be used by the data source.
 WorkItemQuery getCriteria(java.lang.String name)
          Retrieves query criteria used for the data source.
 java.util.Map<java.lang.String,WorkItemFieldDef> getFieldDefs()
          Retrieves all the field definitions created based on the model XML data
 java.lang.String getIdDef()
          Retrieves the field name used to uniquely identify a row of data record
 java.lang.String getName()
          Retrieves the data source name.
 void setFieldDef(WorkItemFieldDef fieldDef)
          Sets all fields definition for the data source.
 void setIdDef(java.lang.String idDef)
          Sets the id definition for row data in the data source.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DataSourceDef

public DataSourceDef(java.lang.String name)
Constructs a data source with the specified name. Note: name is unique for each data source in the repository model.
Parameters:
name - the name given to the data source object.

Method Detail

getName

public java.lang.String getName()
Retrieves the data source name.
Returns:
the name of the data source.

setIdDef

public void setIdDef(java.lang.String idDef)
Sets the id definition for row data in the data source.
Parameters:
idDef - an field name used to uniquely identify a row of data record in the data source.

getIdDef

public java.lang.String getIdDef()
Retrieves the field name used to uniquely identify a row of data record
Returns:
the field name used to uniquely identify a row of data record

getFieldDefs

public java.util.Map<java.lang.String,WorkItemFieldDef> getFieldDefs()
Retrieves all the field definitions created based on the model XML data
Returns:
all fields of the data source as a <field name, field definition object > map.

getCriteria

public WorkItemQuery getCriteria(java.lang.String name)
Retrieves query criteria used for the data source.
Parameters:
name - criteria name.
Returns:
return the criteria identofied by the specified criteria name.

setFieldDef

public void setFieldDef(WorkItemFieldDef fieldDef)

Sets all fields definition for the data source.

Parameters:
fieldDef - WorkItemFieldDef object that contains all field definition based on model XML.

AddCriteria

public void AddCriteria(java.lang.String name,
                        WorkItemQuery criteria)

Adds a criterion to be used by the data source.

Parameters:
name - criteria name
criteria - a criteria

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 1 (11.1.1)
E14128-02


Copyright © 1998,2009, Oracle. All rights reserved.