Package | Description |
---|---|
org.castor.ddlgen |
This package contains functional classes, exceptions and Main class for
DDL generator.
|
org.castor.ddlgen.engine.db2 |
This package contains final classes to create DDL for DB2.
|
org.castor.ddlgen.engine.derby |
This package contains final classes to create DDL for Derby.
|
org.castor.ddlgen.engine.hsql |
This package contains final classes to create DDL for Hsql.
|
org.castor.ddlgen.engine.mssql |
This package contains final classes to create DDL for Microsoft SQL Server.
|
org.castor.ddlgen.engine.mysql |
This package contains final classes to create DDL for MySQL.
|
org.castor.ddlgen.engine.pointbase |
This package contains final classes to create DDL for PointBase.
|
org.castor.ddlgen.engine.postgresql |
This package contains final classes to create DDL for PostgreSQL.
|
org.castor.ddlgen.engine.sybase |
This package contains final classes to create DDL for Sybase.
|
org.castor.ddlgen.keygenerator |
This package contains various various key generator implementations as well as
factory classes for all of the key generators.
|
org.castor.ddlgen.schemaobject |
This package contains SchemaObject's for ddl generation including Table, Field,
KeyGenerator, Index, Schema,ForeignKey and PrimaryKey.
|
org.castor.ddlgen.typeinfo |
This package contains various type definitions which implement the TypeInfo
interface.
|
Modifier and Type | Class and Description |
---|---|
class |
KeyNotFoundException
Configuration Key does not find exception.
|
class |
TypeNotFoundException
Type not found exception.
|
class |
WrongFormatException
Wrong format exception.
|
Modifier and Type | Method and Description |
---|---|
void |
Configuration.addProperties(String filename)
add properties (key, value) for configuration, the existed item will
be overwrited.
|
static Generator |
GeneratorFactory.createDDLGenerator(String engine,
String globalConf,
String specificConf)
Create DDL Generator for specified database engine with given global and specific
configurations.
|
protected void |
AbstractGenerator.createForeignKeyDDL(Table table,
DDLWriter writer)
Generate DDL for foreign key.
|
void |
AbstractGenerator.createIndex(Table table,
DDLWriter writer)
Generate DDL for indices of given table.
|
KeyGenerator |
KeyGeneratorFactory.createKeyGenerator()
Create a default key generator instance with the algorithm the factory is
responsible for.
|
KeyGenerator |
KeyGeneratorFactory.createKeyGenerator(KeyGeneratorDef definition)
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
KeyGenerator |
KeyGeneratorRegistry.createKeyGenerator(KeyGeneratorDef definition)
Create an instance of the key generator specifed by given definiton.
|
void |
AbstractGenerator.createSchema()
Extracting informations from mapping to schema, this is done by 3 steps.
|
void |
AbstractGenerator.generateCreate(DDLWriter writer)
Generate DDL for create statementof table.
|
void |
Generator.generateDDL(OutputStream output)
Generate DDL for a mapping document.
|
void |
AbstractGenerator.generateDDL(OutputStream output)
Generate DDL for a mapping document.
|
void |
AbstractGenerator.generateDrop(DDLWriter writer)
Generate DDL for drop statement of table.
|
void |
AbstractGenerator.generateForeignKey(DDLWriter writer)
Generate DDL for foreign keys.
|
void |
AbstractGenerator.generateIndex(DDLWriter writer)
Generate DDL for indices.
|
void |
AbstractGenerator.generateKeyGenerator(DDLWriter writer)
Generate DDL for key generators (sequence/trigger).
|
void |
AbstractGenerator.generatePrimaryKey(DDLWriter writer)
Generate DDL for primany keys.
|
Generator |
GeneratorRegistry.getGenerator(String engine)
Returns generator with given engine name or null if there is no such generator.
|
KeyGenerator |
KeyGeneratorRegistry.getKeyGenerator(String alias)
Returns key generator with given alias.
|
KeyGeneratorFactory |
KeyGeneratorRegistry.getKeyGeneratorFactory(String algorithm)
Returns key generator factory with given algorithm.
|
String[] |
MappingHelper.resolveTypeReferenceForIds(ClassMapping cm)
Collect sql type of all identities for a ClassMapping.
|
String[] |
MappingHelper.resolveTypeReferenceForIds(String className)
Collect sql type of all identities for class with given name.
|
Modifier and Type | Method and Description |
---|---|
void |
Db2Field.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
void |
DerbyField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
void |
HsqlTable.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
void |
HsqlField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
void |
MssqlField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
void |
MysqlField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
void |
MysqlTable.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
void |
PointBaseField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
String |
PostgresqlField.toCreateDDL() |
void |
PostgresqlField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
void |
SybaseField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
KeyGenerator |
HighLowKeyGeneratorFactory.createKeyGenerator()
Create a default key generator instance with the algorithm the factory is
responsible for.
|
KeyGenerator |
SequenceKeyGeneratorFactory.createKeyGenerator()
Create a default key generator instance with the algorithm the factory is
responsible for.
|
KeyGenerator |
UUIDKeyGeneratorFactory.createKeyGenerator(KeyGeneratorDef definition)
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
KeyGenerator |
HighLowKeyGeneratorFactory.createKeyGenerator(KeyGeneratorDef definition)
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
KeyGenerator |
SequenceKeyGeneratorFactory.createKeyGenerator(KeyGeneratorDef definition)
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
KeyGenerator |
IdentityKeyGeneratorFactory.createKeyGenerator(KeyGeneratorDef definition)
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
KeyGenerator |
MaxKeyGeneratorFactory.createKeyGenerator(KeyGeneratorDef definition)
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
Constructor and Description |
---|
HighLowKeyGenerator(KeyGeneratorDef definition)
Constructor for HIGH-LOW key generator specified by given defintion.
|
SequenceKeyGenerator(SequenceKeyGeneratorFactory factory,
KeyGeneratorDef definition)
Constructor for SEQUENCE key generator specified by given defintion.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Table.fields(DDLWriter writer)
Concatenate all fields names delimited by line separator.
|
void |
Field.merge(Field field)
Check if given field can be merged with this one.
|
void |
ForeignKey.merge(ForeignKey fk)
Check if given foreign key can be merged with this one.
|
void |
Table.merge(Table table)
Check if given table can be merged with this one.
|
void |
SchemaObject.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
void |
DefaultField.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
void |
DefaultTable.toCreateDDL(DDLWriter writer)
Build create script for the schema object.
|
void |
SchemaObject.toDropDDL(DDLWriter writer)
Build drop script for the schema object.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeInfo.merge(TypeInfo type)
Merge 2 TypeInfo's.
|
void |
AbstractType.merge(TypeInfo type)
Merge 2 TypeInfo's.
|
String |
OptionalPrecisionDecimalsType.toDDL(Field field)
Build DDL string with SQL type and parameters.
|
String |
LobType.toDDL(Field field)
Build DDL string with SQL type and parameters.
|
String |
NotSupportedType.toDDL(Field field)
Build DDL string with SQL type and parameters.
|
String |
RequiredLengthType.toDDL(Field field)
Build DDL string with SQL type and parameters.
|
String |
TypeInfo.toDDL(Field field)
Build DDL string with SQL type and parameters.
|
String |
RequiredPrecisionType.toDDL(Field field)
Build DDL string with SQL type and parameters.
|
Copyright © 2016. All rights reserved.