Module org.eclipse.persistence.jpa
Class StoredProcedureParameterMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.queries.StoredProcedureParameterMetadata
INTERNAL:
Object to hold onto a stored procedure parameter metadata.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- all metadata mapped from XML should be initialized in the initXMLObject
method.
- when loading from annotations, the constructor accepts the metadata
accessor this metadata was loaded from. Used it to look up any
'companion' annotation needed for processing.
- methods should be preserved in alphabetical order.
- Since:
- TopLink 11g
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for XML loading.StoredProcedureParameterMetadata
(MetadataAnnotation storedProcedureParameter, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectRelationalDatabaseField
Builds an ObjectRelationalDatabaseField based on a given OracleArrayTypeMetadata instance.boolean
INTERNAL:protected OracleArrayTypeMetadata
getArrayTypeMetadata
(String javaClassName) Returns the OracleArrayTypeMetadata instance for a given class name, or null if none exists.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.getMode()
INTERNAL: Used for OX mapping.getName()
INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.getType()
INTERNAL:INTERNAL: Used for OX mapping.int
hashCode()
protected boolean
INTERNAL:protected boolean
INTERNAL:protected boolean
hasType()
INTERNAL:protected boolean
INTERNAL:void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:boolean
INTERNAL:void
processArgument
(StoredProcedureCall call, boolean callByIndex, int index) INTERNAL: #Bug 533272 - JPA NamedStoredProcedure call getOutputParameterValue with parameter name cause exceptionvoid
processResult
(StoredFunctionCall call, int index) INTERNAL:protected void
INTERNAL: set the project level settings on the database fieldsvoid
setDirection
(String direction) INTERNAL: Used for OX mapping.void
setJdbcType
(Integer jdbcType) INTERNAL: Used for OX mapping.void
setJdbcTypeName
(String jdbcTypeName) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
setOptional
(Boolean optional) INTERNAL: Used for OX mapping.void
setQueryParameter
(String queryParameter) INTERNAL: Used for OX mapping.void
setType
(MetadataClass type) INTERNAL:void
setTypeName
(String typeName) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getIdentifier, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
StoredProcedureParameterMetadata
public StoredProcedureParameterMetadata()INTERNAL: Used for XML loading. -
StoredProcedureParameterMetadata
public StoredProcedureParameterMetadata(MetadataAnnotation storedProcedureParameter, MetadataAccessor accessor) INTERNAL: Used for annotation loading.
-
-
Method Details
-
buildNestedField
Builds an ObjectRelationalDatabaseField based on a given OracleArrayTypeMetadata instance.- Parameters:
aType
- OracleArrayTypeMetadata instance to be used to construct the field- Returns:
- an ObjectRelationalDatabaseField instance
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getArrayTypeMetadata
Returns the OracleArrayTypeMetadata instance for a given class name, or null if none exists.- Parameters:
javaClassName
- class name used to look up the OracleArrayTypeMetadata instance- Returns:
- the OracleArrayTypeMetadata instance with javaType matching javaClassName, or null if none exists.
-
getDirection
INTERNAL: Used for OX mapping. -
getJdbcType
INTERNAL: Used for OX mapping. -
getJdbcTypeName
INTERNAL: Used for OX mapping. -
getMode
INTERNAL: Used for OX mapping. -
getName
INTERNAL: Used for OX mapping. -
getOptional
INTERNAL: Used for OX mapping. -
getQueryParameter
INTERNAL: Used for OX mapping. -
getType
INTERNAL: -
getTypeName
INTERNAL: Used for OX mapping. -
hasJdbcType
protected boolean hasJdbcType()INTERNAL: -
hasJdbcTypeName
protected boolean hasJdbcTypeName()INTERNAL: -
hasType
protected boolean hasType()INTERNAL: -
hasTypeName
protected boolean hasTypeName()INTERNAL: -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
isOutParameter
public boolean isOutParameter()INTERNAL: -
processArgument
INTERNAL: #Bug 533272 - JPA NamedStoredProcedure call getOutputParameterValue with parameter name cause exception -
processResult
INTERNAL: -
setDatabaseFieldSettings
INTERNAL: set the project level settings on the database fields -
setDirection
INTERNAL: Used for OX mapping. -
setJdbcType
INTERNAL: Used for OX mapping. -
setJdbcTypeName
INTERNAL: Used for OX mapping. -
setMode
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
setOptional
INTERNAL: Used for OX mapping. -
setQueryParameter
INTERNAL: Used for OX mapping. -
setType
INTERNAL: -
setTypeName
INTERNAL: Used for OX mapping.
-