public class DBDataDetails
extends java.lang.Object
Contains the details of the data records that hold the data for a file or stream.
Constructor and Description |
---|
DBDataDetails(int fileId,
int streamId)
Class constructor
|
DBDataDetails(int fileId,
int streamId,
int jarId,
int numFragments,
int sizeFragment)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDataFragmentSize()
Return the data fragment size
|
int |
getFileId()
Return the file id
|
int |
getJarId()
Return the Jar id
|
int |
getStreamId()
Return the stream id
|
boolean |
isStoredInJar()
Determine if the file is stored in a Jar
|
int |
numberOfDataFragments()
Return the number of data fragments for the file data
|
void |
setDataFragments(int numFrags,
int sizeFrag)
Set the number of data fragments and fragment size in bytes
|
void |
setJarId(int jarId)
Set the Jar id, or use -1 if the file is not stored as part of a Jar file
|
java.lang.String |
toString()
Return the data details as a string
|
public DBDataDetails(int fileId, int streamId)
fileId
- streamId
- public DBDataDetails(int fileId, int streamId, int jarId, int numFragments, int sizeFragment)
fileId
- intstreamId
- intjarId
- intnumFragments
- intsizeFragment
- intpublic final int getFileId()
public final int getStreamId()
public final boolean isStoredInJar()
public final int getJarId()
public final int numberOfDataFragments()
public final int getDataFragmentSize()
public final void setJarId(int jarId)
jarId
- intpublic final void setDataFragments(int numFrags, int sizeFrag)
numFrags
- intsizeFrag
- intpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.