|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.jdbc.utils.opgen.RdbStatement
public class RdbStatement
Provides XML deserialization and accessors for rdf statements (SQL, DDL, etc.) for use in composing SQLCache compatable .sql files and generating java rdf statement wrappers.
| Nested Class Summary | |
|---|---|
static class |
RdbStatement.Parameter
Class the contains an input/output/template parameter |
| Constructor Summary | |
|---|---|
RdbStatement(java.lang.String sqlPackageName,
org.w3c.dom.Element xmlElement)
Create a new RdbStatement from the given XML emement data |
|
RdbStatement(java.lang.String sqlPackageName,
java.lang.String name,
java.lang.String sql,
java.util.List<RdbStatement.Parameter> inputs,
java.util.List<RdbStatement.Parameter> outputs,
java.util.List<RdbStatement.Parameter> templateParams,
Result results)
Create a new RdbStatement |
|
| Method Summary | |
|---|---|
java.lang.String |
capitalizedName()
Capitalize the name of the statement |
static java.lang.String |
getBoxReturnType(java.lang.String val)
Return the boxed return type |
java.lang.String |
getInputParamImpl()
Get the Implementation name for this statement's parameters |
java.lang.String |
getInputParamInterface()
Get the Interface name for this statement's parameters |
java.lang.String |
getInputParams()
Get the string representing for the input parameters to this statement |
java.lang.String |
getInputParamSigniture()
Get the full string representing for the input parameters to this statement |
java.lang.String |
getInputParamsJavadoc()
Get the javadoc representing for the input parameters to this statement |
java.util.List<RdbStatement.Parameter> |
getInputs()
Get the input parameters for this statement |
java.lang.String |
getJavaType()
Get the javatype for this statement |
java.lang.String |
getJdbcType()
Get the jdbc type for this statement |
java.lang.String |
getName()
Get the name of the statement |
java.util.List<RdbStatement.Parameter> |
getOutputs()
Get the output parameters for this statement |
java.util.List<RdbStatement.Parameter> |
getParams()
Get the template parameters for this statement |
java.lang.String |
getQualifiedName()
Get the qualified name of the statement |
Result |
getResults()
Get the result object for the statement |
java.lang.String |
getResultsImpl()
Get the implementation name for this statement's results |
java.lang.String |
getResultsInterface()
Get the interface name for this statement's results |
java.lang.String |
getReturnType()
Get the return type for this statement |
java.lang.String |
getSql()
Get the SQL query text for this statement |
java.lang.String |
getTemplateParams()
Get the string representing for the template parameters to this statement |
java.lang.String |
getTemplateParamSigniture()
Get the full string representing for the template parameters to this statement |
java.lang.String |
getTemplateParamsJavadoc()
Get the javadoc representing for the template parameters to this statement |
java.lang.String |
getValueReturnType()
Get the return type for this statement |
boolean |
hasInputParams()
Return true if this statement has input parameters |
boolean |
hasInputParamType()
Determine if this statement has input parameters |
boolean |
hasReturn()
Return true if this statement expects results |
boolean |
hasTemplateParams()
Return true if this statement has template parameters |
static boolean |
isPrimitive(java.lang.String string)
Return if the provided string is a primitive value type |
static boolean |
isPrimitiveType(java.lang.String val)
Return true if value is a primitive type |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RdbStatement(java.lang.String sqlPackageName,
java.lang.String name,
java.lang.String sql,
java.util.List<RdbStatement.Parameter> inputs,
java.util.List<RdbStatement.Parameter> outputs,
java.util.List<RdbStatement.Parameter> templateParams,
Result results)
sqlPackageName - name of packagename - name of prepared statementsql - SQL query textinputs - inputs to the queryoutputs - outputs expected from the querytemplateParams - set of template parameters for the queryresults - results type for query
public RdbStatement(java.lang.String sqlPackageName,
org.w3c.dom.Element xmlElement)
sqlPackageName - package name for statementxmlElement - XML element containing data| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getQualifiedName()
public java.lang.String capitalizedName()
public static boolean isPrimitive(java.lang.String string)
string - type of value for which to determine primitive nature
public java.lang.String getSql()
public java.util.List<RdbStatement.Parameter> getInputs()
public java.util.List<RdbStatement.Parameter> getOutputs()
public java.util.List<RdbStatement.Parameter> getParams()
public java.lang.String getReturnType()
public boolean hasInputParamType()
public java.lang.String getInputParamInterface()
public java.lang.String getInputParamImpl()
public java.lang.String getResultsInterface()
public java.lang.String getResultsImpl()
public java.lang.String getInputParamSigniture()
public java.lang.String getInputParams()
public boolean hasTemplateParams()
public java.lang.String getTemplateParamSigniture()
public java.lang.String getTemplateParams()
public java.lang.String getTemplateParamsJavadoc()
public java.lang.String getInputParamsJavadoc()
public boolean hasInputParams()
public boolean hasReturn()
public static boolean isPrimitiveType(java.lang.String val)
val - value for which to determine primitive status
public static java.lang.String getBoxReturnType(java.lang.String val)
val - value to box
public java.lang.String getValueReturnType()
public java.lang.String getJavaType()
public java.lang.String getJdbcType()
public Result getResults()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||