java.lang.Object
org.neo4j.ogm.config.Configuration
A generic configuration class that can be set up programmatically
or via a properties file.
- Author:
- Vince Bickers, Mark Angrish, Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forConfigurationclassstatic enumConfiguration to change the precedence from the current threads context -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]Retrieve the current set class loader precedence that is used for working with classes during the mapping process.intstatic ClassLoadergetResourceUrl(String resourceLocation) getURI()inthashCode()booleanString[]mergeBasePackagesWith(String... anotherSetOfBasePackages) static voidsetClassLoaderPrecedence(Configuration.ClassLoaderPrecedence classLoaderPrecedence) Set the class loader precedence for interacting with classes during the mapping process.
-
Method Details
-
setClassLoaderPrecedence
public static void setClassLoaderPrecedence(Configuration.ClassLoaderPrecedence classLoaderPrecedence) Set the class loader precedence for interacting with classes during the mapping process. This is necessary when running Neo4j-OGM in async environments (likeCompletableFutureusage, Spring Boot's @Async , etc.). In those cases, please usesetClassLoaderPrecedence(ClassLoaderPrecedence)withConfiguration.ClassLoaderPrecedence.OGM_CLASS_LOADER. -
getClassLoaderPrecedence
Retrieve the current set class loader precedence that is used for working with classes during the mapping process.- Returns:
- current configured
Configuration.ClassLoaderPrecedence
-
getDefaultClassLoader
- Returns:
- The classloader to be used by OGM.
-
getAutoIndex
-
getDumpDir
-
getDumpFilename
-
getURI
-
getDriverClassName
-
getConnectionPoolSize
public int getConnectionPoolSize() -
getEncryptionLevel
-
getTrustStrategy
-
getTrustCertFile
-
getConnectionLivenessCheckTimeout
-
getVerifyConnection
-
getNeo4jConfLocation
-
getDatabase
-
getDatabaseSelectionProvider
-
getUserSelectionProvider
-
isEmbeddedHA
public boolean isEmbeddedHA()- Returns:
- True if current configuration is setup to use embedded HA.
-
getResourceUrl
- Throws:
FileNotFoundException
-
getCredentials
-
getCustomProperties
-
getUseNativeTypes
-
getUseStrictQuerying
-
getBasePackages
-
mergeBasePackagesWith
-
equals
-
hashCode
public int hashCode()
-