com.simba.dsi.dataengine.impl
Class DSIEmptyMetadataSource

java.lang.Object
  extended by com.simba.dsi.dataengine.impl.DSIEmptyMetadataSource
All Implemented Interfaces:
IMetadataSource

public class DSIEmptyMetadataSource
extends java.lang.Object
implements IMetadataSource

DSI empty metadata table.


Constructor Summary
DSIEmptyMetadataSource(com.simba.support.ILogger logger)
          Constructor.
 
Method Summary
 void close()
          Closes the MetadataSource and releases any resources held by it.
 void closeCursor()
          Closes the metadata source's internal cursor.
 boolean getMetadata(MetadataSourceColumnTag columnTag, long offset, long maxSize, DataWrapper data)
          Fills in data with the data for the given column in the current row.
 boolean hasMoreRows()
          Returns true if the ResultSet has more rows to fetch.
 boolean moveToNextRow()
          Indicates that the cursor should be moved to the next row in the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSIEmptyMetadataSource

public DSIEmptyMetadataSource(com.simba.support.ILogger logger)
Constructor.

Parameters:
logger - Logger to use for this instance of metadata source.
Method Detail

close

public void close()
Closes the MetadataSource and releases any resources held by it.

Specified by:
close in interface IMetadataSource

closeCursor

public void closeCursor()
                 throws com.simba.support.exceptions.ErrorException
Closes the metadata source's internal cursor. After a call to this method, no more calls will be made to moveToNextRow() and getMetadata().

Specified by:
closeCursor in interface IMetadataSource
Throws:
com.simba.support.exceptions.ErrorException - if an error occurs.

getMetadata

public boolean getMetadata(MetadataSourceColumnTag columnTag,
                           long offset,
                           long maxSize,
                           DataWrapper data)
                    throws com.simba.support.exceptions.ErrorException
Fills in data with the data for the given column in the current row. The target column is identified by metadataSourceColumnTag.

Specified by:
getMetadata in interface IMetadataSource
Parameters:
columnTag - The column to retrieve data from.
offset - The number of bytes in the data to skip before copying.
maxSize - The maximum number of bytes of data to return.
data - The object to return the data in.
Returns:
true if there is more data in the column; false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - if an error occurs.

hasMoreRows

public boolean hasMoreRows()
                    throws com.simba.support.exceptions.ErrorException
Returns true if the ResultSet has more rows to fetch. Returns false if there are no more rows to fetch.

Specified by:
hasMoreRows in interface IMetadataSource
Returns:
true if there are more rows to fetch, false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - If an error occurs.

moveToNextRow

public boolean moveToNextRow()
Indicates that the cursor should be moved to the next row in the source.

Specified by:
moveToNextRow in interface IMetadataSource
Returns:
true if there are more rows; false otherwise.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.