public class SqlDdl extends Object implements SingleTarget, MessageSource
Constructor and Description |
---|
SqlDdl() |
Modifier and Type | Method and Description |
---|---|
String |
getTargetName() |
void |
initialise(PackageInfo pi,
Model m,
Options o,
ShapeChangeResult r,
boolean diagOnly)
Allows a target to perform the necessary initialization routines before
processing.
|
static boolean |
isEncoded(Info i) |
String |
message(int mnr)
Return a message for a message number.
|
void |
process(ClassInfo ci)
The converter will call this method for each class belonging to the
package given during initialization (see
Target.initialise(de.interactive_instruments.ShapeChange.Model.PackageInfo, de.interactive_instruments.ShapeChange.Model.Model, de.interactive_instruments.ShapeChange.Options, de.interactive_instruments.ShapeChange.ShapeChangeResult, boolean) ). |
void |
reset()
All relevant fields of the target will be reset, so that it is ready for
processing selected schemas based upon a specific target configuration.
|
void |
write() |
void |
writeAll(ShapeChangeResult r)
Instructs the target to output the processing results.
|
public static final String PLATFORM
protected static Model model
protected static List<DescriptorForCodeList> descriptorsForCodelist
protected static String codeNameColumnName
protected static String codeNameColumnDocumentation
protected static int codeNameSize
protected static boolean diagnosticsOnly
protected static int numberOfEncodedSchemas
protected static String documentationTemplate
protected static String documentationNoValue
protected static SortedSet<String> categoriesForSeparatingCodeInsertStatements
protected static String codeStatusCLType
protected static int codeStatusCLLength
protected static String idColumnName
protected static String oneToManyReferenceColumnName
protected static String foreignKeyColumnSuffix
protected static String foreignKeyColumnSuffixDatatype
protected static String foreignKeyColumnSuffixCodelist
protected static ColumnDataType foreignKeyColumnDataType
protected static String primaryKeySpec
protected static String primaryKeySpecCodelist
protected static boolean separateSpatialIndexStatements
protected static String nameCodeStatusCLColumn
protected static String codeStatusCLColumnDocumentation
protected static String nameCodeStatusNotesColumn
protected static String codeStatusNotesColumnDocumentation
protected static int defaultSize
protected static int srid
protected static boolean createReferences
protected static boolean createDocumentation
protected static boolean createExplicitComments
protected static boolean createAssociativeTables
protected static boolean removeEmptyLinesInDdlOutput
protected static MapEntryParamInfos mapEntryParamInfos
protected static DatabaseStrategy databaseStrategy
protected static SqlNamingScheme namingScheme
protected static SdoDimArrayExpression sdoDimArrayExpression
protected static boolean createRepSchema
protected static String repSchemaDocumentationUnlimitedLengthCharacterDataType
protected static String repSchemaTargetNamespace
protected static String repSchemaTargetNamespaceSuffix
protected static String repSchemaTargetVersion
protected static String repSchemaTargetXmlns
protected static String repSchemaObjectIdentifierFieldType
protected static String repSchemaForeignKeyFieldType
protected static Multiplicity repSchemaMultiplicity1
protected static boolean createDatabaseModel
protected ShapeChangeResult result
protected Options options
public void initialise(PackageInfo pi, Model m, Options o, ShapeChangeResult r, boolean diagOnly) throws ShapeChangeAbortException
Target
Will be called by the Converter
for each selected schema (see
Model.selectedSchemas()
and PackageInfo.isSchema()
).
initialise
in interface Target
pi
- a schema from the model selected via the configuration (see
Model.selectedSchemas()
) - not necessarily always an
application schemaShapeChangeAbortException
Model.selectedSchemas()
,
PackageInfo.isSchema()
public void process(ClassInfo ci)
Target
Target.initialise(de.interactive_instruments.ShapeChange.Model.PackageInfo, de.interactive_instruments.ShapeChange.Model.Model, de.interactive_instruments.ShapeChange.Options, de.interactive_instruments.ShapeChange.ShapeChangeResult, boolean)
).
NOTE: will be called not only for the classes directly contained in the package, but also all sub-packages belonging to the same targetNamespace!
public String getTargetName()
getTargetName
in interface Target
public static boolean isEncoded(Info i)
public void writeAll(ShapeChangeResult r)
SingleTarget
Will be called by the Converter
after initialization and
processing for all of the selected schema has been performed.
writeAll
in interface SingleTarget
Model.selectedSchemas()
public void reset()
SingleTarget
The Converter
will reset SingleTargets whenever it processes a
target configuration.
reset
in interface SingleTarget
public String message(int mnr)
MessageSource
message
in interface MessageSource
MessageSource.message(int)
Copyright © 2018. All rights reserved.