Uses of Class
fj.control.db.DB

Packages that use DB
Package
Description
Abstractions for JDBC connections.
  • Uses of DB in fj.control.db

    Fields in fj.control.db declared as DB
    Modifier and Type
    Field
    Description
    private static final DB<Unit>
    DbState.commit
     
    private static final DB<Unit>
    DbState.rollback
     
    private final DB<Unit>
    DbState.terminal
     
    Methods in fj.control.db that return DB
    Modifier and Type
    Method
    Description
    final <B> DB<B>
    DB.bind(F<A,DB<B>> f)
    Binds the given action across the result of this database action.
    static <A> DB<A>
    DB.db(F<Connection,A> f)
    Constructs a database action as a function from a database connection to a value.
    static <A> DB<A>
    Constructs a database action as a function from a database connection to a value.
    static <A> DB<A>
    DB.join(DB<DB<A>> a)
    Removes one layer of monadic structure.
    final <B> DB<B>
    DB.map(F<A,B> f)
    Map a function over the result of this action.
    static <A> DB<A>
    DB.unit(A a)
    Constructs a database action that returns the given value completely intact.
    Methods in fj.control.db that return types with arguments of type DB
    Modifier and Type
    Method
    Description
    static <A, B> F<DB<A>,DB<B>>
    DB.liftM(F<A,B> f)
    Promotes any given function so that it transforms between values in the database.
    static <A, B> F<DB<A>,DB<B>>
    DB.liftM(F<A,B> f)
    Promotes any given function so that it transforms between values in the database.
    Methods in fj.control.db with parameters of type DB
    Modifier and Type
    Method
    Description
    static <A> DB<A>
    DB.join(DB<DB<A>> a)
    Removes one layer of monadic structure.
    <A> A
    DbState.run(DB<A> dba)
    Runs the given database action as a single transaction.
    Method parameters in fj.control.db with type arguments of type DB
    Modifier and Type
    Method
    Description
    final <B> DB<B>
    DB.bind(F<A,DB<B>> f)
    Binds the given action across the result of this database action.
    static <A> DB<A>
    DB.join(DB<DB<A>> a)
    Removes one layer of monadic structure.
    Constructors in fj.control.db with parameters of type DB
    Modifier
    Constructor
    Description
    private
    DbState(Connector pc, DB<Unit> terminal)