@ Override public void put ( Object entity ) { ResourceManager < Transaction > manager = new AppEngineResourceManager ( datastore , datastore . beginTransaction ( ) , transaction ) ; manager . put ( entity ) ; Log log = new Log ( transaction . logs ( ) . size ( ) + 1 , Log . Operation . PUT , entity ) ; log . state ( State . UNCOMMITTED ) ; transaction . logs ( ) . add ( log ) ; managers . put ( keyValue ( entity ) , manager ) ; logger . fine ( "Transaction [" + transaction . id ( ) + "]: Entity [" + entity + "] has been put" ) ; }
Puts the specified entity instance into the datastore newly within the current transaction .