Examples of virtualSchema()


Examples of com.force.sdk.jpa.annotation.CustomObject.virtualSchema()

   
    @SuppressWarnings("rawtypes")
    public void registerTable(Class<?> entityClass) {
        TableImpl tableImpl;
        CustomObject customObjectAnnotation = entityClass.getAnnotation(CustomObject.class);
        if (customObjectAnnotation != null && customObjectAnnotation.virtualSchema()) {
            tableImpl = MockPersistenceUtils.constructVirtualTableImpl(entityClass);
        } else {
            tableImpl = MockPersistenceUtils.constructTableImpl(entityClass);
        }
       
View Full Code Here

Examples of com.force.sdk.jpa.annotation.CustomObject.virtualSchema()

                                        namespace, tableName, columnList, forceApiColumns, externalId);
    }
   
    public static TableImpl constructVirtualTableImpl(Class<?> entityClass) {
        CustomObject customObjectAnnotation = entityClass.getAnnotation(CustomObject.class);
        if (customObjectAnnotation == null || !customObjectAnnotation.virtualSchema()) {
            throw new IllegalArgumentException("Trying to construct virtual schema for the class " + entityClass.getName()
                    + " but this class is not annotated as virtual schema.");
        }
       
        TableName tableName = newInstance(TableName.class, new Class[] {String.class, String.class, Boolean.TYPE},
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.