|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectch.agent.crnickl.impl.DatabaseMethodsImpl
ch.agent.crnickl.jdbc.JDBCDatabaseMethods
ch.agent.crnickl.jdbc.WriteMethodsForValueType
public class WriteMethodsForValueType
A stateless object with methods providing write access to value types.
| Constructor Summary | |
|---|---|
WriteMethodsForValueType()
|
|
| Method Summary | ||
|---|---|---|
void |
createValueType(ch.agent.crnickl.api.ValueType<?> vt)
Create a value type in the database. |
|
void |
deleteValueType(ch.agent.crnickl.api.ValueType<?> vt)
Delete a value type from the database. |
|
void |
updateValueType(ch.agent.crnickl.api.ValueType<?> vt)
Update a value type in the database. |
|
|
updateValueType(ch.agent.crnickl.api.ValueType<T> vt,
Map<T,String> added,
Map<T,String> edited,
Set<T> deleted)
Add new values to the value type or update the description of existing values. |
|
| Methods inherited from class ch.agent.crnickl.jdbc.JDBCDatabaseMethods |
|---|
close, executeAndGetNewId, open, open, open |
| 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 |
| Constructor Detail |
|---|
public WriteMethodsForValueType()
| Method Detail |
|---|
public void createValueType(ch.agent.crnickl.api.ValueType<?> vt)
throws ch.agent.crnickl.T2DBException
vt - a value type
ch.agent.crnickl.T2DBException
public void deleteValueType(ch.agent.crnickl.api.ValueType<?> vt)
throws ch.agent.crnickl.T2DBException
vt - a value type
ch.agent.crnickl.T2DBException
public void updateValueType(ch.agent.crnickl.api.ValueType<?> vt)
throws ch.agent.crnickl.T2DBException
vt - a value type
ch.agent.crnickl.T2DBException
public <T> void updateValueType(ch.agent.crnickl.api.ValueType<T> vt,
Map<T,String> added,
Map<T,String> edited,
Set<T> deleted)
throws ch.agent.crnickl.T2DBException
vt - a value typeadded - a map of values to add and their descriptionsedited - a map of values to modify and their descriptionsdeleted - a set of values to delete
ch.agent.crnickl.T2DBException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||