All Downloads are FREE. Search and download functionalities are using the official Maven repository.

at.spardat.xma.datasource.IDomRow Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
/*******************************************************************************
 * Copyright (c) 2003, 2007 s IT Solutions AT Spardat GmbH .
 * 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:
 *     s IT Solutions AT Spardat GmbH - initial API and implementation
 *******************************************************************************/

// @(#) $Id: IDomRow.java 2089 2007-11-28 13:56:13Z s3460 $
package at.spardat.xma.datasource;

import at.spardat.xma.mdl.Atom;

/**
 * Models a row in a {@link ITabularDomData}.
 * 
 * @author YSD, 20.06.2003 19:38:54
 */
public interface IDomRow {

    /**
     * The value of the column COD_KEY in the ITabularDomData. 
     * The returned value is never null and unique amongst the rows
     * in the ITabularDomData.
     */
    public String getKey ();
    
    /**
     * The value of the column SHORT_VALUE in the ITabularDomData.
     * The returned value is never null but may be empty String.
     */
    public String getShortValue ();
    
    /**
     * The value of the column LONG_VALUE in the ITabularDomData.
     * The returned value is never null but may be empty String.
     */
    public String getLongValue ();
    
    /**
     * Returns true if the rows VALID_FROM and VALID_TO time range
     * includes the current time, i.e., returns true if the current time is not
     * before VALID_FROM, 0:00 and not after VALID_TO, 23:59:59.999. 
     */
    public boolean isInValidTimeRange ();
    
    /**
     * Returns the value of this row for the column with a given column-index. 

* * Normally, this method is not needed, since you access the rows cells via * the other get-methods defined in this class. However, if your ITableProvider * wants to provide more columns than required for a ITabularDomData, * the auxiliary cells may be accessed via this method. * * @param columnIndex zero-based index of the column. * @return non null Atom. * @exception RuntimeException if columnIndex is greater than * or equal to the number of columns in the table. */ public Atom getCell (int columnIndex); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy