|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.ispsoft.jaxme.generator.types.SchemaTypeImpl
de.ispsoft.jaxme.generator.types.SchemaSimpleTypeImpl
A default implementation for a simple SchemaType.
| Field Summary |
| Fields inherited from interface de.ispsoft.jaxme.generator.SchemaSimpleType |
OP_INSERT, OP_UPDATE, OP_WHERE |
| Constructor Summary | |
SchemaSimpleTypeImpl(java.lang.String pNamespaceURI,
java.lang.String pLocalName)
Creates a new instance of SchemaSimpleTypeImpl |
|
| Method Summary | |
protected java.lang.String |
castFromString(java.lang.String pParam)
Deprecated. Will be removed in JaxMe 2 |
java.lang.String |
castFromString(java.lang.String pParam,
java.lang.String pUnmarshaller)
Returns a piece of Java code converting a String into an an instance of this type. |
protected java.lang.String |
castToString(java.lang.String pParam)
Deprecated. Will be removed in JaxMe 2 |
java.lang.String |
castToString(java.lang.String pParam,
java.lang.String pMarshaller)
Returns a piece of Java code converting an instance of this type into a String. |
java.lang.String |
createPreparedStatementColumnName(SchemaAbstractSimpleElement pElement,
int pMode,
java.lang.String pColumnName)
Creates SQL code for preparing a JDBC statement. |
java.lang.String |
createPreparedStatementColumnValue(SchemaAbstractSimpleElement pElement,
int pMode)
Creates SQL code for preparing a JDBC statement. |
int |
createPrepareStatement(SchemaAbstractSimpleElement pElement,
JavaMethod pJm,
int pNum,
int pMode)
Creates Java code for preparing a JDBC statement. |
void |
createSaxEvents(SchemaAbstractSimpleElement pElement,
JavaMethod pJm,
java.lang.String pFieldName,
java.lang.String pMarshaller,
java.lang.String pIndent)
Creates Java code for firing SAX events. |
java.lang.String |
getClone(java.lang.String pValue)
Returns a piece of Java code cloning an instance of this type. |
| Methods inherited from class de.ispsoft.jaxme.generator.types.SchemaTypeImpl |
getClone, getLocalName, getNamespaceURI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.ispsoft.jaxme.generator.SchemaSimpleType |
castFromResultSet, castToPreparedStatement, getCompare, getPrimitiveRuntimeType, getQueryType, getRuntimeType, getSample, getSQLTypes, hasPrimitive |
| Methods inherited from interface de.ispsoft.jaxme.generator.SchemaType |
getClone, getLocalName, getNamespaceURI, isComplex |
| Constructor Detail |
public SchemaSimpleTypeImpl(java.lang.String pNamespaceURI,
java.lang.String pLocalName)
| Method Detail |
public java.lang.String getClone(java.lang.String pValue)
Returns a piece of Java code cloning an instance of this type.
getClone in interface SchemaSimpleType
public int createPrepareStatement(SchemaAbstractSimpleElement pElement,
JavaMethod pJm,
int pNum,
int pMode)
Creates Java code for preparing a JDBC statement.
createPrepareStatement in interface SchemaSimpleTypepElement - An atomic element whose value should be added
as a parameter to the prepared statementpJm - The Java method where to add source.pNum - The parameter number: 1, 2, ...pMode - Either of OP_INSERT, OP_UPDATE or OP_WHERE.
public void createSaxEvents(SchemaAbstractSimpleElement pElement,
JavaMethod pJm,
java.lang.String pFieldName,
java.lang.String pMarshaller,
java.lang.String pIndent)
Creates Java code for firing SAX events.
createSaxEvents in interface SchemaSimpleTypepElement - An atomic element whose value should be
converted into SAX events.pJm - The Java method where to add source.pFieldName - The field name to use for reading the valuespMarshaller - The field name of a Marshaller being used.pIndent - String of blanks for indenting the generated source
public java.lang.String createPreparedStatementColumnName(SchemaAbstractSimpleElement pElement,
int pMode,
java.lang.String pColumnName)
Creates SQL code for preparing a JDBC statement.
createPreparedStatementColumnName in interface SchemaSimpleTypepElement - An atomic element whose value should be added
as a parameter to the prepared statement.pMode - Either of OP_INSERT, OP_UPDATE or OP_WHERE.pColumnName - A suggested column name.
public java.lang.String createPreparedStatementColumnValue(SchemaAbstractSimpleElement pElement,
int pMode)
Creates SQL code for preparing a JDBC statement.
createPreparedStatementColumnValue in interface SchemaSimpleTypepElement - An atomic element whose value should be added
as a parameter to the prepared statement.pMode - Either of OP_INSERT, OP_UPDATE or OP_WHERE.
public java.lang.String castFromString(java.lang.String pParam,
java.lang.String pUnmarshaller)
SchemaSimpleTypeReturns a piece of Java code converting a String into an an instance of this type.
castFromString in interface SchemaSimpleTypepParam - The value being converted, typically a
variable name.pUnmarshaller - A value with an UnmarshallerImpl being used,
typically a variable name.
public java.lang.String castToString(java.lang.String pParam,
java.lang.String pMarshaller)
SchemaSimpleTypeReturns a piece of Java code converting an instance of this type into a String.
castToString in interface SchemaSimpleTypepParam - The value being converted, typically a
variable name.pMarshaller - A value with a MarshallerImpl being used,
typically a variable name.protected java.lang.String castFromString(java.lang.String pParam)
protected java.lang.String castToString(java.lang.String pParam)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||