com.openindex.openestate.tool
Class ImmoToolDb

java.lang.Object
  extended by com.openindex.openestate.tool.ImmoToolDb

public class ImmoToolDb
extends Object

Anbindung der XML-Datenbank.
$Id: ImmoToolDb.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
static String DB_APP_PATH
          db-constants
static String DB_COLLECTION_TEMP
           
static String DB_DEFAULT_CATALOG
           
static String DB_DEFAULT_CONF
           
static String DB_RESOURCE_LOGO
           
static String DB_RESOURCE_RSS_FEEDS
           
static String DB_RESOURCE_SEQUENCES
           
static String DB_RESOURCE_VERSIONS
           
static String DB_URI
           
static String XQUERY_CLASSPATH_OPENESTATE
          xquery-constants
static String XQUERY_CLASSPATH_UTIL
           
static String XQUERY_CLASSPATH_XMLDB
           
 
Method Summary
 void clearSchemas()
           
 void close()
           
 void configure(ImmoToolProject project)
           
 void copyCollection(String collection, String destination, String newName)
           
 void copyCollection(org.exist.xmldb.XmldbURI collection, org.exist.xmldb.XmldbURI destination, org.exist.xmldb.XmldbURI newName)
           
 org.xmldb.api.base.Collection createAppCollection()
           
 org.xmldb.api.base.Collection createCollection(String name)
           
static ImmoToolDb createInstance(File dbDir)
           
static ImmoToolDb createInstance(ImmoToolProject project)
           
 Long getCurrentSequence(String key)
           
 org.xmldb.api.base.Database getDatabase()
           
 File getDataDir()
           
 Long getNextSequence(String key)
           
 File getSchemaDir()
           
 void init(ImmoToolProject project, ImmoToolTask.Callback callback)
           
 boolean isOpen()
           
 boolean isSchemaRegistered(String namespace)
           
 Properties loadRssFeeds()
           
 Properties loadSequences()
           
 Properties loadSequences(org.xmldb.api.base.Collection col)
           
 Properties loadVersions()
           
 void moveCollection(String collection, String destination, String newName)
           
 void moveCollection(org.exist.xmldb.XmldbURI collection, org.exist.xmldb.XmldbURI destination, org.exist.xmldb.XmldbURI newName)
           
 void moveResource(String resourcePath, String destinationPath, String newName)
           
 void moveResource(org.exist.xmldb.XmldbURI resourcePath, org.exist.xmldb.XmldbURI destinationPath, org.exist.xmldb.XmldbURI newName)
           
 void open()
           
 org.xmldb.api.base.Collection openAppCollection()
           
 org.xmldb.api.base.Collection openCollection(String path)
           
 org.xmldb.api.base.Collection openRootCollection()
           
 org.xmldb.api.base.Collection openTempCollection()
           
 void registerSchema(String namespace, String path)
           
 void reindexCollection(String path)
           
 void removeCollection(String path)
           
 void shutdownCollection(org.xmldb.api.base.Collection col)
           
 void storeRssFeeds(Properties props)
           
 void storeSequences(Properties props)
           
 void storeSequences(Properties props, org.xmldb.api.base.Collection col)
           
 void storeVersions(Properties props)
           
 void writeDbCatalog()
           
 void writeDbConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DB_APP_PATH

public static final String DB_APP_PATH
db-constants

See Also:
Constant Field Values

DB_COLLECTION_TEMP

public static final String DB_COLLECTION_TEMP
See Also:
Constant Field Values

DB_DEFAULT_CATALOG

public static final String DB_DEFAULT_CATALOG
See Also:
Constant Field Values

DB_DEFAULT_CONF

public static final String DB_DEFAULT_CONF
See Also:
Constant Field Values

DB_RESOURCE_LOGO

public static final String DB_RESOURCE_LOGO
See Also:
Constant Field Values

DB_RESOURCE_RSS_FEEDS

public static final String DB_RESOURCE_RSS_FEEDS
See Also:
Constant Field Values

DB_RESOURCE_SEQUENCES

public static final String DB_RESOURCE_SEQUENCES
See Also:
Constant Field Values

DB_RESOURCE_VERSIONS

public static final String DB_RESOURCE_VERSIONS
See Also:
Constant Field Values

DB_URI

public static final String DB_URI
See Also:
Constant Field Values

XQUERY_CLASSPATH_OPENESTATE

public static final String XQUERY_CLASSPATH_OPENESTATE
xquery-constants

See Also:
Constant Field Values

XQUERY_CLASSPATH_UTIL

public static final String XQUERY_CLASSPATH_UTIL
See Also:
Constant Field Values

XQUERY_CLASSPATH_XMLDB

public static final String XQUERY_CLASSPATH_XMLDB
See Also:
Constant Field Values
Method Detail

clearSchemas

public void clearSchemas()

close

public void close()
           throws ImmoToolDbException
Throws:
ImmoToolDbException

configure

