com.sap.mdm.blobs
Interface BinaryBlobRecord

All Superinterfaces:
BlobRecord, Cloneable, Record, RepositoryItem
All Known Subinterfaces:
ImageBlobRecord, PdfBlobRecord

public interface BinaryBlobRecord
extends BlobRecord

An interface representing a blob record which can include Binary Object, Sounds, Videos, etc.


Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.data.Record
Record.CheckoutStatus, Record.MatrixType, Record.ModificationStatus
 
Method Summary
 MdmValue getBinary()
          Returns the raw binary object.
 GroupNodeId getDataLocationId()
          Returns the data location node where the blob originally came from.
 MdmValue getHasOriginal()
          Returns whether the blob is store in the repository.
 MdmValue getName()
          Returns the name of the blob.
 MdmValue getOriginalName()
          Returns the original name of the blob.
 MdmValue getSource()
          Deprecated. replaced by getDataLocationId()
 void setBinary(byte[] binary)
          Sets the raw binary object (required).
 void setBinary(MdmValue binary)
          Sets the raw binary object (required).
 void setDataLocationId(GroupNodeId nodeId)
          Sets the data location node where the blob originally came from (required).
 void setHasOriginal(boolean hasOriginal)
          Sets whether the blob is store in the repository (optional).
 void setHasOriginal(MdmValue hasOriginal)
          Sets whether the blob is store in the repository (optional).
 void setName(MdmValue name)
          Sets the name of the blob (required).
 void setName(String name)
          Sets the name of the blob (required).
 void setOriginalName(MdmValue name)
          Sets the original name of the blob (optional).
 void setOriginalName(String name)
          Sets the original name of the blob (optional).
 void setSource(MdmValue source)
          Deprecated. replaced by setDataLocationId(GroupNodeId)
 
Methods inherited from interface com.sap.mdm.blobs.BlobRecord
getCode, getDataGroupId, getDataSize, getDescription, setCode, setDataGroupId, setDataSize, setDataSize, setDescription, setDescription
 
Methods inherited from interface com.sap.mdm.data.Record
clone, containsAttribute, containsField, findLookupRecords, getAttributes, getAttributeValue, getChangeStamp, getCheckoutStatus, getDefaultRegionCode, getDisplayValue, getFields, getFieldValue, getId, getLookupDisplayValue, getMatrixType, getMetadata, getModificationStatus, getMultiregionFieldValue, getReverseLookupRecords, getReverseLookups, getTable, getTupleDisplayValue, hasFieldValue, isInWorkflow, isProtected, isQualifiedField, isTaxonomyField, setAttributeValue, setFieldValue, setMatrixType, toString, toString, toString, toString
 

Method Detail

getName

public MdmValue getName()
Returns the name of the blob.

Returns:
a name

setName

public void setName(MdmValue name)
             throws IllegalArgumentException,
                    MdmValueTypeException
Sets the name of the blob (required).

Parameters:
name - a name
Throws:
IllegalArgumentException
MdmValueTypeException

setName

public void setName(String name)
Sets the name of the blob (required).

Parameters:
name - a name
Throws:
IllegalArgumentException
Since:
5.5 SP6 Patch 04

getOriginalName

public MdmValue getOriginalName()
Returns the original name of the blob.

Returns:
an original name

setOriginalName

public void setOriginalName(MdmValue name)
                     throws IllegalArgumentException,
                            MdmValueTypeException
Sets the original name of the blob (optional).

Parameters:
name - an original name
Throws:
IllegalArgumentException
MdmValueTypeException

setOriginalName

public void setOriginalName(String name)
Sets the original name of the blob (optional).

Parameters:
name - an original name
Throws:
IllegalArgumentException
Since:
5.5 SP6 Patch 04

getHasOriginal

public MdmValue getHasOriginal()
Returns whether the blob is store in the repository.

Returns:
true if the blob is store in the repository, otherwise false

setHasOriginal

public void setHasOriginal(MdmValue hasOriginal)
                    throws IllegalArgumentException,
                           MdmValueTypeException
Sets whether the blob is store in the repository (optional).

Parameters:
hasOriginal - true if the blob is store in the repository, otherwise false
Throws:
IllegalArgumentException
MdmValueTypeException

setHasOriginal

public void setHasOriginal(boolean hasOriginal)
Sets whether the blob is store in the repository (optional).

Parameters:
hasOriginal - true if the blob is store in the repository, otherwise false
Throws:
IllegalArgumentException
Since:
5.5 SP6 Patch 04

getSource

public MdmValue getSource()
Deprecated. replaced by getDataLocationId()

Returns the data location node where the blob originally came from.

Returns:
the data location

setSource

public void setSource(MdmValue source)
               throws IllegalArgumentException,
                      MdmValueTypeException
Deprecated. replaced by setDataLocationId(GroupNodeId)

Sets the data location node where the blob originally came from (required).

Parameters:
source -
Throws:
IllegalArgumentException
MdmValueTypeException

getDataLocationId

public GroupNodeId getDataLocationId()
Returns the data location node where the blob originally came from.

Returns:
the data location

setDataLocationId

public void setDataLocationId(GroupNodeId nodeId)
                       throws IllegalArgumentException,
                              MdmValueTypeException
Sets the data location node where the blob originally came from (required).

Parameters:
nodeId -
Throws:
IllegalArgumentException
MdmValueTypeException

getBinary

public MdmValue getBinary()
Returns the raw binary object.

Returns:
a raw binary object

setBinary

public void setBinary(MdmValue binary)
               throws IllegalArgumentException,
                      MdmValueTypeException
Sets the raw binary object (required).

Parameters:
binary - a raw binary object
Throws:
IllegalArgumentException
MdmValueTypeException

setBinary

public void setBinary(byte[] binary)
Sets the raw binary object (required).

Parameters:
binary - a raw binary object
Throws:
IllegalArgumentException
Since:
5.5 SP6 Patch 04


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.