Class MarkLogicClientFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<com.marklogic.client.DatabaseClient>, org.springframework.beans.factory.InitializingBean, org.springframework.dao.support.PersistenceExceptionTranslator

    public class MarkLogicClientFactoryBean
    extends org.springframework.beans.factory.config.AbstractFactoryBean<com.marklogic.client.DatabaseClient>
    implements org.springframework.dao.support.PersistenceExceptionTranslator
    • Constructor Detail

      • MarkLogicClientFactoryBean

        public MarkLogicClientFactoryBean()
    • Method Detail

      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<com.marklogic.client.DatabaseClient>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<com.marklogic.client.DatabaseClient>
      • createInstance

        protected com.marklogic.client.DatabaseClient createInstance()
                                                              throws Exception
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<com.marklogic.client.DatabaseClient>
        Throws:
        Exception
      • translateExceptionIfPossible

        public org.springframework.dao.DataAccessException translateExceptionIfPossible​(RuntimeException e)
        Specified by:
        translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslator
      • setHost

        public void setHost​(String host)
      • setPort

        public void setPort​(int port)
      • setDatabase

        public void setDatabase​(String database)
      • setSecurityContext

        public void setSecurityContext​(com.marklogic.client.DatabaseClientFactory.SecurityContext securityContext)