public class DdlGenContext extends Object
| Constructor and Description |
|---|
DdlGenContext(DatabasePlatform dbPlatform,
NamingConvention namingConvention) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCreateIntersectionTable(String createTableDdl) |
void |
addIntersectionCreateTables() |
void |
addIntersectionFkeys() |
void |
addIntersectionTableFk(String intTableFk) |
DdlGenContext |
flush()
Flush the content to the buffer.
|
String |
getColumnDefn(BeanProperty p) |
String |
getContent()
Return the generated content (DDL script).
|
DatabasePlatform |
getDbPlatform()
Return the dbPlatform.
|
DbTypeMap |
getDbTypeMap()
Return the map used to determine the DB specific type
for a given bean property.
|
DbDdlSyntax |
getDdlSyntax()
Return object to handle DB specific DDL syntax.
|
NamingConvention |
getNamingConvention() |
int |
incrementFkCount() |
int |
incrementIxCount() |
boolean |
isProcessIntersectionTable(String tableName) |
String |
pad(String content,
int minWidth) |
DdlGenContext |
removeLast()
Remove the last content that was written.
|
String |
removeQuotes(String dbColumn)
Strips off the Database Platform specific quoted identifier characters.
|
DdlGenContext |
write(String content)
Write content to the buffer.
|
DdlGenContext |
write(String content,
int minWidth)
Write content to the buffer.
|
DdlGenContext |
writeNewLine() |
public DdlGenContext(DatabasePlatform dbPlatform, NamingConvention namingConvention)
public DatabasePlatform getDbPlatform()
public boolean isProcessIntersectionTable(String tableName)
public void addCreateIntersectionTable(String createTableDdl)
public void addIntersectionTableFk(String intTableFk)
public void addIntersectionCreateTables()
public void addIntersectionFkeys()
public String getContent()
public DbTypeMap getDbTypeMap()
public DbDdlSyntax getDdlSyntax()
public String getColumnDefn(BeanProperty p)
public DdlGenContext write(String content, int minWidth)
public DdlGenContext write(String content)
public DdlGenContext writeNewLine()
public DdlGenContext removeLast()
public DdlGenContext flush()
public NamingConvention getNamingConvention()
public int incrementFkCount()
public int incrementIxCount()
Copyright © 2014. All Rights Reserved.