Package com.force.sdk.jpa.table

Examples of com.force.sdk.jpa.table.TableName


            Iterator<AbstractClassMetaData> iter = classes.iterator();
            while (iter.hasNext()) {
                AbstractClassMetaData cmd = iter.next();
                // Similar to PersistenceUtils.createObjectSchema
                if (PersistenceUtils.hasNoSchema(cmd)) continue;
                TableName tableName = TableName.createTableName(mconn.getNamespace(), cmd);
                if (cmd.getSuperAbstractClassMetaData() == null) {
                   sObjectNames.add(tableName.getForceApiName());
                }
            }
            // Setup the initialization cache
            sObjectResults = new HashMap<String, DescribeSObjectResult>(sObjectNames.size());
View Full Code Here


     * @return the created TableImpl
     */
    public TableImpl addTable(AbstractClassMetaData acmd, ForceManagedConnection conn) {
        String entityName = PersistenceUtils.getEntityName(acmd).toLowerCase();
        try {
            TableName tableName = TableName.createTableName(conn.getNamespace(), acmd);
            TableImpl tableImpl = tables.get(tableName.getForceApiName().toLowerCase());
            if (tableImpl == null) {
                tableImpl = new TableImpl(conn.getNamespace(), tableName, sObjectResults.get(tableName.getForceApiName()), conn);
                tables.put(tableName.getForceApiName().toLowerCase(), tableImpl);
            }
            entityTables.put(entityName, tableImpl);
            return tableImpl;
        } catch (ConnectionException e) {
            throw new NucleusException("Could not initialize table: " + entityName, e);
View Full Code Here

     * @param acmd the class metadata of the virtual table to register with the cache
     * @return the created TableImpl
     */
    public TableImpl addVirtualTable(AbstractClassMetaData acmd) {
        String entityName = PersistenceUtils.getEntityName(acmd).toLowerCase();
        TableName tableName = TableName.createTableName("", acmd);
        TableImpl tableImpl = tables.get(tableName.getForceApiName().toLowerCase());
        if (tableImpl == null) {
            tableImpl = new TableImpl(tableName, acmd);
            tables.put(tableName.getForceApiName().toLowerCase(), tableImpl);
        }
        entityTables.put(entityName, tableImpl);
        return tableImpl;
    }
View Full Code Here

TOP

Related Classes of com.force.sdk.jpa.table.TableName

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.