package org.datanucleus.api.json;
import java.util.Map;
import java.util.Set;
import org.datanucleus.ClassLoaderResolver;
import org.datanucleus.FetchPlan;
import org.datanucleus.NucleusContext;
import org.datanucleus.Transaction;
import org.datanucleus.TransactionImpl;
import org.datanucleus.api.ApiAdapter;
import org.datanucleus.metadata.AbstractClassMetaData;
import org.datanucleus.metadata.AbstractMemberMetaData;
import org.datanucleus.metadata.MetaDataManager;
import org.datanucleus.state.FetchPlanState;
import org.datanucleus.state.RelationshipManagerImpl;
import org.datanucleus.state.lock.LockManager;
import org.datanucleus.store.ExecutionContext;
import org.datanucleus.store.Extent;
import org.datanucleus.store.FieldValues;
import org.datanucleus.store.ObjectProvider;
import org.datanucleus.store.StoreManager;
import org.datanucleus.store.Type;
import org.datanucleus.store.query.Query;
import org.datanucleus.store.types.TypeManager;
public class JsonAPIExecutionContext implements ExecutionContext
{
NucleusContext ctx;
Transaction tx;
JsonAPIExecutionContext(NucleusContext ctx)
{
this.ctx = ctx;
this.tx = new TransactionImpl(this);
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#close()
*/
public void close()
{
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#setProperty(java.lang.String, java.lang.Object)
*/
public void setProperty(String name, Object value)
{
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getBooleanProperty(java.lang.String)
*/
public Boolean getBooleanProperty(String name)
{
// TODO Auto-generated method stub
return false;
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getIntProperty(java.lang.String)
*/
public Integer getIntProperty(String name)
{
// TODO Auto-generated method stub
return null;
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getProperty(java.lang.String)
*/
public Object getProperty(String name)
{
// TODO Auto-generated method stub
return null;
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getProperties()
*/
public Map<String, Object> getProperties()
{
// TODO Auto-generated method stub
return null;
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getSupportedProperties()
*/
public Set<String> getSupportedProperties()
{
// TODO Auto-generated method stub
return null;
}
public Object findObjectUsingAID(Type pcClass, FieldValues fv, boolean ignoreCache, boolean checkInheritance)
{
// TODO Auto-generated method stub
return null;
}
public MetaDataManager getMetaDataManager()
{
return ctx.getMetaDataManager();
}
public LockManager getLockManager()
{
return new JsonAPILockManager();
}
public Transaction getTransaction()
{
return tx;
}
public ClassLoaderResolver getClassLoaderResolver()
{
return ctx.getClassLoaderResolver(JsonAPI.class.getClassLoader());
}
public TypeManager getTypeManager()
{
// TODO Auto-generated method stub
return ctx.getTypeManager();
}
public ObjectProvider findObjectProvider(Object object)
{
// TODO Auto-generated method stub
return null;
}
public ObjectProvider findObjectProvider(Object object, boolean persist)
{
// TODO Auto-generated method stub
return null;
}
public ApiAdapter getApiAdapter()
{
return ctx.getApiAdapter();
}
public ObjectProvider findObjectProviderForEmbedded(Object value, ObjectProvider owner, AbstractMemberMetaData mmd)
{
// TODO Auto-generated method stub
return null;
}
public ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd)
{
// TODO Auto-generated method stub
return null;
}
public ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd, Type effectiveType)
{
// TODO Auto-generated method stub
return null;
}
public ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd, AbstractClassMetaData effectiveTypeCmd)
{
// TODO Auto-generated method stub
return null;
}
public ObjectProvider newObjectProviderForEmbedded(AbstractMemberMetaData ownerMmd, AbstractClassMetaData cmd, ObjectProvider ownerOP,
int ownerFieldNumber)
{
// TODO Auto-generated method stub
return null;
}
public void deleteObjectInternal(Object pc)
{
// TODO Auto-generated method stub
}
public Object persistObjectInternal(Object pc, ObjectProvider ownerSM, int ownerFieldNum, int objectType)
{
// TODO Auto-generated method stub
return null;
}
public boolean isClosed()
{
// TODO Auto-generated method stub
return false;
}
public FetchPlan getFetchPlan()
{
// TODO Auto-generated method stub
return null;
}
public Query newQuery()
{
// TODO Auto-generated method stub
return null;
}
public NucleusContext getNucleusContext()
{
return ctx;
}
public StoreManager getStoreManager()
{
return ctx.getStoreManager();
}
public ObjectProvider newObjectProvider(Object id, Object obj)
{
// TODO Auto-generated method stub
return null;
}
public Object findObject(Object idForObject, boolean b, boolean c, String name)
{
// TODO Auto-generated method stub
return null;
}
public void flushInternal(boolean b)
{
// TODO Auto-generated method stub
}
public void detachObject(Object val, FetchPlanState state)
{
// TODO Auto-generated method stub
}
public void deleteObjects(Object[] array)
{
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getObjectProviderOfOwnerForAttachingObject(java.lang.Object)
*/
@Override
public ObjectProvider getObjectProviderOfOwnerForAttachingObject(Object pc)
{
// TODO Auto-generated method stub
return null;
}
public Object attachObjectCopy(ObjectProvider ownerOP, Object value, boolean sco)
{
// TODO Auto-generated method stub
return null;
}
public Object detachObjectCopy(Object val, FetchPlanState state)
{
// TODO Auto-generated method stub
return null;
}
public void refreshObject(Object val)
{
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#enlistInTransaction(org.datanucleus.store.ObjectProvider)
*/
public void enlistInTransaction(ObjectProvider sm)
{
// TODO Auto-generated method stub
}
public void evictFromTransaction(ObjectProvider objSM)
{
// TODO Auto-generated method stub
}
public boolean isFlushing()
{
// TODO Auto-generated method stub
return false;
}
public boolean getIgnoreCache()
{
// TODO Auto-generated method stub
return false;
}
public Integer getDatastoreReadTimeoutMillis()
{
// TODO Auto-generated method stub
return null;
}
public Integer getDatastoreWriteTimeoutMillis()
{
// TODO Auto-generated method stub
return null;
}
public boolean isDelayDatastoreOperationsEnabled()
{
// TODO Auto-generated method stub
return false;
}
public void markDirty(ObjectProvider otherSM, boolean b)
{
// TODO Auto-generated method stub
}
public Extent getExtent(Class candidateClass, boolean subclasses)
{
// TODO Auto-generated method stub
return null;
}
public void attachObject(ObjectProvider ownerOP, Object object, boolean elementsWithoutIdentity)
{
// TODO Auto-generated method stub
}
public void putObjectIntoCache(ObjectProvider op)
{
// TODO Auto-generated method stub
}
public Object getObjectFromCache(Object idForObject)
{
// TODO Auto-generated method stub
return null;
}
public void removeObjectFromCache(Object idForObject)
{
// TODO Auto-generated method stub
}
public void removeObjectFromLevel2Cache(Object id)
{
// TODO Auto-generated method stub
}
public boolean hasIdentityInCache(Object id)
{
// TODO Auto-generated method stub
return false;
}
public Object findObject(Object oid, FieldValues fieldValues2, Class pcClass, boolean ignoreCache)
{
// TODO Auto-generated method stub
return null;
}
public boolean getSerializeReadForClass(String fullClassName)
{
// TODO Auto-generated method stub
return false;
}
public boolean hasPersistenceInformationForClass(Class candidateClass)
{
// TODO Auto-generated method stub
return false;
}
public void makeObjectTransient(Object pc, FetchPlanState state)
{
// TODO Auto-generated method stub
}
public boolean isInserting(Object value)
{
// TODO Auto-generated method stub
return false;
}
public Object getAttachedObjectForId(Object idForObject)
{
// TODO Auto-generated method stub
return null;
}
public Object persistObjectInternal(Object object, FieldValues fieldValues, int pc)
{
// TODO Auto-generated method stub
return null;
}
public Object newObjectId(String className, Object object)
{
// TODO Auto-generated method stub
return null;
}
public Object newObjectId(Class clazz, Object object)
{
// TODO Auto-generated method stub
return null;
}
public void deleteObject(Object obj)
{
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getManageRelations()
*/
public boolean getManageRelations()
{
// TODO Auto-generated method stub
return false;
}
/* (non-Javadoc)
* @see org.datanucleus.store.ExecutionContext#getRelationshipManagerForObjectProvider(org.datanucleus.store.ObjectProvider)
*/
public RelationshipManagerImpl getRelationshipManager(ObjectProvider op)
{
// TODO Auto-generated method stub
return null;
}
}