View Javadoc
1 /* 2 * Copyright (c) 2003 3 * Information Desire GmbH 4 * All rights reserved. 5 */ 6 package com.infodesire.infobit.dao; 7 8 import com.infodesire.infobit.data.BinaryContent; 9 import com.infodesire.infobit.data.Keyworded; 10 11 import java.sql.Blob; 12 import java.util.Map; 13 import java.util.HashMap; 14 import java.util.Collections; 15 16 /*** 17 * implemetation of binary content 18 * 19 * @author konstantin 20 * @created August 19, 2003 21 * @version $Revision: 1.3 $ 22 * @hibernate.subclass discriminator-value="BinaryContent" 23 */ 24 class BinaryContentImpl extends LongContentImpl implements BinaryContent, Keyworded { 25 26 /*** 27 */ 28 private String _mimeType; 29 30 /*** 31 */ 32 private int _size; 33 34 35 36 /*** 37 * mime type of binary content. 38 * 39 * @return The MimeType value 40 * @hibernate.property 41 */ 42 public String getMimeType() { 43 return _mimeType; 44 } 45 46 47 /*** 48 * length of stored data 49 * 50 * @return The Size value 51 */ 52 public int getSize() { 53 return _size; 54 } 55 56 57 /*** 58 * Sets the MimeType attribute of the BinaryContent object 59 * 60 * @param mimeType The new MimeType value 61 */ 62 public void setMimeType(String mimeType) { 63 _mimeType = mimeType; 64 } 65 66 67 /*** 68 * Sets the Size attribute of the BinaryContent object 69 * 70 * @param size The new Size value 71 */ 72 public void setSize(int size) { 73 _size = size; 74 } 75 76 }

This page was automatically generated by Maven