Package com.tridion.storage
Class BinaryContent
java.lang.Object
com.tridion.storage.BaseEntityImpl
com.tridion.storage.BinaryContent
- All Implemented Interfaces:
BaseEntity,BinaryContentEntity,Serializable
This represents binary content stored in the content delivery data store.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryContent(int namespaceId, int publicationId, int binaryId, String variantId, byte[] content) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the binary Id.byte[]Get the binary content as byte array.intGets the namespace Id.getPK()intGets the publication Id.Gets the binary variant Id as String.inthashCode()voidsetBinaryId(int binaryId) Sets the binary Id.voidsetContent(byte[] content) Set binary content.voidsetEntityId(Long entityId) voidsetNamespaceId(int namespaceId) Sets the namespaceId.voidsetPublicationId(int publicationId) Sets the publication Id.voidsetVariantId(String variantId) Sets the variant ID.toString()Methods inherited from class com.tridion.storage.BaseEntityImpl
getEntityName, setPKMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tridion.storage.BaseEntity
getEntityName, setPK
-
Constructor Details
-
BinaryContent
public BinaryContent() -
BinaryContent
public BinaryContent(int namespaceId, int publicationId, int binaryId, String variantId, byte[] content)
-
-
Method Details
-
getEntityId
-
setEntityId
-
getPK
- Specified by:
getPKin interfaceBaseEntity- Specified by:
getPKin classBaseEntityImpl
-
getNamespaceId
public int getNamespaceId()Description copied from interface:BinaryContentEntityGets the namespace Id.- Specified by:
getNamespaceIdin interfaceBinaryContentEntity- Returns:
- the namespace as int.
-
setNamespaceId
public void setNamespaceId(int namespaceId) Description copied from interface:BinaryContentEntitySets the namespaceId.- Specified by:
setNamespaceIdin interfaceBinaryContentEntity- Parameters:
namespaceId- the namespaceId.
-
getPublicationId
public int getPublicationId()Description copied from interface:BinaryContentEntityGets the publication Id.- Specified by:
getPublicationIdin interfaceBinaryContentEntity- Returns:
- the publication Id.
-
setPublicationId
public void setPublicationId(int publicationId) Description copied from interface:BinaryContentEntitySets the publication Id.- Specified by:
setPublicationIdin interfaceBinaryContentEntity- Parameters:
publicationId- the publication Id.
-
getBinaryId
public int getBinaryId()Description copied from interface:BinaryContentEntityGets the binary Id.- Specified by:
getBinaryIdin interfaceBinaryContentEntity- Returns:
- the binary Id.
-
setBinaryId
public void setBinaryId(int binaryId) Description copied from interface:BinaryContentEntitySets the binary Id.- Specified by:
setBinaryIdin interfaceBinaryContentEntity- Parameters:
binaryId- the binary Id.
-
getVariantId
Description copied from interface:BinaryContentEntityGets the binary variant Id as String.- Specified by:
getVariantIdin interfaceBinaryContentEntity- Returns:
- the variant Id.
-
setVariantId
Description copied from interface:BinaryContentEntitySets the variant ID.- Specified by:
setVariantIdin interfaceBinaryContentEntity- Parameters:
variantId- the variant Id.
-
getContent
public byte[] getContent()Description copied from interface:BinaryContentEntityGet the binary content as byte array.- Specified by:
getContentin interfaceBinaryContentEntity- Returns:
- the binary content.
-
setContent
public void setContent(byte[] content) Description copied from interface:BinaryContentEntitySet binary content.- Specified by:
setContentin interfaceBinaryContentEntity- Parameters:
content- the binary content.
-
equals
-
hashCode
public int hashCode() -
toString
-