public class RoleTypeAssocTypeCache extends Object
Modifier and Type | Field and Description |
---|---|
protected RDBMSAccess |
access |
protected FieldInfoIF |
AssociationIF_idfield |
protected FieldInfoIF |
AssociationRoleIF_idfield |
protected int |
batchSize |
protected TransactionIF |
ptxn |
protected boolean |
qlshared |
protected Map<ParameterArray,Collection<AssociationRoleIF>> |
radd |
protected AccessRegistrarIF |
registrar |
protected TransactionalLookupIndexIF<ParameterArray,Collection<IdentityIF>> |
rolesByType |
protected Map<ParameterArray,Collection<AssociationRoleIF>> |
rrem |
protected String |
sql |
protected String |
sql_individual |
protected TopicMapIF |
tm |
protected FieldInfoIF |
TopicIF_idfield |
protected FieldInfoIF |
TopicMapIF_idfield |
protected TopicMapTransactionIF |
txn |
Constructor and Description |
---|
RoleTypeAssocTypeCache(TopicMapTransactionIF txn,
EventManagerIF emanager,
EventManagerIF otree) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
protected void |
addEntry(ParameterArray key,
AssociationRoleIF added) |
protected int |
bind(FieldInfoIF finfo,
Object value,
PreparedStatement stm,
int offset) |
void |
commit() |
Collection<AssociationRoleIF> |
getRolesByType(TopicIF player,
TopicIF rtype,
TopicIF atype) |
protected IdentityIF |
i(Object o) |
void |
prefetchRolesByType(Collection players,
TopicIF rtype,
TopicIF atype) |
protected void |
removeEntry(ParameterArray key,
AssociationRoleIF removed) |
protected Collection<AssociationRoleIF> |
syncWithTransaction(Collection<IdentityIF> roles,
ParameterArray params,
IdentityIF playerid,
IdentityIF rtypeid,
IdentityIF atypeid,
IdentityIF tmid) |
protected RDBMSAccess access
protected AccessRegistrarIF registrar
protected FieldInfoIF TopicIF_idfield
protected FieldInfoIF TopicMapIF_idfield
protected FieldInfoIF AssociationIF_idfield
protected FieldInfoIF AssociationRoleIF_idfield
protected String sql
protected String sql_individual
protected int batchSize
protected TopicMapIF tm
protected TopicMapTransactionIF txn
protected TransactionIF ptxn
protected TransactionalLookupIndexIF<ParameterArray,Collection<IdentityIF>> rolesByType
protected boolean qlshared
protected Map<ParameterArray,Collection<AssociationRoleIF>> radd
protected Map<ParameterArray,Collection<AssociationRoleIF>> rrem
public RoleTypeAssocTypeCache(TopicMapTransactionIF txn, EventManagerIF emanager, EventManagerIF otree)
public void commit()
public void abort()
public void prefetchRolesByType(Collection players, TopicIF rtype, TopicIF atype)
public Collection<AssociationRoleIF> getRolesByType(TopicIF player, TopicIF rtype, TopicIF atype)
protected Collection<AssociationRoleIF> syncWithTransaction(Collection<IdentityIF> roles, ParameterArray params, IdentityIF playerid, IdentityIF rtypeid, IdentityIF atypeid, IdentityIF tmid)
protected int bind(FieldInfoIF finfo, Object value, PreparedStatement stm, int offset) throws SQLException
SQLException
protected IdentityIF i(Object o)
protected void addEntry(ParameterArray key, AssociationRoleIF added)
protected void removeEntry(ParameterArray key, AssociationRoleIF removed)