Documentation of 'org.neodatis.odb.impl.core.transaction.Session' Java class
Session
org.neodatis.odb.impl.core.transaction

Class Session

  • All Implemented Interfaces:
    java.lang.Comparable, java.util.Observer, ISession
    Direct Known Subclasses:
    ClientSession, LocalSession


    public abstract class Session
    extends java.lang.Object
    implements java.lang.Comparable, ISession
    An ODB Session. Keeps track of all the session operations. Caches objects and manage the transaction. The meta model of the database is stored in the session.
    • Field Detail

      • id

        public java.lang.String id
    • Constructor Detail

      • Session

        public Session(java.lang.String id,
                       java.lang.String baseIdentification)
    • Method Detail

      • buildCache

        public abstract ICache buildCache()
      • buildTmpCache

        public abstract ITmpCache buildTmpCache()
      • rollback

        public void rollback()
        Specified by:
        rollback in interface ISession
      • close

        public void close()
        Specified by:
        close in interface ISession
      • clear

        public void clear()
        Specified by:
        clear in interface ISession
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface ISession
      • setId

        public void setId(java.lang.String sessionId)
        Specified by:
        setId in interface ISession
      • commit

        public abstract void commit()
        Specified by:
        commit in interface ISession
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • setBaseIdentification

        public void setBaseIdentification(java.lang.String baseIdentification)
      • removeObjectFromCache

        public void removeObjectFromCache(java.lang.Object object)
        Specified by:
        removeObjectFromCache in interface ISession
      • hasBeenCommitted

        public boolean hasBeenCommitted()
        Description copied from interface: ISession
        To indicate that session has already been committed once
        Specified by:
        hasBeenCommitted in interface ISession
      • setHasBeenCommitted

        public void setHasBeenCommitted(boolean hasBeenCommitted)
        Specified by:
        setHasBeenCommitted in interface ISession

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.