Package org.castor.ddlgen.engine.mssql
Class MssqlGenerator
- java.lang.Object
-
- org.castor.ddlgen.AbstractGenerator
-
- org.castor.ddlgen.engine.mssql.MssqlGenerator
-
- All Implemented Interfaces:
Generator
public final class MssqlGenerator extends AbstractGenerator
Generator for Microsoft SQL server.- Since:
- 1.1
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Le Duc Bao, Ralf Joachim
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENGINE_CONFIG_NAME
Filename of specific configuration for generator.static java.lang.String
ENGINE_CONFIG_PATH
Path to specific configuration for generator.static java.lang.String
NAME
Name of database engine.-
Fields inherited from interface org.castor.ddlgen.Generator
GLOBAL_CONFIG_NAME, GLOBAL_CONFIG_PATH
-
-
Constructor Summary
Constructors Constructor Description MssqlGenerator(DDLGenConfiguration configuration)
Constructor for MssqlGenerator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateHeader(DDLWriter writer)
Generate header comment.java.lang.String
getEngineConfigName()
Get engine configuration file name.java.lang.String
getEngineConfigPath()
Get engine configuration file path.java.lang.String
getEngineName()
Get engine name.void
initialize()
Initialize generator.-
Methods inherited from class org.castor.ddlgen.AbstractGenerator
createForeignKeyDDL, createIndex, createSchema, generateCreate, generateDDL, generateDrop, generateForeignKey, generateIndex, generateKeyGenerator, generatePrimaryKey, getConfiguration, getMapping, getMappingHelper, getSchema, getSchemaFactory, getTypeMapper, setKeyGenRegistry, setMapping, setMappingHelper, setSchemaFactory, setTypeMapper
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Name of database engine.- See Also:
- Constant Field Values
-
ENGINE_CONFIG_PATH
public static final java.lang.String ENGINE_CONFIG_PATH
Path to specific configuration for generator.- See Also:
- Constant Field Values
-
ENGINE_CONFIG_NAME
public static final java.lang.String ENGINE_CONFIG_NAME
Filename of specific configuration for generator.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MssqlGenerator
public MssqlGenerator(DDLGenConfiguration configuration)
Constructor for MssqlGenerator.- Parameters:
configuration
- Configuration to use by the generator.
-
-
Method Detail
-
initialize
public void initialize()
Initialize generator.
-
getEngineName
public java.lang.String getEngineName()
Get engine name.- Returns:
- Engine name
-
getEngineConfigPath
public java.lang.String getEngineConfigPath()
Get engine configuration file path.- Returns:
- Engine configuration file path
-
getEngineConfigName
public java.lang.String getEngineConfigName()
Get engine configuration file name.- Returns:
- Engine configuration file name
-
generateHeader
public void generateHeader(DDLWriter writer)
Generate header comment.- Specified by:
generateHeader
in classAbstractGenerator
- Parameters:
writer
- DDLWriter to write schema objects to.
-
-