Package org.alfresco.util.schemacomp
Class ExportDb
- java.lang.Object
-
- org.alfresco.util.schemacomp.ExportDb
-
-
Constructor Summary
Constructors Constructor Description ExportDb(DataSource dataSource, Dialect dialect, DescriptorService descriptorService, DatabaseMetaDataHelper databaseMetaDataHelper)Create a new instance of the tool within the context of an existing database connectionExportDb(org.springframework.context.ApplicationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected StringgenerateType(String dbTypeRaw, int size, int digits, int sqlType)StringgetNamePrefix()SchemagetSchema()voidsetDbSchemaName(String dbSchemaName)Set the default schema namevoidsetNamePrefix(String namePrefix)
-
-
-
Constructor Detail
-
ExportDb
public ExportDb(org.springframework.context.ApplicationContext context)
-
ExportDb
public ExportDb(DataSource dataSource, Dialect dialect, DescriptorService descriptorService, DatabaseMetaDataHelper databaseMetaDataHelper)
Create a new instance of the tool within the context of an existing database connection- Parameters:
dataSource- the database connection to use for metadata queriesdialect- the Hibernate dialectdescriptorService- descriptorServicedatabaseMetaDataHelper- databaseMetaDataHelper
-
-
Method Detail
-
execute
public void execute()
-
generateType
protected String generateType(String dbTypeRaw, int size, int digits, int sqlType) throws IllegalArgumentException, IllegalAccessException
-
getSchema
public Schema getSchema()
- Returns:
- the schema
-
getNamePrefix
public String getNamePrefix()
- Returns:
- the namePrefix
-
setNamePrefix
public void setNamePrefix(String namePrefix)
- Parameters:
namePrefix- the namePrefix to set
-
setDbSchemaName
public void setDbSchemaName(String dbSchemaName)
Set the default schema name- Parameters:
dbSchemaName- the default schema name
-
-