org.mycore.backend.hibernate
Class MCRHIBCtrlCommands
java.lang.Object
org.mycore.frontend.cli.MCRAbstractCommands
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCRHIBCtrlCommands
public MCRHIBCtrlCommands()
- constructor with commands.
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