Package net.sf.basedb.core
Class Feature
java.lang.Object
net.sf.basedb.core.Feature
This is a utility class for Features.
- Version:
- 2.0
- Author:
- Enell, Nicklas
- Last modified
- $Date$
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
metaData
-
-
Constructor Details
-
Feature
public Feature()
-
-
Method Details
-
getArrayDesignBlock
public static ArrayDesignBlock getArrayDesignBlock(DbControl dc, FeatureData feature) throws PermissionDeniedException, BaseException Get the array design block from a feature.- Parameters:
dc
- TheDbControl
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 itemBaseException
- 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
- TheDbControl
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 itemBaseException
- If there is another error
-
getFeatureCoordinate
Get the coordinate of the feature.- Returns:
- A
FeatureCoordinate
object
-