Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 378 for Callback (0.06 sec)

  1. tests/connpool_test.go

    	}
    
    	if sqlTx, ok := tx.Statement.ConnPool.(gorm.TxCommitter); !ok || sqlTx == nil {
    		t.Fatalf("Should return the underlying sql.Tx")
    	}
    
    	tx.Rollback()
    
    	if err = db.First(&User{}, "name = ?", "transaction").Error; err == nil {
    		t.Fatalf("Should not find record after rollback, but got %v", err)
    	}
    
    	txDB := db.Where("fake_name = ?", "fake_name")
    	tx2 := txDB.Session(&gorm.Session{NewDB: true}).Begin()
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. callbacks/interfaces.go

    package callbacks
    
    import "gorm.io/gorm"
    
    type BeforeCreateInterface interface {
    	BeforeCreate(*gorm.DB) error
    }
    
    type AfterCreateInterface interface {
    	AfterCreate(*gorm.DB) error
    }
    
    type BeforeUpdateInterface interface {
    	BeforeUpdate(*gorm.DB) error
    }
    
    type AfterUpdateInterface interface {
    	AfterUpdate(*gorm.DB) error
    }
    
    type BeforeSaveInterface interface {
    	BeforeSave(*gorm.DB) error
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 27 07:03:57 UTC 2020
    - 667 bytes
    - Viewed (0)
  3. interfaces.go

    type ConnPoolBeginner interface {
    	BeginTx(ctx context.Context, opts *sql.TxOptions) (ConnPool, error)
    }
    
    // TxCommitter tx committer
    type TxCommitter interface {
    	Commit() error
    	Rollback() error
    }
    
    // Tx sql.Tx interface
    type Tx interface {
    	ConnPool
    	TxCommitter
    	StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt
    }
    
    // Valuer gorm valuer interface
    type Valuer interface {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Aug 19 13:33:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            }
        }
    
        @Test
        void testConstructor_FallbackToConnect2() throws IOException {
            // Test case: Constructor with DCERPC_FAULT_OP_RNG_ERROR, should fallback to MsrpcSamrConnect2
            String server = "testServer";
            int access = 123;
    
            // Simulate DCERPC_FAULT_OP_RNG_ERROR for MsrpcSamrConnect4
            doThrow(new DcerpcException("Operation range error") {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/entity/DataStoreParams.java

            if (value != null) {
                return value.toString();
            }
            return null;
        }
    
        /**
         * Retrieves a parameter value as a String with a default value fallback.
         *
         * @param key the parameter key to look up
         * @param defaultValue the default value to return if key is not found or value is null
         * @return the parameter value as a String, or defaultValue if not found
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

                // Positive values not in DOS_ERROR_CODES map to NT_STATUS_UNSUCCESSFUL
                expected = NtStatus.NT_STATUS_UNSUCCESSFUL;
            }
            assertEquals(expected, ex.getNtStatus(), "Status should match mapping or fallback");
        }
    
        /**
         * Verify that root causes are stored and returned correctly.
         */
        @Test
        @DisplayName("Root cause propagation")
        void testRootCausePropagation() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. prepare_stmt.go

    	if tx.Tx != nil && !reflect.ValueOf(tx.Tx).IsNil() {
    		return tx.Tx.Commit()
    	}
    	return ErrInvalidTransaction
    }
    
    func (tx *PreparedStmtTX) Rollback() error {
    	if tx.Tx != nil && !reflect.ValueOf(tx.Tx).IsNil() {
    		return tx.Tx.Rollback()
    	}
    	return ErrInvalidTransaction
    }
    
    func (tx *PreparedStmtTX) ExecContext(ctx context.Context, query string, args ...interface{}) (result sql.Result, err error) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. src/main/assemblies/files/service.bat

    	goto foundJVM
    )
    
    rem Check 'server' JRE (JRE installed on Windows Server)
    if exist "%JAVA_HOME%"\bin\server\jvm.dll (
    	set JVM_DLL=\bin\server\jvm.dll
    	goto foundJVM
    )
    
    rem Fallback to 'client' JRE
    if exist "%JAVA_HOME%"\bin\client\jvm.dll (
    	set JVM_DLL=\bin\client\jvm.dll
    	echo Warning: JAVA_HOME points to a JRE and not JDK installation; a client (not a server^) JVM will be used...
    ) else (
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            }
        }
    
        public void test_getDocumentExpires() {
            // Test with null config
            assertNull(crawlingInfoHelper.getDocumentExpires(null));
    
            // Test with documentExpires field set (fallback behavior)
            final long currentTime = 1704067200000L; // 2024-01-01 00:00:00 UTC
            ComponentUtil.register(new SystemHelper() {
                @Override
                public long getCurrentTimeAsLong() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  10. callbacks/helper.go

    package callbacks
    
    import (
    	"reflect"
    	"sort"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    )
    
    // ConvertMapToValuesForCreate convert map to values
    func ConvertMapToValuesForCreate(stmt *gorm.Statement, mapValue map[string]interface{}) (values clause.Values) {
    	values.Columns = make([]clause.Column, 0, len(mapValue))
    	selectColumns, restricted := stmt.SelectAndOmitColumns(true, false)
    
    	keys := make([]string, 0, len(mapValue))
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Apr 14 12:32:57 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top