|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.file.FileDaoJdbc
public class FileDaoJdbc
File storing object
Constructor Summary | |
---|---|
FileDaoJdbc()
|
Method Summary | |
---|---|
void |
add(FileConfig fileConfig,
ITransaction transaction)
Add the file. |
void |
delete(String fileId,
ITransaction transaction)
Delete the file. |
FileConfig |
get(String fileId,
ITransaction transaction)
Get the file. |
String |
getIdByItemInfo(String itemId,
String serviceInstanceId,
String sourceId,
String fieldId,
ITransaction transaction)
Get the fileId refered by a content with the given ids. |
Collection<String> |
getIdsByFilesId(String filesId,
ITransaction transaction)
Return the file ids that belongs to the files with the given id. |
Collection<String> |
getIdsByFilesIdAndType(String filesId,
int type,
ITransaction transaction)
Return the file ids that belongs to the files with the given id and with the given type. |
Collection<String> |
getIdsByServiceInstanceId(String serviceInstanceId,
ITransaction transaction)
Return the file ids that belongs to the specified service instance. |
int |
getNumberOfServiceInstanceFiles(String serviceInstanceId,
ITransaction transaction)
Returns the number of files for a service instance. |
void |
update(FileConfig fileConfig,
ITransaction transaction)
Updates the file's information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileDaoJdbc()
Method Detail |
---|
public FileConfig get(String fileId, ITransaction transaction) throws PortalException
IFileDao
get
in interface IFileDao
DaoException
PortalException
public void add(FileConfig fileConfig, ITransaction transaction) throws PortalException
IFileDao
add
in interface IFileDao
PortalException
public void delete(String fileId, ITransaction transaction) throws PortalException
IFileDao
delete
in interface IFileDao
DaoException
PortalException
public void update(FileConfig fileConfig, ITransaction transaction) throws DaoException, PortalException
IFileDao
update
in interface IFileDao
PortalException
DaoException
public Collection<String> getIdsByFilesIdAndType(String filesId, int type, ITransaction transaction) throws PortalException
IFileDao
getIdsByFilesIdAndType
in interface IFileDao
filesId
- the id of the files.type
- the type the returned files must have. The type value must be one of the
TYPE constants available in FileConfig
.transaction
- the transaction for persistence access.
PortalException
public Collection<String> getIdsByFilesId(String filesId, ITransaction transaction) throws PortalException
IFileDao
getIdsByFilesId
in interface IFileDao
filesId
- the id of the files.transaction
- the transaction for persistence access.
PortalException
public Collection<String> getIdsByServiceInstanceId(String serviceInstanceId, ITransaction transaction) throws PortalException
IFileDao
getIdsByServiceInstanceId
in interface IFileDao
serviceInstanceId
- the service instance's id.transaction
- the transaction for persistence access.
PortalException
public String getIdByItemInfo(String itemId, String serviceInstanceId, String sourceId, String fieldId, ITransaction transaction) throws PortalException
IFileDao
getIdByItemInfo
in interface IFileDao
PortalException
public int getNumberOfServiceInstanceFiles(String serviceInstanceId, ITransaction transaction) throws PortalException
IFileDao
getNumberOfServiceInstanceFiles
in interface IFileDao
serviceInstanceId
- the service instance identifier.transaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |