public class ScriptExecutorImpl extends Object implements ScriptExecutor
Constructor and Description |
---|
ScriptExecutorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
executeScriptUrl(String scriptUrl) |
org.springframework.orm.hibernate3.LocalSessionFactoryBean |
getLocalSessionFactory() |
static int |
getMaxStringLength() |
void |
setDataSource(DataSource dataSource) |
void |
setDialect(org.hibernate.dialect.Dialect dialect)
Sets the previously auto-detected Hibernate dialect.
|
void |
setGlobalProperties(Properties globalProperties)
Sets the properties map from which we look up some configuration settings.
|
void |
setLocalSessionFactory(org.springframework.orm.hibernate3.LocalSessionFactoryBean localSessionFactory) |
static String |
trimStringForTextFields(String value)
Truncates or returns a string that will fit into the string columns in the schema.
|
public static final int getMaxStringLength()
public static final String trimStringForTextFields(String value)
DEFAULT_MAX_STRING_LENGTH
.value
- the string to checkgetMaxStringLength()
public void setDialect(org.hibernate.dialect.Dialect dialect)
dialect
- the dialectpublic void setLocalSessionFactory(org.springframework.orm.hibernate3.LocalSessionFactoryBean localSessionFactory)
public org.springframework.orm.hibernate3.LocalSessionFactoryBean getLocalSessionFactory()
public void setDataSource(DataSource dataSource)
public void setGlobalProperties(Properties globalProperties)
globalProperties
- the global propertiespublic void executeScriptUrl(String scriptUrl) throws Exception
executeScriptUrl
in interface ScriptExecutor
Exception
Copyright © 2005–2017 Alfresco Software. All rights reserved.