Examples of objectClass()


Examples of com.db4o.config.Configuration.objectClass()

    globalConfig.flushFileBuffers(false);
    globalConfig.callConstructors(true);
    globalConfig.exceptionsOnNotStorable(true);
    globalConfig.objectClass(AbstractEntity.class).objectField("fId").indexed(true); //$NON-NLS-1$
    globalConfig.objectClass(AbstractEntity.class).objectField("fId").cascadeOnActivate(true); //$NON-NLS-1$
    globalConfig.objectClass(BookMark.class).objectField("fFeedId").indexed(true); //$NON-NLS-1$
    globalConfig.objectClass(ConditionalGet.class).objectField("fLink").indexed(true); //$NON-NLS-1$
//    globalConfig.objectClass(IPerson.class).cascadeOnUpdate(true);
//    globalConfig.objectClass(IImage.class).cascadeOnUpdate(true);
//    globalConfig.objectClass(ILabel.class).cascadeOnUpdate(true);
//    globalConfig.objectClass(ICategory.class).cascadeOnUpdate(true);
View Full Code Here

Examples of org.dcm4che3.conf.api.generic.ConfigClass.objectClass()

        Attributes attrs = new BasicAttributes(true);
        ConfigField fieldAnno = field.getAnnotation(ConfigField.class);
        ConfigClass classAnno = (ConfigClass) clazz.getAnnotation(ConfigClass.class);

        if (classAnno != null) {
            attrs.put("objectClass", classAnno.objectClass());
        } else if (!fieldAnno.mapElementObjectClass().equals("")) {
            attrs.put("objectClass", fieldAnno.mapElementObjectClass());
        } else
            throw new ConfigurationException("objectClass for collection element cannot be resolved, key (" + keyName + " - " + keyValue
                    + ")");
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.