本文整理汇总了Java中javax.jdo.annotations.NotPersistent类的典型用法代码示例。如果您正苦于以下问题:Java NotPersistent类的具体用法?Java NotPersistent怎么用?Java NotPersistent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NotPersistent类属于javax.jdo.annotations包,在下文中一共展示了NotPersistent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getTypeValidationDtos
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public List<TypeValidationDto> getTypeValidationDtos() {
List<TypeValidationDto> dtos = new ArrayList<>();
for (TypeValidation validation : getValidations()) {
dtos.add(validation.toDto());
}
return dtos;
}
开发者ID:motech,项目名称:motech,代码行数:9,代码来源:Type.java
示例2: isRecordHistory
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isRecordHistory() {
if (tracking != null) {
return tracking.isRecordHistory();
}
return false;
}
开发者ID:motech,项目名称:motech,代码行数:8,代码来源:Entity.java
示例3: isAllowCreateEvent
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isAllowCreateEvent() {
if (tracking != null) {
return tracking.isAllowCreateEvent();
}
return true;
}
开发者ID:motech,项目名称:motech,代码行数:8,代码来源:Entity.java
示例4: isAllowUpdateEvent
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isAllowUpdateEvent() {
if (tracking != null) {
return tracking.isAllowUpdateEvent();
}
return true;
}
开发者ID:motech,项目名称:motech,代码行数:8,代码来源:Entity.java
示例5: isAllowDeleteEvent
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isAllowDeleteEvent() {
if (tracking != null) {
return tracking.isAllowDeleteEvent();
}
return true;
}
开发者ID:motech,项目名称:motech,代码行数:8,代码来源:Entity.java
示例6: supportsAnyRestOperations
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean supportsAnyRestOperations() {
if (restOptions != null && restOptions.supportsAnyOperation()) {
return true;
}
for (Lookup lookup : getLookups()) {
if (lookup.isExposedViaRest()) {
return true;
}
}
return false;
}
开发者ID:motech,项目名称:motech,代码行数:15,代码来源:Entity.java
示例7: getFieldDtos
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public List<FieldDto> getFieldDtos() {
List<FieldDto> fieldDtos = new ArrayList<>();
for (Field field : getFields()) {
fieldDtos.add(field.toDto());
}
return fieldDtos;
}
开发者ID:motech,项目名称:motech,代码行数:9,代码来源:Entity.java
示例8: isAutoGenerated
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isAutoGenerated() {
FieldMetadata autoGenerated = getMetadata(Constants.Util.AUTO_GENERATED);
if (null == autoGenerated) {
autoGenerated = getMetadata(Constants.Util.AUTO_GENERATED_EDITABLE);
}
return null != autoGenerated && Constants.Util.TRUE.equals(autoGenerated.getValue());
}
开发者ID:motech,项目名称:motech,代码行数:9,代码来源:Field.java
示例9: isVersionField
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isVersionField() {
String metadataValue = getMetadataValue(Constants.MetadataKeys.VERSION_FIELD);
if (StringUtils.isNotBlank(metadataValue)) {
return Boolean.valueOf(metadataValue);
}
return false;
}
开发者ID:motech,项目名称:motech,代码行数:10,代码来源:Field.java
示例10: getMetadataRegionDummyProperty
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
/**
* Exists just that the Wicket viewer will render an (almost) empty metadata region (on which the
* framework contributed mixin actions will be attached). The field itself can optionally be hidden
* using CSS.
*/
@NotPersistent
@Property(domainEvent = MetadataRegionDummyPropertyDomainEvent.class, notPersisted = true)
@PropertyLayout(labelPosition = LabelPosition.NONE, hidden = Where.ALL_TABLES)
@MemberOrder(name="Metadata", sequence = "1")
public String getMetadataRegionDummyProperty() {
return null;
}
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:13,代码来源:AuditEntry.java
示例11: getDocumentDate
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
/**
* Either the {@link Document#getCreatedAt()} or {@link Document#getRenderedAt()}, depending upon the
* {@link Document#getState()} of the {@link Document}. Returns <tt>null</tt> for {@link DocumentTemplate}s.
*/
@NotPersistent
@Property(
domainEvent = DocumentDateDomainEvent.class,
editing = Editing.DISABLED
)
public DateTime getDocumentDate() {
final DocumentAbstract documentAbstract = getDocument();
if(documentAbstract instanceof Document) {
final Document document = (Document) documentAbstract;
DocumentState state = document.getState();
return state.dateOf(document);
}
return null;
}
开发者ID:estatio,项目名称:estatio,代码行数:19,代码来源:Paperclip.java
示例12: getDocumentState
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
@Property(
domainEvent = DocumentStateDomainEvent.class,
editing = Editing.DISABLED
)
public DocumentState getDocumentState() {
final DocumentAbstract documentAbstract = getDocument();
if(documentAbstract instanceof Document) {
final Document document = (Document) documentAbstract;
return document.getState();
}
return null;
}
开发者ID:estatio,项目名称:estatio,代码行数:14,代码来源:Paperclip.java
示例13: getProductLine
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
/**
*
* Expose properties from wrapped OrderLine
*
*/
@NotPersistent
public ProductLine getProductLine() {
return getOrderLine().getProductLine();
}
开发者ID:Stephen-Cameron-Data-Services,项目名称:isis-agri,代码行数:11,代码来源:CompletedOrderLine.java
示例14: getAddedOn
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public Date getAddedOn() {
return getOrderLine().getAddedOn();
}
开发者ID:Stephen-Cameron-Data-Services,项目名称:isis-agri,代码行数:5,代码来源:CompletedOrderLine.java
示例15: getAddedBy
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public Person getAddedBy() {
return getOrderLine().getAddedBy();
}
开发者ID:Stephen-Cameron-Data-Services,项目名称:isis-agri,代码行数:5,代码来源:CompletedOrderLine.java
示例16: isDraft
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@Override
@NotPersistent
public boolean isDraft() {
return true;
}
开发者ID:motech,项目名称:motech,代码行数:6,代码来源:EntityDraft.java
示例17: isOutdated
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isOutdated() {
return !Objects.equals(getParentVersion(), getParentEntity().getEntityVersion());
}
开发者ID:motech,项目名称:motech,代码行数:5,代码来源:EntityDraft.java
示例18: parse
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public Object parse(String str) {
return TypeHelper.parseString(str, typeClass);
}
开发者ID:motech,项目名称:motech,代码行数:5,代码来源:Type.java
示例19: isSubClassOfMdsEntity
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isSubClassOfMdsEntity () {
return TypeHelper.isSubclassOfMdsEntity(getSuperClass());
}
开发者ID:motech,项目名称:motech,代码行数:5,代码来源:Entity.java
示例20: isSubClassOfMdsVersionedEntity
import javax.jdo.annotations.NotPersistent; //导入依赖的package包/类
@NotPersistent
public boolean isSubClassOfMdsVersionedEntity () {
return TypeHelper.isSubclassOfMdsVersionedEntity(getSuperClass());
}
开发者ID:motech,项目名称:motech,代码行数:5,代码来源:Entity.java
注:本文中的javax.jdo.annotations.NotPersistent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论