Code Search for Developers
 
 
  

IParameterDefinition.java from BIRT at Krugle


Show IParameterDefinition.java syntax highlighted

/*
 *************************************************************************
 * Copyright (c) 2004, 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *  
 *************************************************************************
 */
package org.eclipse.birt.data.engine.api;

/**
 * Describes the metadata of a data set parameter.
 * The definition is used to provide a parameter's metadata
 * when such information cannot be dynamically obtained from the 
 * underlying data source.
 */
public interface IParameterDefinition
{
    /**
     * Returns the parameter name. 
     * @return the name of the parameter. Null if parameter is identified by index.
     */
    public abstract String getName();

    /**
     * Returns the parameter position. Parameter positions start from 1.
     * @return the parameter position. -1 if parameter is identified by name.
     */
    public abstract int getPosition();

    /**
     * Returns the parameter data type. See the <code>org.eclipse.birt.core.data.DataType</code>
     *  class for return value constants.
     * @return the parameter data type
     */
    public abstract int getType();

    /**
     * Returns the parameter's native data type as defined by the underlying data source.
     * The native data type code value is implementation-specific.
     * Default value is 0 for none or unknown value.
     * @return  the native data type code of this parameter
     */
    public abstract int getNativeType();

	/**
	 * Returns whether this parameter is an input parameter. 
	 * A parameter can be of both input and output modes.
	 * @return	true if this parameter is of input mode, 
	 * 			false otherwise.
	 */
	public abstract boolean isInputMode();
	
	/**
	 * Returns whether this parameter is an output parameter. 
	 * A parameter can be of both input and output modes.
	 * @return	true if this parameter is of output mode, 
	 * 			false otherwise.
	 */
	public abstract boolean isOutputMode();
    
    /**
	 * Specifies whether this parameter is optional.
	 * Applies to the parameter only if it is of input mode.
	 * @return	true if this parameter is optional, 
	 * 			false if this parameter is required.
     */
    public abstract boolean isInputOptional();
    
    /**
     * Returns the default input value of this parameter.
     * @return	the default value, or null if the default value 
	 * 			is not specified or 
	 * 			if this is an output only parameter.
     */
    public abstract String getDefaultInputValue();
    
	/**
	 * Specifies whether null values are allowed for this parameter.
	 * @return	true if this parameter value can be null, 
	 * 			false otherwise.
	 */
	public abstract boolean isNullable();

}



See more files for this project here

BIRT

BIRT is an open source, Eclipse-based reporting system that integrates with your application to produce compelling reports for both web and PDF.

Project homepage: http://www.eclipse.org/birt/phoenix/
Programming language(s): Java,XML
License: gpl2

  aggregation/
    Accumulator.java
    Aggregation.java
    IAggregation.java
    package.html
  querydefn/
    BaseDataSetDesign.java
    BaseDataSourceDesign.java
    BaseExpression.java
    BaseQueryDefinition.java
    BaseTransform.java
    ColumnDefinition.java
    ComputedColumn.java
    ConditionalExpression.java
    FilterDefinition.java
    GroupDefinition.java
    InputParameterBinding.java
    JoinCondition.java
    JointDataSetDesign.java
    OdaDataSetDesign.java
    OdaDataSourceDesign.java
    ParameterDefinition.java
    QueryDefinition.java
    ScriptDataSetDesign.java
    ScriptDataSourceDesign.java
    ScriptExpression.java
    SortDefinition.java
    SubqueryDefinition.java
    package.html
  script/
    IBaseDataSetEventHandler.java
    IBaseDataSourceEventHandler.java
    IDataRow.java
    IDataSetInstanceHandle.java
    IDataSourceInstanceHandle.java
    IJavascriptContext.java
    IScriptDataSetEventHandler.java
    IScriptDataSetMetaDataDefinition.java
    IScriptDataSourceEventHandler.java
    package.html
  DataEngine.java
  DataEngineContext.java
  IBaseDataSetDesign.java
  IBaseDataSourceDesign.java
  IBaseExpression.java
  IBaseQueryDefinition.java
  IBaseTransform.java
  IColumnDefinition.java
  IComputedColumn.java
  IConditionalExpression.java
  IDataEngineFactory.java
  IFilterDefinition.java
  IGroupDefinition.java
  IInputParameterBinding.java
  IJoinCondition.java
  IJointDataSetDesign.java
  IOdaDataSetDesign.java
  IOdaDataSourceDesign.java
  IParameterDefinition.java
  IParameterMetaData.java
  IPreparedQuery.java
  IQueryDefinition.java
  IQueryResults.java
  IResultIterator.java
  IResultMetaData.java
  IScriptDataSetDesign.java
  IScriptDataSourceDesign.java
  IScriptExpression.java
  ISortDefinition.java
  ISubqueryDefinition.java
  package.html