public class StoredFunctionDefinition extends StoredProcedureDefinition
Purpose: Allow a semi-generic way of creating store function. Note that stored functions supported only on Oracle platform
arguments, argumentTypes, IN, INOUT, OUT, statements, variables
name, qualifier
Constructor and Description |
---|
StoredFunctionDefinition() |
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the create statement.
|
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the drop statement.
|
java.lang.String |
getCreationHeader() |
java.lang.String |
getDeletionHeader() |
int |
getFirstArgumentIndex() |
protected void |
printReturn(java.io.Writer writer,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Prints return for stored function
|
void |
setReturnType(java.lang.Class type)
Prints return for stored function
|
addArgument, addArgument, addArgument, addArgument, addInOutputArgument, addInOutputArgument, addOutputArgument, addOutputArgument, addOutputArgument, addOutputArgument, addStatement, addVariable, addVariable, getArguments, getArgumentTypes, getStatements, getVariables, printArgument, printInOutputArgument, printOutputArgument, setArguments, setStatements, setVariables
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, createOnDatabase, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFieldTypeDefinition, getFieldTypeDefinition, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildCreationWriter
in class StoredProcedureDefinition
ValidationException
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildDeletionWriter
in class StoredProcedureDefinition
ValidationException
public java.lang.String getCreationHeader()
getCreationHeader
in class StoredProcedureDefinition
public java.lang.String getDeletionHeader()
getDeletionHeader
in class StoredProcedureDefinition
public int getFirstArgumentIndex()
getFirstArgumentIndex
in class StoredProcedureDefinition
public void setReturnType(java.lang.Class type)
protected void printReturn(java.io.Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) throws ValidationException
printReturn
in class StoredProcedureDefinition
ValidationException