Package com.exedio.cope
Class ConnectProperties
- java.lang.Object
-
- com.exedio.cope.util.Properties
-
- com.exedio.cope.misc.FactoryProperties<ConnectProperties.Factory>
-
- com.exedio.cope.ConnectProperties
-
public final class ConnectProperties extends FactoryProperties<ConnectProperties.Factory>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectProperties.Factory
-
Nested classes/interfaces inherited from class com.exedio.cope.util.Properties
Properties.Field<E>, Properties.Probe, Properties.ProbeAbortedException, Properties.PropertiesField<T extends Properties>, Properties.Source
-
-
Field Summary
-
Fields inherited from class com.exedio.cope.misc.FactoryProperties
factory
-
Fields inherited from class com.exedio.cope.util.Properties
EMPTY_SOURCE, SYSTEM_PROPERTY_SOURCE
-
-
Constructor Summary
Constructors Constructor Description ConnectProperties()
Deprecated.UseConnectProperties
(getDefaultPropertyFile()
) instead.ConnectProperties(Properties.Source context)
Deprecated.UseConnectProperties
(getDefaultPropertyFile()
, context) instead.ConnectProperties(Properties.Source source, Properties.Source context)
Deprecated.Usecreate(Properties.Source)
instead ascontext
is no longer supported.ConnectProperties(File file)
ConnectProperties(File file, Properties.Source context)
Deprecated.UseConnectProperties(File)
instead ascontext
is no longer supported.ConnectProperties(Properties properties, String sourceDescription, Properties.Source context)
Deprecated.Usecreate(Properties.Source)
instead ascontext
is no longer supported.
-
Method Summary
-
Methods inherited from class com.exedio.cope.util.Properties
ensureEquality, ensureValidity, field, field, field, field, field, fieldFile, getContext, getContext, getContext, getField, getFields, getOrphanedKeys, getProbes, getSource, getSource, getSource, getSourceObject, getSystemPropertyContext, getSystemPropertySource, getTests, loadProperties, newException, newException, newProbeAbortedException, valnp, value, value, value, value, value, value, value, value, value, value, value, value, valueFile, valueHidden, valueMessageDigest, valuePath, valueService, valueService, valueService
-
-
-
-
Constructor Detail
-
ConnectProperties
public ConnectProperties(File file)
-
ConnectProperties
@Deprecated public ConnectProperties(File file, Properties.Source context)
Deprecated.UseConnectProperties(File)
instead ascontext
is no longer supported.
-
ConnectProperties
@Deprecated public ConnectProperties(Properties properties, String sourceDescription, Properties.Source context)
Deprecated.Usecreate(Properties.Source)
instead ascontext
is no longer supported.
-
ConnectProperties
@Deprecated public ConnectProperties(Properties.Source source, Properties.Source context)
Deprecated.Usecreate(Properties.Source)
instead ascontext
is no longer supported.
-
ConnectProperties
@Deprecated public ConnectProperties()
Deprecated.UseConnectProperties
(getDefaultPropertyFile()
) instead.
-
ConnectProperties
@Deprecated public ConnectProperties(Properties.Source context)
Deprecated.UseConnectProperties
(getDefaultPropertyFile()
, context) instead.
-
-
Method Detail
-
isSupportDisabledForEmptyStrings
public boolean isSupportDisabledForEmptyStrings()
-
isSupportDisabledForPreparedStatements
public boolean isSupportDisabledForPreparedStatements()
-
isSupportDisabledForNativeDate
public boolean isSupportDisabledForNativeDate()
-
isSupportDisabledForSemicolon
public boolean isSupportDisabledForSemicolon()
-
getFulltextIndex
public boolean getFulltextIndex()
-
getConnectionPoolIdleInitial
public int getConnectionPoolIdleInitial()
-
getConnectionPoolIdleLimit
public int getConnectionPoolIdleLimit()
-
getQuerySearchSizeLimit
public int getQuerySearchSizeLimit()
-
getItemCacheLimit
public int getItemCacheLimit()
-
getQueryCacheLimit
public int getQueryCacheLimit()
-
getQueryCacheSizeLimit
public int getQueryCacheSizeLimit()
-
getVaultProperties
public VaultProperties getVaultProperties()
-
getVaultPropertiesStrict
@Nonnull public VaultProperties getVaultPropertiesStrict()
-
getVaultAlgorithm
public String getVaultAlgorithm()
-
getMediaRootUrl
public String getMediaRootUrl()
-
getMediaOffsetExpires
@Deprecated public int getMediaOffsetExpires()
Deprecated.UsegetMediaMaxAge()
insteadReturns the offset, the Expires http header of media is set into the future. Together with a http reverse proxy this ensures, that for that time no request for that data will reach the servlet. This may reduce the load on the server. If zero, no Expires header is sent.
-
getMediaMaxAge
public int getMediaMaxAge()
-
getMediaServletMaximumAge
public Duration getMediaServletMaximumAge()
Returns a duration suitable forMediaServlet.getMaximumAge(com.exedio.cope.pattern.MediaPath, Item)
.
-
mediaFingerprintOffset
public MediaFingerprintOffset mediaFingerprintOffset()
-
getMediaUrlSecret
public String getMediaUrlSecret()
-
factory
public static ConnectProperties.Factory factory()
-
getDefaultPropertyFile
public static File getDefaultPropertyFile()
-
create
public static ConnectProperties create(Properties.Source source)
-
getDialectUrlMappers
public static Iterable<?> getDialectUrlMappers()
-
getDialect
public String getDialect()
-
getConnectionUrl
public String getConnectionUrl()
-
getConnectionUsername
public String getConnectionUsername()
-
getConnectionPassword
public String getConnectionPassword()
-
getProbeTest
@Deprecated public Callable<?> getProbeTest()
Deprecated.Calling this method within methods overridingProperties.getTests()
is no longer needed, as classConnectProperties
providesprobes
anyway.
-
probe
@Deprecated public String probe()
-
getConnectionUser
@Deprecated public String getConnectionUser()
Deprecated.UsegetConnectionUsername()
instead
-
isLoggingEnabled
@Deprecated public boolean isLoggingEnabled()
Deprecated.Replaced by org.slf4j. Always returns true.
-
getDatabase
@Deprecated public String getDatabase()
Deprecated.Has been renamed togetDialect()
.
-
getCacheLimit
@Deprecated public int getCacheLimit()
Deprecated.renamed togetItemCacheLimit()
.
-
getCacheQueryLimit
@Deprecated public int getCacheQueryLimit()
Deprecated.renamed togetQueryCacheLimit()
.
-
getTransactionLog
@Deprecated public boolean getTransactionLog()
Deprecated.Not supported anymore. This method always returns false.
-
getOracleVarchar
@Deprecated public boolean getOracleVarchar()
Deprecated.Not supported anymore. This method always returns true.
-
getDatabaseDontSupportLimit
@Deprecated public boolean getDatabaseDontSupportLimit()
Deprecated.Not supported anymore. This method always returns false.
-
getDatabaseUrl
@Deprecated public String getDatabaseUrl()
Deprecated.UsegetConnectionUrl()
instead
-
getDatabaseUser
@Deprecated public String getDatabaseUser()
Deprecated.UsegetConnectionUsername()
instead
-
getDatabasePassword
@Deprecated public String getDatabasePassword()
Deprecated.UsegetConnectionPassword()
instead
-
getDatabaseDontSupportPreparedStatements
@Deprecated public boolean getDatabaseDontSupportPreparedStatements()
Deprecated.UseisSupportDisabledForPreparedStatements()
instead
-
getDatabaseDontSupportEmptyStrings
@Deprecated public boolean getDatabaseDontSupportEmptyStrings()
Deprecated.UseisSupportDisabledForEmptyStrings()
instead
-
getDatabaseDontSupportNativeDate
@Deprecated public boolean getDatabaseDontSupportNativeDate()
Deprecated.UseisSupportDisabledForNativeDate()
instead
-
isSupportDisabledForNotNull
@Deprecated public boolean isSupportDisabledForNotNull()
Deprecated.not supported anymore. This methods always returnsfalse
.
-
-