Class PLSQLParameterMetadata


  • public class PLSQLParameterMetadata
    extends ORMetadata
    INTERNAL: Object to hold onto a PLSQL parameter meta-data. 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:
    EclipseLink 2.3
    Author:
    James Sutherland
    • Constructor Detail

      • PLSQLParameterMetadata

        public PLSQLParameterMetadata()
        INTERNAL: Used for XML loading.
      • PLSQLParameterMetadata

        public PLSQLParameterMetadata​(MetadataAnnotation storedProcedureParameter,
                                      MetadataAccessor accessor)
        INTERNAL: Used for annotation loading.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        INTERNAL:
        Specified by:
        equals in class ORMetadata
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getDatabaseType

        public java.lang.String getDatabaseType()
        INTERNAL: Used for OX mapping.
      • getDatabaseTypeEnum

        protected org.eclipse.persistence.internal.helper.DatabaseType getDatabaseTypeEnum​(java.lang.String type)
        Return the DataType enum constant for the String type name. If type is not a JDBCType, OraclePLSQLType, PLSQLCursor or a ComplexMetadataType, the type will be wrapped in a PLSQLrecord.
        Overrides:
        getDatabaseTypeEnum in class ORMetadata
      • getDirection

        public java.lang.String getDirection()
        INTERNAL: Used for OX mapping.
      • getLength

        public java.lang.Integer getLength()
        INTERNAL: Used for OX mapping.
      • getName

        public java.lang.String getName()
        INTERNAL: Used for OX mapping.
      • getOptional

        public java.lang.Boolean getOptional()
        INTERNAL: Used for OX mapping.
      • getPrecision

        public java.lang.Integer getPrecision()
        INTERNAL: Used for OX mapping.
      • getQueryParameter

        public java.lang.String getQueryParameter()
        INTERNAL: Used for OX mapping.
      • getScale

        public java.lang.Integer getScale()
        INTERNAL: Used for OX mapping.
      • process

        public void process​(org.eclipse.persistence.platform.database.oracle.plsql.PLSQLStoredProcedureCall call,
                            boolean functionReturn)
        INTERNAL:
      • setDatabaseFieldSettings

        protected void setDatabaseFieldSettings​(org.eclipse.persistence.internal.helper.DatabaseField field,
                                                MetadataProject project)
        INTERNAL: set the project level settings on the database fields
      • setDatabaseType

        public void setDatabaseType​(java.lang.String databaseType)
        INTERNAL: Used for OX mapping.
      • setDirection

        public void setDirection​(java.lang.String direction)
        INTERNAL: Used for OX mapping.
      • setLength

        public void setLength​(java.lang.Integer length)
        INTERNAL: Used for OX mapping.
      • setName

        public void setName​(java.lang.String name)
        INTERNAL: Used for OX mapping.
      • setOptional

        public void setOptional​(java.lang.Boolean optional)
        INTERNAL: Used for OX mapping.
      • setPrecision

        public void setPrecision​(java.lang.Integer precision)
        INTERNAL: Used for OX mapping.
      • setQueryParameter

        public void setQueryParameter​(java.lang.String queryParameter)
        INTERNAL: Used for OX mapping.
      • setScale

        public void setScale​(java.lang.Integer scale)
        INTERNAL: Used for OX mapping.