Class BinaryDataImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.binary.BinaryDataImpl
- All Implemented Interfaces:
BinaryData
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryDataImpl(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 PrimaryKeycom.google.common.hash.HashCodelonggetSize()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:
toBinaryin interfaceBinaryData
-
getResourceKey
- Specified by:
getResourceKeyin interfaceBinaryData- Returns:
- the primary key of the associated 'Resource' entity
-
getResourceContentKey
- Specified by:
getResourceContentKeyin interfaceBinaryData- Returns:
- the primary key of the associated 'Resource_content' entity
-
getEntityKey
- Specified by:
getEntityKeyin interfaceBinaryData- Returns:
- the primary key of the associated entitydocs entity
-
getHashCode
public com.google.common.hash.HashCode getHashCode()- Specified by:
getHashCodein interfaceBinaryData
-
getFileName
- Specified by:
getFileNamein interfaceBinaryData
-
getMimeType
- Specified by:
getMimeTypein interfaceBinaryData
-
getFileExtension
- Specified by:
getFileExtensionin interfaceBinaryData
-
getSize
public long getSize()- Specified by:
getSizein interfaceBinaryData
-