Class ScriptExecutorImpl
java.lang.Object
org.alfresco.repo.domain.schema.script.ScriptExecutorImpl
- All Implemented Interfaces:
ScriptExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteScriptUrl(String scriptUrl) static final intvoidsetDataSource(DataSource dataSource) voidsetDialect(Dialect dialect) Sets the previously auto-detected Hibernate dialect.voidsetGlobalProperties(Properties globalProperties) Sets the properties map from which we look up some configuration settings.static final StringtrimStringForTextFields(String value) Truncates or returns a string that will fit into the string columns in the schema.
-
Constructor Details
-
ScriptExecutorImpl
public ScriptExecutorImpl()
-
-
Method Details
-
getMaxStringLength
public static final int getMaxStringLength()- Returns:
- Returns the maximum number of characters that a string field can be
-
trimStringForTextFields
Truncates or returns a string that will fit into the string columns in the schema. Text fields can either cope with arbitrarily long text fields or have the default limit,DEFAULT_MAX_STRING_LENGTH.- Parameters:
value- the string to check- Returns:
- Returns a string that is short enough for
getMaxStringLength() - Since:
- 3.2
-
setDialect
Sets the previously auto-detected Hibernate dialect.- Parameters:
dialect- the dialect
-
setDataSource
-
setGlobalProperties
Sets the properties map from which we look up some configuration settings.- Parameters:
globalProperties- the global properties
-
executeScriptUrl
- Specified by:
executeScriptUrlin interfaceScriptExecutor- Throws:
Exception
-