Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for getInstance (0.11 sec)

  1. finisher_api.go

    		var rowsAffected int64
    		tx = db.getInstance()
    
    		// the reflection length judgment of the optimized value
    		reflectLen := reflectValue.Len()
    
    		callFc := func(tx *DB) error {
    			for i := 0; i < reflectLen; i += batchSize {
    				ends := i + batchSize
    				if ends > reflectLen {
    					ends = reflectLen
    				}
    
    				subtx := tx.getInstance()
    				subtx.Statement.Dest = reflectValue.Slice(i, ends).Interface()
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. chainable_api.go

    //    db.Unscoped().Find(&users)
    //    // Retrieves all users, including deleted ones.
    func (db *DB) Unscoped() (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.Unscoped = true
    	return
    }
    
    func (db *DB) Raw(sql string, values ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.SQL = strings.Builder{}
    
    	if strings.Contains(sql, "@") {
    		clause.NamedExpr{SQL: sql, Vars: values}.Build(tx.Statement)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

                        } catch (DIException e) {
                            return Optional.empty();
                        }
                    }
    
                    @Override
                    public <T> Optional<T> lookupOptional(Class<T> type, String name) {
                        try {
                            return Optional.of(injector.getInstance(Key.of(type, name)));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        } catch (IllegalStateException expected) {
        } finally {
          Providers.setProviderList(providers);
        }
      }
    
      public void testMultipleUpdates() throws Exception {
        Mac mac = Mac.getInstance("HmacSHA1");
        mac.init(SHA1_KEY);
        mac.update("hello".getBytes(UTF_8));
        mac.update("world".getBytes(UTF_8));
    
        assertEquals(
            HashCode.fromBytes(mac.doFinal()),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. gorm.go

    	}
    
    	if config.Initialized {
    		tx = tx.getInstance()
    	}
    
    	return tx
    }
    
    // WithContext change current instance db's context to ctx
    func (db *DB) WithContext(ctx context.Context) *DB {
    	return db.Session(&Session{Context: ctx})
    }
    
    // Debug start debug mode
    func (db *DB) Debug() (tx *DB) {
    	tx = db.getInstance()
    	return tx.Session(&Session{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 09 11:29:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(Class<T> type) {
        return trustedGet(TypeToken.of(type));
      }
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(TypeToken<T> type) {
        return trustedGet(type.rejectTypeVariables());
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                        }
                    }
                    //noinspection unchecked
                    return (Q) map(map, this::getInstance);
                };
            }
    
            private <Q> Q getInstance(Binding<Q> binding) {
                return compile(binding).get();
            }
    
            private static Comparator<Binding<?>> getBindingComparator() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java

                checkForUpdates = true;
            } else if (UPDATE_POLICY_DAILY.equals(updatePolicy)) {
                // Get local midnight boundary
                Calendar cal = Calendar.getInstance();
    
                cal.set(Calendar.HOUR_OF_DAY, 0);
                cal.set(Calendar.MINUTE, 0);
                cal.set(Calendar.SECOND, 0);
                cal.set(Calendar.MILLISECOND, 0);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/exec/Crawler.java

                        + ", hotThread=" + hotThread + "]";
            }
    
        }
    
        static void initializeProbes() {
            // Force probes to be loaded
            ProcessProbe.getInstance();
            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        public static void main(final String[] args) {
            final Options options = new Options();
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(Class<T> type) {
        return trustedGet(TypeToken.of(type));
      }
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(TypeToken<T> type) {
        return trustedGet(type.rejectTypeVariables());
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top