|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.datasource.database.CustomQueryGenerator
public class CustomQueryGenerator
Something that takes a DatabaseDataSource and generates XML that represents what XML a user would need to make custom queries instead of relying on the automatically generated queries.
| Constructor Summary | |
|---|---|
CustomQueryGenerator()
|
|
| Method Summary | |
|---|---|
protected void |
addBinding(StringBuffer sb,
Binding b)
|
protected void |
addRelation(StringBuffer sb,
EntityRelation relation)
|
protected void |
decreaseIndent()
Decrease the indent level |
String |
generateXML(DatabaseDataSource dbds)
|
protected void |
increaseIndent()
Increase the indent level |
protected void |
print(StringBuffer sb,
String str)
Add something to a StringBuffer, indenting if we're at the start of a line. |
protected void |
println(StringBuffer sb,
String str)
Add something to a StringBuffer with a return, indenting if we're at the start of a line. |
void |
XMLEncodeCDATA(StringBuffer result,
String s)
Encode a string as CDATA, if possible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomQueryGenerator()
| Method Detail |
|---|
public String generateXML(DatabaseDataSource dbds)
protected void addRelation(StringBuffer sb,
EntityRelation relation)
protected void addBinding(StringBuffer sb,
Binding b)
protected final void print(StringBuffer sb,
String str)
protected final void println(StringBuffer sb,
String str)
protected void increaseIndent()
protected void decreaseIndent()
public final void XMLEncodeCDATA(StringBuffer result,
String s)
throws IllegalArgumentException
result - StringBuffer to which the result
should be appended.s - String to encode.
IllegalArgumentException - if the String contains characters or
character sequences which can not be encoded
as CDATA.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||