Package net.ontopia.topicmaps.impl.rdbms
Class RoleTypeAssocTypeCache
java.lang.Object
net.ontopia.topicmaps.impl.rdbms.RoleTypeAssocTypeCache
INTERNAL:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RDBMSAccessprotected FieldInfoIFprotected FieldInfoIFprotected intprotected TransactionIFprotected booleanprotected Map<ParameterArray,Collection<AssociationRoleIF>> protected AccessRegistrarIFprotected TransactionalLookupIndexIF<ParameterArray,Collection<IdentityIF>> protected Map<ParameterArray,Collection<AssociationRoleIF>> protected Stringprotected Stringprotected TopicMapIFprotected FieldInfoIFprotected FieldInfoIFprotected TopicMapTransactionIF -
Constructor Summary
ConstructorsConstructorDescriptionRoleTypeAssocTypeCache(TopicMapTransactionIF txn, EventManagerIF emanager, EventManagerIF otree) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()protected voidaddEntry(ParameterArray key, AssociationRoleIF added) protected intbind(FieldInfoIF finfo, Object value, PreparedStatement stm, int offset) voidcommit()getRolesByType(TopicIF player, TopicIF rtype, TopicIF atype) protected IdentityIFvoidprefetchRolesByType(Collection players, TopicIF rtype, TopicIF atype) protected voidremoveEntry(ParameterArray key, AssociationRoleIF removed) protected Collection<AssociationRoleIF>syncWithTransaction(Collection<IdentityIF> roles, ParameterArray params, IdentityIF playerid, IdentityIF rtypeid, IdentityIF atypeid, IdentityIF tmid)
-
Field Details
-
access
-
registrar
-
TopicIF_idfield
-
TopicMapIF_idfield
-
AssociationIF_idfield
-
AssociationRoleIF_idfield
-
sql
-
sql_individual
-
batchSize
protected int batchSize -
tm
-
txn
-
ptxn
-
rolesByType
-
radd
-
rrem
-
-
Constructor Details
-
RoleTypeAssocTypeCache
public RoleTypeAssocTypeCache(TopicMapTransactionIF txn, EventManagerIF emanager, EventManagerIF otree)
-
-
Method Details
-
commit
public void commit() -
abort
public void abort() -
prefetchRolesByType
-
getRolesByType
-
syncWithTransaction
protected Collection<AssociationRoleIF> syncWithTransaction(Collection<IdentityIF> roles, ParameterArray params, IdentityIF playerid, IdentityIF rtypeid, IdentityIF atypeid, IdentityIF tmid) -
bind
protected int bind(FieldInfoIF finfo, Object value, PreparedStatement stm, int offset) throws SQLException - Throws:
SQLException
-
i
-
addEntry
-
removeEntry
-