net.ontopia.topicmaps.impl.rdbms
Class RoleTypeAssocTypeCache

java.lang.Object
  extended by net.ontopia.topicmaps.impl.rdbms.RoleTypeAssocTypeCache

public class RoleTypeAssocTypeCache
extends Object

INTERNAL:


Field Summary
protected  RDBMSAccess access
           
protected  FieldInfoIF AssociationIF_idfield
           
protected  FieldInfoIF AssociationRoleIF_idfield
           
protected  int batchSize
           
protected  TransactionIF ptxn
           
protected  boolean qlshared
           
protected  Map radd
           
protected  AccessRegistrarIF registrar
           
protected  TransactionalLookupIndexIF rolesByType
           
protected  Map rrem
           
protected  String sql
           
protected  String sql_individual
           
protected  TopicMapIF tm
           
protected  FieldInfoIF TopicIF_idfield
           
protected  FieldInfoIF TopicMapIF_idfield
           
protected  TopicMapTransactionIF txn
           
 
Constructor Summary
RoleTypeAssocTypeCache(TopicMapTransactionIF txn, EventManagerIF emanager, EventManagerIF otree)
           
 
Method Summary
 void abort()
           
protected  void addEntry(ParameterArray key, AssociationRoleIF added)
           
protected  int bind(FieldInfoIF finfo, Object value, PreparedStatement stm, int offset)
           
 void commit()
           
 Collection 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 syncWithTransaction(Collection roles, ParameterArray params, IdentityIF playerid, IdentityIF rtypeid, IdentityIF atypeid, IdentityIF tmid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

access

protected RDBMSAccess access

registrar

protected AccessRegistrarIF registrar

TopicIF_idfield

protected FieldInfoIF TopicIF_idfield

TopicMapIF_idfield

protected FieldInfoIF TopicMapIF_idfield

AssociationIF_idfield

protected FieldInfoIF AssociationIF_idfield

AssociationRoleIF_idfield

protected FieldInfoIF AssociationRoleIF_idfield

sql

protected String sql

sql_individual

protected String sql_individual

batchSize

protected int batchSize

tm

protected TopicMapIF tm

txn

protected TopicMapTransactionIF txn

ptxn

protected TransactionIF ptxn

rolesByType

protected TransactionalLookupIndexIF rolesByType

qlshared

protected boolean qlshared

radd

protected Map radd

rrem

protected Map rrem
Constructor Detail

RoleTypeAssocTypeCache

public RoleTypeAssocTypeCache(TopicMapTransactionIF txn,
                              EventManagerIF emanager,
                              EventManagerIF otree)
Method Detail

commit

public void commit()

abort

public void abort()

prefetchRolesByType

public void prefetchRolesByType(Collection players,
                                TopicIF rtype,
                                TopicIF atype)

getRolesByType

public Collection getRolesByType(TopicIF player,
                                 TopicIF rtype,
                                 TopicIF atype)

syncWithTransaction

protected Collection syncWithTransaction(Collection 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

protected IdentityIF i(Object o)

addEntry

protected void addEntry(ParameterArray key,
                        AssociationRoleIF added)

removeEntry

protected void removeEntry(ParameterArray key,
                           AssociationRoleIF removed)


Copyright © 2000-2012 Ontopia.