Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for has_one (0.11 sec)

  1. association.go

    	}
    	return association.Error
    }
    
    func (association *Association) Append(values ...interface{}) error {
    	if association.Error == nil {
    		switch association.Relationship.Type {
    		case schema.HasOne, schema.BelongsTo:
    			if len(values) > 0 {
    				association.Error = association.Replace(values...)
    			}
    		default:
    			association.saveAssociation( /*clear*/ false, values...)
    		}
    	}
    
    	return association.Error
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

        }
    
        @Override
        void reset() {
            super.reset();
            isPrimary = hasMore = true;
        }
    
        void reset(final int key, final String lastName) {
            reset();
        }
    
        @Override
        public boolean hasMoreElements() {
            return hasMore;
        }
    
        @Override
        public Object nextElement() {
            if (isPrimary) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public String[] getGroups() {
            return user.getGroupNames();
        }
    
        public boolean isEditable() {
            return user.isEditable();
        }
    
        public boolean hasRole(final String role) {
            return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role)));
        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. cmd/callhome.go

    				DeploymentID: globalDeploymentID(),
    			},
    		},
    	}
    
    	go fetchHealthInfo(healthCtx, objectAPI, &query, healthInfoCh, healthInfo)
    
    	for {
    		select {
    		case hi, hasMore := <-healthInfoCh:
    			if !hasMore {
    				auditOptions := AuditLogOptions{Event: "callhome:diagnostics"}
    				// Received all data. Send to SUBNET and return
    				err := sendHealthInfo(ctx, healthInfo)
    				if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            response.setTestErrorCode(1); // Non-zero errorCode indicates error
            assertFalse(response.hasMoreElements());
    
            // Reset error and test hasMore flag
            response.setTestErrorCode(0);
            response.hasMore = false;
            assertFalse(response.hasMoreElements());
        }
    
        @Test
        @DisplayName("Test reset functionality")
        void testReset() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

        static final int ONE_WAY_TRANSACTION = 0x02;
    
        static final int PADDING_SIZE = 4;
    
        private final int tflags = 0x00;
        private int pad1 = 0;
        private int pad2 = 0;
        private boolean hasMore = true;
        private boolean isPrimary = true;
        private int bufParameterOffset;
        private int bufDataOffset;
    
        static final int TRANSACTION_BUF_SIZE = 0xFFFF;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. callbacks/delete.go

    			if !v {
    				continue
    			}
    
    			rel, ok := db.Statement.Schema.Relationships.Relations[column]
    			if !ok {
    				continue
    			}
    
    			switch rel.Type {
    			case schema.HasOne, schema.HasMany:
    				queryConds := rel.ToQueryConditions(db.Statement.Context, db.Statement.ReflectValue)
    				modelValue := reflect.New(rel.FieldSchema.ModelType).Interface()
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/MediaType.java

          this.input = input;
        }
    
        @CanIgnoreReturnValue
        String consumeTokenIfPresent(CharMatcher matcher) {
          checkState(hasMore());
          int startPosition = position;
          position = matcher.negate().indexIn(input, startPosition);
          return hasMore() ? input.substring(startPosition, position) : input.substring(startPosition);
        }
    
        String consumeToken(CharMatcher matcher) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

        void testHasMoreElements() {
            // Initially should have more elements if error code is 0
            assertTrue(response.hasMoreElements());
    
            // After calling nextElement once, isPrimary becomes false but hasMore is still true initially
            response.nextElement();
    
            // Can still have more elements
            assertTrue(response.hasMoreElements());
        }
    
        @Test
        @DisplayName("Test reset method")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/MediaType.java

          this.input = input;
        }
    
        @CanIgnoreReturnValue
        String consumeTokenIfPresent(CharMatcher matcher) {
          checkState(hasMore());
          int startPosition = position;
          position = matcher.negate().indexIn(input, startPosition);
          return hasMore() ? input.substring(startPosition, position) : input.substring(startPosition);
        }
    
        String consumeToken(CharMatcher matcher) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
Back to top