SessionDAO.create

Inserts a new Session record into the underling EIS (e.g. Relational database, file system, persistent cache, etc, depending on the DAO implementation). <p/> After this method is invoked, the {@link hunt.shiro.session.Session#getId()} method executed on the argument must return a valid session identifier. That is, the following should always be true: <pre> Serializable id = create( session ); id.equals( session.getId() ) == true</pre> <p/> Implementations are free to throw any exceptions that might occur due to integrity violation constraints or other EIS related errors.

@param session the {@link hunt.shiro.session.Session} object to create in the EIS. @return the EIS id (e.g. primary key) of the created {@code Session} object.

interface SessionDAO
string
create

Meta