Package com.qfs.snl.persistence
Interface ICreateDao<T>
- Type Parameters:
T
- The type of instance to store
- All Known Subinterfaces:
IAuditDao
,IIdentifiableDao<T>
,IMonitorDao
,ISentinelAlertDao
,ISentinelEventDao
- All Known Implementing Classes:
ACRDao
,ACRDDao
,ACRUDDao
,AIdenfiableDao
,AuditDao
,MonitorDao
,SentinelAlertDao
,SentinelEventDao
public interface ICreateDao<T>
Interface representing a DAO that can perform create actions. This has no assumption on
the aspect of the key, if any.
- Author:
- ActiveViam
-
Method Details
-
create
Persists a transient element, creating a new persisted resource.- Parameters:
element
- the element to persist- Returns:
- the element once persisted
- Throws:
IllegalArgumentException
- if the element was already saved.
-
create
Persists a transients elements, creating a new persisted resources.- Parameters:
result
- the elements to persist- Returns:
- the elements once persisted
- Throws:
IllegalArgumentException
- if the element was already saved.
-