transaction

package
v0.0.0-...-0c91f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const COMMENT_NAME = "@Transactional"
View Source
const GO_FILE_SUFIX = ".go"
View Source
const TIMEOUT_DEFAULT = -1

Variables

This section is empty.

Functions

func NewTransactionManager

func NewTransactionManager(cfg TransactionConfig) *transactionManager

Types

type Propagation

type Propagation int
const (
	PROPAGATION_REQUIRED Propagation = iota
	PROPAGATION_SUPPORTS
	PROPAGATION_MANDATORY
	PROPAGATION_REQUIRES_NEW
	PROPAGATION_NOT_SUPPORTED
	PROPAGATION_NEVER
	PROPAGATION_NESTED
)

type TransactionConfig

type TransactionConfig struct {
	ScanPath string
}

func (*TransactionConfig) Reload

func (c *TransactionConfig) Reload() error

TODO

type Transactional

type Transactional struct {
	ReadOnly                bool
	RollbackFor             reflect.Type
	RollbackForStructName   reflect.Type
	NoRollbackFor           reflect.Type
	NoRollbackForStructName reflect.Type
	Propagation             Propagation
	Isolation               int
	Timeout                 int
}

func (*Transactional) After

func (t *Transactional) After(point *aop.JoinPoint, methodLocation string)

func (*Transactional) Before

func (t *Transactional) Before(point *aop.JoinPoint, methodLocation string) bool

func (*Transactional) Finally

func (t *Transactional) Finally(point *aop.JoinPoint, methodLocation string)

func (*Transactional) IsMatch

func (t *Transactional) IsMatch(methodLocation string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL