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:
java.io.Serializable
,java.lang.Cloneable
public class StoredFunctionDefinition extends StoredProcedureDefinition
Purpose: Allow a semi-generic way of creating store function. Note that stored functions supported only on Oracle platform
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description StoredFunctionDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 functionvoid
setReturnType(java.lang.Class type)
Prints return for stored function-
Methods 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
-
-
-
-
Method Detail
-
buildCreationWriter
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
INTERNAL: Return the create statement.- Overrides:
buildCreationWriter
in classStoredProcedureDefinition
- Throws:
ValidationException
-
buildDeletionWriter
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
INTERNAL: Return the drop statement.- Overrides:
buildDeletionWriter
in classStoredProcedureDefinition
- Throws:
ValidationException
-
getCreationHeader
public java.lang.String getCreationHeader()
- Overrides:
getCreationHeader
in classStoredProcedureDefinition
-
getDeletionHeader
public java.lang.String getDeletionHeader()
- Overrides:
getDeletionHeader
in classStoredProcedureDefinition
-
getFirstArgumentIndex
public int getFirstArgumentIndex()
- Overrides:
getFirstArgumentIndex
in classStoredProcedureDefinition
-
setReturnType
public void setReturnType(java.lang.Class type)
Prints return for stored function
-
printReturn
protected void printReturn(java.io.Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) throws ValidationException
Prints return for stored function- Overrides:
printReturn
in classStoredProcedureDefinition
- Throws:
ValidationException
-
-