ch.agent.crnickl.jdbc
Class WriteMethodsForValueType
java.lang.Object
ch.agent.crnickl.impl.DatabaseMethodsImpl
ch.agent.crnickl.jdbc.JDBCDatabaseMethods
ch.agent.crnickl.jdbc.WriteMethodsForValueType
- All Implemented Interfaces:
- ch.agent.crnickl.impl.DatabaseMethods, ch.agent.crnickl.impl.PermissionChecker
public class WriteMethodsForValueType
- extends JDBCDatabaseMethods
A stateless object with methods providing write access to value types.
- Author:
- Jean-Paul Vetterli
|
Method Summary |
|
createValueType(ch.agent.crnickl.api.ValueType<T> vt)
Create a value type in the database. |
|
deleteValueType(ch.agent.crnickl.api.ValueType<T> vt,
ch.agent.crnickl.impl.SchemaUpdatePolicy policy)
Delete a value type from the database. |
|
updateValueType(ch.agent.crnickl.api.ValueType<T> vt,
ch.agent.crnickl.impl.SchemaUpdatePolicy policy)
Update a value type in the database. |
| Methods inherited from class ch.agent.crnickl.impl.DatabaseMethodsImpl |
check, check, check, check, checkIntegrity, makeSurrogate, makeSurrogate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriteMethodsForValueType
public WriteMethodsForValueType()
createValueType
public <T> void createValueType(ch.agent.crnickl.api.ValueType<T> vt)
throws ch.agent.crnickl.T2DBException
- Create a value type in the database.
Throw an exception if the operation cannot be done.
- Parameters:
vt - a value type
- Throws:
ch.agent.crnickl.T2DBException
deleteValueType
public <T> void deleteValueType(ch.agent.crnickl.api.ValueType<T> vt,
ch.agent.crnickl.impl.SchemaUpdatePolicy policy)
throws ch.agent.crnickl.T2DBException
- Delete a value type from the database.
Throw an exception if the operation cannot be done.
- Parameters:
vt - a value typepolicy - a schema udpdating policy
- Throws:
ch.agent.crnickl.T2DBException
updateValueType
public <T> void updateValueType(ch.agent.crnickl.api.ValueType<T> vt,
ch.agent.crnickl.impl.SchemaUpdatePolicy policy)
throws ch.agent.crnickl.T2DBException
- Update a value type in the database.
Throw an exception if the operation cannot be done.
- Parameters:
vt - a value typepolicy - a schema udpdating policy
- Throws:
ch.agent.crnickl.T2DBException
Copyright © 2013. All Rights Reserved.