public abstract class ResourceUseManager<T extends ResourceUse>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
con |
protected int |
mid |
protected java.lang.String |
tableName |
Constructor and Description |
---|
ResourceUseManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
void |
closeResourceUse(int cid,
java.util.Date date) |
void |
freeResources(int cid) |
java.util.List<T> |
getResourceUse(int resourceId) |
protected abstract T |
getResourceUseFromRs(java.sql.ResultSet rs) |
protected abstract java.lang.String |
getTableName() |
protected abstract void |
insertResourceUseList(int resourceId,
java.util.List<T> resourceUseList) |
protected void |
loadStandartResourceUseFromRs(ResourceUse ruse,
java.sql.ResultSet rs) |
void |
updateResourceUse(int resourceId,
java.util.List<T> useList) |
boolean |
wasResourceUsed(java.lang.String resourceId) |
protected java.sql.Connection con
protected java.lang.String tableName
protected int mid
public java.util.List<T> getResourceUse(int resourceId)
public void updateResourceUse(int resourceId, java.util.List<T> useList)
protected abstract void insertResourceUseList(int resourceId, java.util.List<T> resourceUseList) throws java.lang.Exception
java.lang.Exception
public boolean wasResourceUsed(java.lang.String resourceId)
protected void loadStandartResourceUseFromRs(ResourceUse ruse, java.sql.ResultSet rs) throws java.lang.Exception
java.lang.Exception
protected abstract T getResourceUseFromRs(java.sql.ResultSet rs)
protected abstract java.lang.String getTableName()
public void freeResources(int cid)
public void closeResourceUse(int cid, java.util.Date date)