Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for fieldsType (0.07 sec)

  1. callbacks/associations.go

    						objs      = make([]reflect.Value, 0, rValLen)
    						fieldType = rel.Field.FieldType
    						isPtr     = fieldType.Kind() == reflect.Ptr
    					)
    
    					if !isPtr {
    						fieldType = reflect.PtrTo(fieldType)
    					}
    
    					elems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    					distinctElems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    					identityMap := map[string]bool{}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. schema/field.go

    				return
    			} else if reflectValType.ConvertibleTo(field.FieldType) {
    				field.ReflectValueOf(ctx, value).Set(reflectV.Convert(field.FieldType))
    				return
    			} else if field.FieldType.Kind() == reflect.Ptr {
    				fieldValue := field.ReflectValueOf(ctx, value)
    				fieldType := field.FieldType.Elem()
    
    				if reflectValType.AssignableTo(fieldType) {
    					if !fieldValue.IsValid() {
    						fieldValue = reflect.New(fieldType)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. association.go

    						association.Error = rel.Field.Set(association.DB.Statement.Context, reflectValue.Index(i), reflect.Zero(rel.Field.FieldType).Interface())
    					}
    				case reflect.Struct:
    					association.Error = rel.Field.Set(association.DB.Statement.Context, reflectValue, reflect.Zero(rel.Field.FieldType).Interface())
    				}
    
    				for _, ref := range rel.References {
    					updateMap[ref.ForeignKey.DBName] = nil
    				}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

            private boolean isQualifiedForInterpolation(Field field, Class<?> fieldType) {
                if (!PRIMITIVE_BY_CLASS.containsKey(fieldType)) {
                    PRIMITIVE_BY_CLASS.put(fieldType, fieldType.isPrimitive());
                }
    
                if (PRIMITIVE_BY_CLASS.get(fieldType)) {
                    return false;
                }
    
                //            if ( fieldType.isPrimitive() )
                //            {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    internal fun <T> readFieldOrNull(
      instance: Any,
      fieldType: Class<T>,
      fieldName: String,
    ): T? {
      var c: Class<*> = instance.javaClass
      while (c != Any::class.java) {
        try {
          val field = c.getDeclaredField(fieldName)
          field.isAccessible = true
          val value = field.get(instance)
          return if (!fieldType.isInstance(value)) null else fieldType.cast(value)
        } catch (_: NoSuchFieldException) {
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThat(new TypeToken<List<? extends Iterable<?>>>() {}.isSupertypeOf(fieldType)).isFalse();
      }
    
      public void testWildcardCaptured_typeVariableDeclaresTypeBound_wildcardAddsNewUpperBound()
          throws Exception {
        TypeToken<Counter<? extends Iterable<?>>> type =
            new TypeToken<Counter<? extends Iterable<?>>>() {};
        TypeToken<?> fieldType =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  7. schema/serializer.go

    type JSONSerializer struct{}
    
    // Scan implements serializer interface
    func (JSONSerializer) Scan(ctx context.Context, field *Field, dst reflect.Value, dbValue interface{}) (err error) {
    	fieldValue := reflect.New(field.FieldType)
    
    	if dbValue != nil {
    		var bytes []byte
    		switch v := dbValue.(type) {
    		case []byte:
    			bytes = v
    		case string:
    			bytes = []byte(v)
    		default:
    			bytes, err = json.Marshal(v)
    			if err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 08:45:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. callbacks/preload.go

    			tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue, reflect.MakeSlice(rel.Field.IndirectFieldType, 0, 10).Interface()))
    		default:
    			tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue, reflect.New(rel.Field.FieldType).Interface()))
    		}
    	case reflect.Slice, reflect.Array:
    		for i := 0; i < reflectValue.Len(); i++ {
    			switch rel.Type {
    			case schema.HasMany, schema.Many2Many:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThat(new TypeToken<List<? extends Iterable<?>>>() {}.isSupertypeOf(fieldType)).isFalse();
      }
    
      public void testWildcardCaptured_typeVariableDeclaresTypeBound_wildcardAddsNewUpperBound()
          throws Exception {
        TypeToken<Counter<? extends Iterable<?>>> type =
            new TypeToken<Counter<? extends Iterable<?>>>() {};
        TypeToken<?> fieldType =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  10. scan.go

    	if db.Statement.Schema != nil {
    		for idx, name := range columns {
    			if field := db.Statement.Schema.LookUpField(name); field != nil {
    				values[idx] = reflect.New(reflect.PtrTo(field.FieldType)).Interface()
    				continue
    			}
    			values[idx] = new(interface{})
    		}
    	} else if len(columnTypes) > 0 {
    		for idx, columnType := range columnTypes {
    			if columnType.ScanType() != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top