org.alfresco.util.schemacomp
Class ExportDb
java.lang.Object
org.alfresco.util.schemacomp.ExportDb
public class ExportDb
- extends java.lang.Object
Exports a database schema to an in-memory Schema object.
|
Constructor Summary |
ExportDb(org.springframework.context.ApplicationContext context)
|
ExportDb(javax.sql.DataSource dataSource,
org.hibernate.dialect.Dialect dialect)
Create a new instance of the tool within the context of an existing database connection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExportDb
public ExportDb(org.springframework.context.ApplicationContext context)
ExportDb
public ExportDb(javax.sql.DataSource dataSource,
org.hibernate.dialect.Dialect dialect)
- Create a new instance of the tool within the context of an existing database connection
- Parameters:
connection - the database connection to use for metadata queriesdialect - the Hibernate dialect
execute
public void execute()
generateType
protected java.lang.String generateType(java.lang.String dbTypeRaw,
int size,
int digits,
int sqlType)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
getSchema
public Schema getSchema()
- Returns:
- the schema
getNamePrefix
public java.lang.String getNamePrefix()
- Returns:
- the namePrefix
setNamePrefix
public void setNamePrefix(java.lang.String namePrefix)
- Parameters:
namePrefix - the namePrefix to set
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.