com.force.sdk.jpa.table
Class ForceMetaData

java.lang.Object
  extended by com.force.sdk.jpa.schema.ForceAsyncResultProcessor
      extended by com.force.sdk.jpa.table.ForceMetaData
Direct Known Subclasses:
ForceColumnMetaData, ForceTableMetaData

public abstract class ForceMetaData
extends ForceAsyncResultProcessor

Base class for the metadata of objects and fields that will be registered and optionally passed to the schema writer.

Author:
Fiaz Hossain

Field Summary
protected  org.datanucleus.metadata.AbstractClassMetaData cmd
           
protected  com.sforce.soap.metadata.CustomObject customObject
           
protected  boolean isReadOnlyFields
           
protected  boolean isReadOnlyTable
           
protected  TableImpl tableImpl
           
 
Fields inherited from class com.force.sdk.jpa.schema.ForceAsyncResultProcessor
LOGGER
 
Constructor Summary
ForceMetaData(org.datanucleus.metadata.AbstractClassMetaData cmd, TableImpl tableImpl)
          Create a metadata object so we can cache information about an entity.
 
Method Summary
protected  void createCustomObjectStub()
          Only fill out the basic info for this customObject.
protected  boolean getBooleanFromForceAnnotation(Map<String,String> extensions, String key)
           
protected  Integer getIntegerFromForceAnnotation(Map<String,String> extensions, String key)
           
 boolean getIsReadOnlyTable()
           
 TableImpl getTableImpl()
           
protected  com.sforce.soap.metadata.TreatBlanksAs getTreatBlanksAsFromForceAnnotation(Map<String,String> extensions)
           
protected  String removeCustomThingSuffix(String name)
          Remove the '__c' notation if it exists.
 
Methods inherited from class com.force.sdk.jpa.schema.ForceAsyncResultProcessor
waitForAsyncResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customObject

protected com.sforce.soap.metadata.CustomObject customObject

tableImpl

protected TableImpl tableImpl

cmd

protected final org.datanucleus.metadata.AbstractClassMetaData cmd

isReadOnlyTable

protected final boolean isReadOnlyTable

isReadOnlyFields

protected final boolean isReadOnlyFields
Constructor Detail

ForceMetaData

public ForceMetaData(org.datanucleus.metadata.AbstractClassMetaData cmd,
                     TableImpl tableImpl)
Create a metadata object so we can cache information about an entity.

Parameters:
cmd - the DataNucleus metadata object
tableImpl - our own Table object
Method Detail

removeCustomThingSuffix

protected String removeCustomThingSuffix(String name)
Remove the '__c' notation if it exists.

Parameters:
name - an object name
Returns:
the object name without '__c'

getTreatBlanksAsFromForceAnnotation

protected com.sforce.soap.metadata.TreatBlanksAs getTreatBlanksAsFromForceAnnotation(Map<String,String> extensions)

getIntegerFromForceAnnotation

protected Integer getIntegerFromForceAnnotation(Map<String,String> extensions,
                                                String key)

getBooleanFromForceAnnotation

protected boolean getBooleanFromForceAnnotation(Map<String,String> extensions,
                                                String key)

createCustomObjectStub

protected void createCustomObjectStub()
Only fill out the basic info for this customObject. If we're just adding fields to an existing object (standard or custom) right now all we want to set is the name. I assume there will be more things to set later.


getIsReadOnlyTable

public boolean getIsReadOnlyTable()

getTableImpl

public TableImpl getTableImpl()


Copyright © 2011. All Rights Reserved.