本文整理汇总了Java中com.microsoft.azure.storage.table.TableServiceEntity类的典型用法代码示例。如果您正苦于以下问题:Java TableServiceEntity类的具体用法?Java TableServiceEntity怎么用?Java TableServiceEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TableServiceEntity类属于com.microsoft.azure.storage.table包,在下文中一共展示了TableServiceEntity类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testCanInsert
import com.microsoft.azure.storage.table.TableServiceEntity; //导入依赖的package包/类
@Test
public void testCanInsert() throws Exception {
final DependencyEntity entity = DependencyEntity.build(dependencyId, testTimeStamp, user, new TenacityConfiguration(), serviceId);
final boolean success = tableClient.insert(entity);
assertTrue(success);
final Optional<TableServiceEntity> retrieve = tableClient.retrieve(DependencyEntity.build(dependencyId, testTimeStamp, user, new TenacityConfiguration(), serviceId));
assertTrue(retrieve.isPresent());
assertThat(retrieve.get()).isEqualTo(entity);
}
示例2: getEntityClass
import com.microsoft.azure.storage.table.TableServiceEntity; //导入依赖的package包/类
@Override
public Class<? extends TableServiceEntity> getEntityClass() {
return ServiceEntity.class;
}
示例3: getEntityClass
import com.microsoft.azure.storage.table.TableServiceEntity; //导入依赖的package包/类
@Override
public Class<? extends TableServiceEntity> getEntityClass() {
return DependencyEntity.class;
}
示例4: getEntityClass
import com.microsoft.azure.storage.table.TableServiceEntity; //导入依赖的package包/类
Class<? extends TableServiceEntity> getEntityClass();