Package org.lilyproject.repository.api

Examples of org.lilyproject.repository.api.FieldType.clone()


        }
        FieldType fieldType = fieldTypeIdCacheBucket.get(id);
        if (fieldType == null) {
            throw new FieldTypeNotFoundException(id);
        }
        return fieldType.clone();
    }

    @Override
    public FieldType getFieldType(QName name) throws FieldTypeNotFoundException, InterruptedException {
        ArgumentValidator.notNull(name, "name");
View Full Code Here


        ArgumentValidator.notNull(name, "name");
        FieldType fieldType = getNameCache().get(name);
        if (fieldType == null) {
            throw new FieldTypeNotFoundException(name);
        }
        return fieldType.clone();
    }

    public FieldType getFieldTypeByNameReturnNull(QName name) throws InterruptedException {
        ArgumentValidator.notNull(name, "name");
        FieldType fieldType = getNameCache().get(name);
View Full Code Here

    }

    public FieldType getFieldTypeByNameReturnNull(QName name) throws InterruptedException {
        ArgumentValidator.notNull(name, "name");
        FieldType fieldType = getNameCache().get(name);
        return fieldType != null ? fieldType.clone() : null;
    }

    public boolean fieldTypeExists(QName name) throws InterruptedException {
        return getNameCache().containsKey(name);
    }
View Full Code Here

    @Test
    public void testClone() {
        ValueType valueType = control.createMock(ValueType.class);
        control.replay();
        FieldType fieldType = new FieldTypeImpl(new SchemaIdImpl(UUID.randomUUID()), valueType, new QName("DS9", "name"), Scope.VERSIONED);
        assertEquals(fieldType, fieldType.clone());
        assertEquals(fieldType, fieldType.clone());
        control.verify();
    }
}
View Full Code Here

    public void testClone() {
        ValueType valueType = control.createMock(ValueType.class);
        control.replay();
        FieldType fieldType = new FieldTypeImpl(new SchemaIdImpl(UUID.randomUUID()), valueType, new QName("DS9", "name"), Scope.VERSIONED);
        assertEquals(fieldType, fieldType.clone());
        assertEquals(fieldType, fieldType.clone());
        control.verify();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.