ch.agent.crnickl.junit
Class Util

java.lang.Object
  extended by ch.agent.crnickl.junit.Util

public class Util
extends Object


Method Summary
static void deleteChronicleCollection(ch.agent.crnickl.api.Chronicle chronicle)
          Delete everything belonging to the entity, except the entity itself.
static void deleteChronicles(ch.agent.crnickl.api.Database db, String... chrons)
           
static void deleteProperties(ch.agent.crnickl.api.Database db, String... props)
           
static void deleteSchema(ch.agent.crnickl.api.Database db, String... schemas)
           
static void deleteValueTypes(ch.agent.crnickl.api.Database db, String... vts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteChronicleCollection

public static void deleteChronicleCollection(ch.agent.crnickl.api.Chronicle chronicle)
                                      throws ch.agent.core.KeyedException
Delete everything belonging to the entity, except the entity itself. This deletes all entities, series, values, and their dependent objects. The method returns an array with the number of entities and the number of series deleted. The method does not commit.

Parameters:
chronicle -
Throws:
ch.agent.core.KeyedException

deleteChronicles

public static void deleteChronicles(ch.agent.crnickl.api.Database db,
                                    String... chrons)
                             throws Exception
Throws:
Exception

deleteProperties

public static void deleteProperties(ch.agent.crnickl.api.Database db,
                                    String... props)
                             throws Exception
Throws:
Exception

deleteValueTypes

public static void deleteValueTypes(ch.agent.crnickl.api.Database db,
                                    String... vts)
                             throws Exception
Throws:
Exception

deleteSchema

public static void deleteSchema(ch.agent.crnickl.api.Database db,
                                String... schemas)
                         throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.