Class StoredFunctionDefinition
java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.StoredProcedureDefinition
org.eclipse.persistence.tools.schemaframework.StoredFunctionDefinition
- All Implemented Interfaces:
Serializable
,Cloneable
Purpose: Allow a semi-generic way of creating store function. Note that stored functions supported only on Oracle platform
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.schemaframework.StoredProcedureDefinition
arguments, argumentTypes, IN, INOUT, OUT, statements, variables
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildCreationWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the create statement.buildDeletionWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the drop statement.int
protected void
printReturn
(Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) Prints return for stored functionvoid
setReturnType
(Class type) Prints return for stored functionMethods inherited from class org.eclipse.persistence.tools.schemaframework.StoredProcedureDefinition
addArgument, addArgument, addArgument, addArgument, addInOutputArgument, addInOutputArgument, addOutputArgument, addOutputArgument, addOutputArgument, addOutputArgument, addStatement, addVariable, addVariable, getArguments, getArgumentTypes, getStatements, getVariables, printArgument, printInOutputArgument, printOutputArgument, setArguments, setStatements, setVariables
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
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
-
Constructor Details
-
StoredFunctionDefinition
public StoredFunctionDefinition()
-
-
Method Details
-
buildCreationWriter
public Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the create statement.- Overrides:
buildCreationWriter
in classStoredProcedureDefinition
- Throws:
ValidationException
-
buildDeletionWriter
public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the drop statement.- Overrides:
buildDeletionWriter
in classStoredProcedureDefinition
- Throws:
ValidationException
-
getCreationHeader
- Overrides:
getCreationHeader
in classStoredProcedureDefinition
-
getDeletionHeader
- Overrides:
getDeletionHeader
in classStoredProcedureDefinition
-
getFirstArgumentIndex
public int getFirstArgumentIndex()- Overrides:
getFirstArgumentIndex
in classStoredProcedureDefinition
-
setReturnType
Prints return for stored function -
printReturn
protected void printReturn(Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) throws ValidationException Prints return for stored function- Overrides:
printReturn
in classStoredProcedureDefinition
- Throws:
ValidationException
-