2.17.2: 2011-06-17

net.sf.basedb.core
Class Feature

java.lang.Object
  extended by net.sf.basedb.core.Feature

public class Feature
extends Object

This is a utility class for Features.

Version:
2.0
Author:
Enell, Nicklas
Last modified
$Date$

Field Summary
private static org.hibernate.metadata.ClassMetadata metaData
           
 
Constructor Summary
Feature()
           
 
Method Summary
static ArrayDesignBlock getArrayDesignBlock(DbControl dc, FeatureData feature)
          Get the array design block from a feature.
static FeatureCoordinate getFeatureCoordinate(FeatureData feature)
          Get the coordinate of the feature.
static Well getWell(DbControl dc, FeatureData feature)
          Get the well from a feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaData

private static org.hibernate.metadata.ClassMetadata metaData
Constructor Detail

Feature

public Feature()
Method Detail

getArrayDesignBlock

public static ArrayDesignBlock getArrayDesignBlock(DbControl dc,
                                                   FeatureData feature)
                                            throws PermissionDeniedException,
                                                   BaseException
Get the array design block from a feature.

Parameters:
dc - The DbControl which will be used for permission checking and database access.
feature - Feature to get array design block from.
Returns:
An ArrayDesignBlock object.
Throws:
PermissionDeniedException - If the logged in user doesn't have read permission to the item
BaseException - If there is another error

getWell

public static Well getWell(DbControl dc,
                           FeatureData feature)
                    throws PermissionDeniedException,
                           BaseException
Get the well from a feature.

Parameters:
dc - The DbControl which will be used for permission checking and database access.
feature - The feature to get well from.
Returns:
A Well object or null if no well is connected
Throws:
PermissionDeniedException - If the logged in user doesn't have read permission to the item
BaseException - If there is another error

getFeatureCoordinate

public static FeatureCoordinate getFeatureCoordinate(FeatureData feature)
Get the coordinate of the feature.

Parameters:
feature -
Returns:
A FeatureCoordinate object

2.17.2: 2011-06-17