Class BinaryDataImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.binary.BinaryDataImpl
- All Implemented Interfaces:
BinaryData
-
Constructor Summary
ConstructorDescriptionBinaryDataImpl
(BinaryAccessProvider binaryAccessProvider, PrimaryKey resourceKey, PrimaryKey resourceContentKey, PrimaryKey entityKey, com.google.common.hash.HashCode hashCode, String fileName, String mimeType, String fileExtension, long size) -
Method Summary
Modifier and TypeMethodDescription@Nullable PrimaryKey
com.google.common.hash.HashCode
long
getSize()
toBinary()
-
Constructor Details
-
BinaryDataImpl
public BinaryDataImpl(BinaryAccessProvider binaryAccessProvider, PrimaryKey resourceKey, PrimaryKey resourceContentKey, PrimaryKey entityKey, com.google.common.hash.HashCode hashCode, String fileName, String mimeType, String fileExtension, long size)
-
-
Method Details
-
toBinary
- Specified by:
toBinary
in interfaceBinaryData
-
getResourceKey
- Specified by:
getResourceKey
in interfaceBinaryData
- Returns:
- the primary key of the associated 'Resource' entity
-
getResourceContentKey
- Specified by:
getResourceContentKey
in interfaceBinaryData
- Returns:
- the primary key of the associated 'Resource_content' entity
-
getEntityKey
- Specified by:
getEntityKey
in interfaceBinaryData
- Returns:
- the primary key of the associated entitydocs entity
-
getHashCode
public com.google.common.hash.HashCode getHashCode()- Specified by:
getHashCode
in interfaceBinaryData
-
getFileName
- Specified by:
getFileName
in interfaceBinaryData
-
getMimeType
- Specified by:
getMimeType
in interfaceBinaryData
-
getFileExtension
- Specified by:
getFileExtension
in interfaceBinaryData
-
getSize
public long getSize()- Specified by:
getSize
in interfaceBinaryData
-