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
ConstructorsConstructorDescriptionINTERNAL: Used for XML loading.StoredProcedureParameterMetadata(MetadataAnnotation storedProcedureParameter, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectRelationalDatabaseFieldBuilds an ObjectRelationalDatabaseField based on a given OracleArrayTypeMetadata instance.booleanINTERNAL:protected OracleArrayTypeMetadatagetArrayTypeMetadata(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.inthashCode()protected booleanINTERNAL:protected booleanINTERNAL:protected booleanhasType()INTERNAL:protected booleanINTERNAL:voidinitXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:booleanINTERNAL:voidprocessArgument(StoredProcedureCall call, boolean callByIndex, int index) INTERNAL: #Bug 533272 - JPA NamedStoredProcedure call getOutputParameterValue with parameter name cause exceptionvoidprocessResult(StoredFunctionCall call, int index) INTERNAL:protected voidINTERNAL: set the project level settings on the database fieldsvoidsetDirection(String direction) INTERNAL: Used for OX mapping.voidsetJdbcType(Integer jdbcType) INTERNAL: Used for OX mapping.voidsetJdbcTypeName(String jdbcTypeName) INTERNAL: Used for OX mapping.voidINTERNAL: Used for OX mapping.voidINTERNAL: Used for OX mapping.voidsetOptional(Boolean optional) INTERNAL: Used for OX mapping.voidsetQueryParameter(String queryParameter) INTERNAL: Used for OX mapping.voidsetType(MetadataClass type) INTERNAL:voidsetTypeName(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:
equalsin 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:
initXMLObjectin 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.
-