|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.ddl.gen.GeneratedDdlStmt
public class GeneratedDdlStmt
Working set for DdlGenerator. Maintains list of DDL statement lines.
Field Summary | |
---|---|
private List<String> |
ddl
|
private String |
newName
|
private boolean |
replace
|
private boolean |
topLevel
|
Constructor Summary | |
---|---|
|
GeneratedDdlStmt()
|
|
GeneratedDdlStmt(boolean replace)
|
|
GeneratedDdlStmt(String newName)
|
private |
GeneratedDdlStmt(String newName,
boolean replace)
|
Method Summary | |
---|---|
void |
addStmt(String stmt)
|
void |
clear()
|
String |
getNewName()
|
List<String> |
getStatementList()
Returns the list of generated DDL strings. |
boolean |
isReplace()
|
boolean |
isTopLevel()
Returns whether the element is a top-level element. |
void |
setTopLevel(boolean topLevel)
Indicates whether the element is a top-level element, that is, it requires its own DDL statement. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final List<String> ddl
private final boolean replace
private final String newName
private boolean topLevel
Constructor Detail |
---|
public GeneratedDdlStmt()
public GeneratedDdlStmt(boolean replace)
public GeneratedDdlStmt(String newName)
private GeneratedDdlStmt(String newName, boolean replace)
Method Detail |
---|
public void clear()
public void addStmt(String stmt)
public boolean isReplace()
public String getNewName()
public void setTopLevel(boolean topLevel)
For example, a regular index is top-level but a clustered index is not (it lives inside a CREATE TABLE statement).
The clear()
method resets the topLevel
attribute
to true
.
topLevel
- Whether element has its own DDL statementpublic boolean isTopLevel()
setTopLevel(boolean)
public List<String> getStatementList()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |