Constructor and Description |
---|
ExportDb(org.springframework.context.ApplicationContext context) |
ExportDb(DataSource dataSource,
org.hibernate.dialect.Dialect dialect,
DescriptorService descriptorService,
DatabaseMetaDataHelper databaseMetaDataHelper)
Create a new instance of the tool within the context of an existing database connection
|
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected String |
generateType(String dbTypeRaw,
int size,
int digits,
int sqlType) |
String |
getNamePrefix() |
Schema |
getSchema() |
void |
setDbSchemaName(String dbSchemaName)
Set the default schema name
|
void |
setNamePrefix(String namePrefix) |
public ExportDb(org.springframework.context.ApplicationContext context)
public ExportDb(DataSource dataSource, org.hibernate.dialect.Dialect dialect, DescriptorService descriptorService, DatabaseMetaDataHelper databaseMetaDataHelper)
dataSource
- the database connection to use for metadata queriesdialect
- the Hibernate dialectdescriptorService
- descriptorServicedatabaseMetaDataHelper
- databaseMetaDataHelperpublic void execute()
protected String generateType(String dbTypeRaw, int size, int digits, int sqlType) throws IllegalArgumentException, IllegalAccessException
public Schema getSchema()
public String getNamePrefix()
public void setNamePrefix(String namePrefix)
namePrefix
- the namePrefix to setpublic void setDbSchemaName(String dbSchemaName)
dbSchemaName
- the default schema nameCopyright © 2005–2017 Alfresco Software. All rights reserved.