ch.agent.crnickl.jdbc
Class ReadMethodsForValueType
java.lang.Object
ch.agent.crnickl.impl.DatabaseMethodsImpl
ch.agent.crnickl.jdbc.JDBCDatabaseMethods
ch.agent.crnickl.jdbc.ReadMethodsForValueType
- All Implemented Interfaces:
- ch.agent.crnickl.impl.DatabaseMethods, ch.agent.crnickl.impl.PermissionChecker
public class ReadMethodsForValueType
- extends JDBCDatabaseMethods
A stateless object with methods providing read access to value types.
- Version:
- 1.0.0
- Author:
- Jean-Paul Vetterli
|
Method Summary |
<T> ch.agent.crnickl.api.ValueType<T> |
|
getValueType(ch.agent.crnickl.api.Database database,
String name)
Find a value type with a given name. |
<T> ch.agent.crnickl.api.ValueType<T> |
|
getValueType(ch.agent.crnickl.api.Surrogate surrogate)
Find a value type corresponding to a surrogate. |
Collection<ch.agent.crnickl.api.ValueType<?>> |
getValueTypes(ch.agent.crnickl.api.Database database,
String pattern)
Find a collection of value types with names matching a pattern. |
| Methods inherited from class ch.agent.crnickl.impl.DatabaseMethodsImpl |
check, check, check, check, getId, getId, getIdOrZero, makeSurrogate, makeSurrogate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadMethodsForValueType
public ReadMethodsForValueType()
getValueType
public <T> ch.agent.crnickl.api.ValueType<T> getValueType(ch.agent.crnickl.api.Database database,
String name)
throws ch.agent.crnickl.T2DBException
- Find a value type with a given name.
- Parameters:
database - a databasename - a string
- Returns:
- a value type or null
- Throws:
ch.agent.crnickl.T2DBException
getValueTypes
public Collection<ch.agent.crnickl.api.ValueType<?>> getValueTypes(ch.agent.crnickl.api.Database database,
String pattern)
throws ch.agent.crnickl.T2DBException
- Find a collection of value types with names matching a pattern.
- Parameters:
database - a databasepattern - a simple pattern where "*" stands for zero or more characters
- Returns:
- a collection of value types, possibly empty, never null
- Throws:
ch.agent.crnickl.T2DBException
getValueType
public <T> ch.agent.crnickl.api.ValueType<T> getValueType(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
- Find a value type corresponding to a surrogate.
- Parameters:
surrogate - a surrogate
- Returns:
- a value type or null
- Throws:
ch.agent.crnickl.T2DBException
Copyright © 2012. All Rights Reserved.