public void configure(ImmoToolProject project)
               throws ImmoToolPluginException
Throws:
ImmoToolPluginException

copyCollection

public void copyCollection(String collection,
                           String destination,
                           String newName)
                    throws ImmoToolDbException,
                           URISyntaxException
Throws:
ImmoToolDbException
URISyntaxException

copyCollection

public void copyCollection(org.exist.xmldb.XmldbURI collection,
                           org.exist.xmldb.XmldbURI destination,
                           org.exist.xmldb.XmldbURI newName)
                    throws ImmoToolDbException
Throws:
ImmoToolDbException

createAppCollection

public org.xmldb.api.base.Collection createAppCollection()
                                                  throws ImmoToolDbException
Throws:
ImmoToolDbException

createCollection

public org.xmldb.api.base.Collection createCollection(String name)
                                               throws ImmoToolDbException
Throws:
ImmoToolDbException

createInstance

public static ImmoToolDb createInstance(ImmoToolProject project)
                                 throws ImmoToolDbException
Throws:
ImmoToolDbException

createInstance

public static ImmoToolDb createInstance(File dbDir)
                                 throws ImmoToolDbException
Throws:
ImmoToolDbException

getCurrentSequence

public Long getCurrentSequence(String key)
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

getDatabase

public org.xmldb.api.base.Database getDatabase()

getDataDir

public File getDataDir()

getNextSequence

public Long getNextSequence(String key)
                     throws ImmoToolDbException
Throws:
ImmoToolDbException

getSchemaDir

public File getSchemaDir()

init

public void init(ImmoToolProject project,
                 ImmoToolTask.Callback callback)
          throws ImmoToolException
Throws:
ImmoToolException

isOpen

public boolean isOpen()

isSchemaRegistered

public boolean isSchemaRegistered(String namespace)

loadRssFeeds

public Properties loadRssFeeds()
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

loadSequences

public Properties loadSequences()
                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadSequences

public Properties loadSequences(org.xmldb.api.base.Collection col)
                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadVersions

public Properties loadVersions()
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

moveCollection

public void moveCollection(String collection,
                           String destination,
                           String newName)
                    throws ImmoToolDbException,
                           URISyntaxException
Throws:
ImmoToolDbException
URISyntaxException

moveCollection

public void moveCollection(org.exist.xmldb.XmldbURI collection,
                           org.exist.xmldb.XmldbURI destination,
                           org.exist.xmldb.XmldbURI newName)
                    throws ImmoToolDbException
Throws:
ImmoToolDbException

moveResource

public void moveResource(String resourcePath,
                         String destinationPath,
                         String newName)
                  throws ImmoToolDbException,
                         URISyntaxException
Throws:
ImmoToolDbException
URISyntaxException

moveResource

public void moveResource(org.exist.xmldb.XmldbURI resourcePath,
                         org.exist.xmldb.XmldbURI destinationPath,
                         org.exist.xmldb.XmldbURI newName)
                  throws ImmoToolDbException
Throws:
ImmoToolDbException

open

public void open()
          throws ImmoToolDbException
Throws:
ImmoToolDbException

openAppCollection

public org.xmldb.api.base.Collection openAppCollection()
                                                throws ImmoToolDbException
Throws:
ImmoToolDbException

openCollection

public org.xmldb.api.base.Collection openCollection(String path)
                                             throws ImmoToolDbException
Throws:
ImmoToolDbException

openTempCollection

public org.xmldb.api.base.Collection openTempCollection()
                                                 throws ImmoToolDbException
Throws:
ImmoToolDbException

openRootCollection

public org.xmldb.api.base.Collection openRootCollection()
                                                 throws ImmoToolDbException
Throws:
ImmoToolDbException

registerSchema

public void registerSchema(String namespace,
                           String path)

reindexCollection

public void reindexCollection(String path)
                       throws ImmoToolDbException
Throws:
ImmoToolDbException

removeCollection

public void removeCollection(String path)
                      throws ImmoToolDbException
Throws:
ImmoToolDbException

shutdownCollection

public void shutdownCollection(org.xmldb.api.base.Collection col)
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

storeRssFeeds

public void storeRssFeeds(Properties props)
                   throws ImmoToolDbException
Throws:
ImmoToolDbException

storeSequences

public void storeSequences(Properties props)
                    throws ImmoToolDbException
Throws:
ImmoToolDbException

storeSequences

public void storeSequences(Properties props,
                           org.xmldb.api.base.Collection col)
                    throws ImmoToolDbException
Throws:
ImmoToolDbException

storeVersions

public void storeVersions(Properties props)
                   throws ImmoToolDbException
Throws:
ImmoToolDbException

writeDbCatalog

public void writeDbCatalog()
                    throws ImmoToolDbException
Throws:
ImmoToolDbException

writeDbConfiguration

public void writeDbConfiguration()
                          throws ImmoToolDbException
Throws:
ImmoToolDbException


Copyright © 2012 OpenEstate. All Rights Reserved.