com.force.sdk.jpa.table
Class ForceMetaData
java.lang.Object
com.force.sdk.jpa.schema.ForceAsyncResultProcessor
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
Constructor Summary |
ForceMetaData(org.datanucleus.metadata.AbstractClassMetaData cmd,
TableImpl tableImpl)
Create a metadata object so we can cache information about an entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 objecttableImpl
- our own Table object
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.