org.mycore.backend.hibernate
Class MCRHIBCtrlCommands

java.lang.Object
  extended by org.mycore.frontend.cli.MCRAbstractCommands
      extended by org.mycore.backend.hibernate.MCRHIBCtrlCommands
All Implemented Interfaces:
MCRExternalCommandInterface

public class MCRHIBCtrlCommands
extends MCRAbstractCommands

This class provides a set of commands for the org.mycore.access package which can be used by the command line interface. (creates sql tables, run queries

Author:
Thomas Scheffler (yagee), Arne Seifert

Field Summary
 
Fields inherited from class org.mycore.frontend.cli.MCRAbstractCommands
command, CONFIG
 
Constructor Summary
MCRHIBCtrlCommands()
          constructor with commands.
 
Method Summary
static void createTables()
          method creates tables using hibernate
static void exportAccessMappings(String file)
           
static void exportAccessRules(String file)
           
static void exportEntity(String className, String file)
           
static void importAccessMappings(String file)
           
static void importAccessRules(String file)
           
static void importEntity(String className, String file)
           
 
Methods inherited from class org.mycore.frontend.cli.MCRAbstractCommands
getPossibleCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRHIBCtrlCommands

public MCRHIBCtrlCommands()
constructor with commands.

Method Detail

createTables

public static void createTables()
method creates tables using hibernate


exportAccessRules

public static void exportAccessRules(String file)
                              throws IOException,
                                     SAXException
Throws:
IOException
SAXException

importAccessRules

public static void importAccessRules(String file)
                              throws IOException,
                                     org.dom4j.DocumentException
Throws:
IOException
org.dom4j.DocumentException

exportAccessMappings

public static void exportAccessMappings(String file)
                                 throws IOException,
                                        SAXException
Throws:
IOException
SAXException

importAccessMappings

public static void importAccessMappings(String file)
                                 throws IOException,
                                        org.dom4j.DocumentException
Throws:
IOException
org.dom4j.DocumentException

exportEntity

public static void exportEntity(String className,
                                String file)
                         throws IOException,
                                SAXException,
                                ClassNotFoundException
Throws:
IOException
SAXException
ClassNotFoundException

importEntity

public static void importEntity(String className,
                                String file)
                         throws IOException,
                                org.dom4j.DocumentException
Throws:
IOException
org.dom4j.DocumentException