Package org.hcjf.layers.storage
Class StorageSession
- java.lang.Object
-
- org.hcjf.layers.storage.StorageSession
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public abstract class StorageSession extends java.lang.Object implements java.io.CloseableThis class is the base class to implements a storage session over some particular technology. These implementations are the bonds between the storage interface and the particular technologies.- Author:
- javaito
-
-
Constructor Summary
Constructors Constructor Description StorageSession(java.lang.String implName)
-
Method Summary
Modifier and Type Method Description Deletedelete(Queryable queryable)This method must return a delete operation implementation, this implementation depends of the storage session technology.java.lang.StringgetImplName()Returns the implementation name.Insertinsert(java.lang.Object object)This method must return a insert operation implementation, this implementation depends of the storage session technology.Selectselect(Queryable queryable)This method must return a select operation implementation, this implementation depends of the storage session technology.Updateupdate(java.lang.Object instance, Queryable queryable)This method must return a update operation implementation, this implementation depends of the storage session technology.
-
-
-
Method Detail
-
getImplName
public final java.lang.String getImplName()
Returns the implementation name.- Returns:
- Implementation name.
-
select
public Select select(Queryable queryable)
This method must return a select operation implementation, this implementation depends of the storage session technology.- Parameters:
queryable- Object with all the information to create the particular query implementation over the storage technology.- Returns:
- Return the select action.
-
insert
public Insert insert(java.lang.Object object)
This method must return a insert operation implementation, this implementation depends of the storage session technology.- Parameters:
object- Object to initialize the instance of insert operation.- Returns:
- Return the insert operation.
-
update
public Update update(java.lang.Object instance, Queryable queryable)
This method must return a update operation implementation, this implementation depends of the storage session technology.- Parameters:
instance- Object that contains all the attributes to update.queryable- Query to select the instance to update.- Returns:
- Return the update operation.
-
-