ch.agent.crnickl.jdbc
Class WriteMethodsForProperty

java.lang.Object
  extended by ch.agent.crnickl.impl.DatabaseMethodsImpl
      extended by ch.agent.crnickl.jdbc.JDBCDatabaseMethods
          extended by ch.agent.crnickl.jdbc.ReadMethodsForProperty
              extended by ch.agent.crnickl.jdbc.WriteMethodsForProperty
All Implemented Interfaces:
ch.agent.crnickl.impl.DatabaseMethods, ch.agent.crnickl.impl.PermissionChecker

public class WriteMethodsForProperty
extends ReadMethodsForProperty

A stateless object with methods providing write access to properties.

Version:
1.0.0
Author:
Jean-Paul Vetterli

Constructor Summary
WriteMethodsForProperty()
           
 
Method Summary
 void createProperty(ch.agent.crnickl.api.Property<?> property)
          Create a new property and return its key.
 void deleteProperty(ch.agent.crnickl.api.Property<?> property)
          Delete the property.
 void updateProperty(ch.agent.crnickl.api.Property<?> property)
          Update the name of the value type.
 
Methods inherited from class ch.agent.crnickl.jdbc.ReadMethodsForProperty
getProperties, getProperty, getProperty
 
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

WriteMethodsForProperty

public WriteMethodsForProperty()
Method Detail

createProperty

public void createProperty(ch.agent.crnickl.api.Property<?> property)
                    throws ch.agent.crnickl.T2DBException
Create a new property and return its key. If creation fails throw an exception.

Parameters:
property - a property
Throws:
ch.agent.crnickl.T2DBException

deleteProperty

public void deleteProperty(ch.agent.crnickl.api.Property<?> property)
                    throws ch.agent.crnickl.T2DBException
Delete the property. If deleting fails throw an exception.

Parameters:
property - a property
Throws:
ch.agent.crnickl.T2DBException

updateProperty

public void updateProperty(ch.agent.crnickl.api.Property<?> property)
                    throws ch.agent.crnickl.T2DBException
Update the name of the value type. If updating fails throw an exception.

Parameters:
property - a property
Throws:
ch.agent.crnickl.T2DBException


Copyright © 2012. All Rights Reserved.