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
}
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
Click to show internal directories.
Click to hide internal directories.