Package nl.knaw.dans.layerstore
Class ItemRecord
java.lang.Object
nl.knaw.dans.layerstore.ItemRecord
A record in the database that represents a file or directory in a layer.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionItemRecord
(Long generatedId, Long layerId, String path, Item.Type type, byte[] content) -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemRecord.ItemRecordBuilder
builder()
protected boolean
boolean
byte[]
getPath()
getType()
int
hashCode()
void
setContent
(byte[] content) void
setGeneratedId
(Long generatedId) void
setLayerId
(Long layerId) void
void
toItem()
toString()
-
Constructor Details
-
ItemRecord
public ItemRecord() -
ItemRecord
-
-
Method Details
-
toItem
-
builder
-
getGeneratedId
-
getLayerId
-
getPath
-
getType
-
getContent
public byte[] getContent() -
setGeneratedId
-
setLayerId
-
setPath
-
setType
-
setContent
public void setContent(byte[] content) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-