Package com.force.sdk.jpa.annotation

Examples of com.force.sdk.jpa.annotation.CustomObject


    }
   
    @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


                           new Class[] {String.class, TableName.class, List.class, Map.class, ColumnImpl.class},
                                        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

Related Classes of com.force.sdk.jpa.annotation.CustomObject

Copyright © 2018 www.massapicom. 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.