net.sf.basedb.core
Class Feature
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metaData
private static org.hibernate.metadata.ClassMetadata metaData
Feature
public Feature()
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