Java 类javax.persistence.Transient 实例源码
项目:kafka-webview
文件:View.java
/**
* @return Returns the defined partitions as a Set.
*/
@Transient
public Set<Integer> getPartitionsAsSet() {
final Set<Integer> partitionsSet = new HashSet<>();
// Avoid NPE.
if (getPartitions() == null) {
return partitionsSet;
}
final String[] partitions = getPartitions().split(",");
for (final String partitionStr: partitions) {
try {
partitionsSet.add(Integer.parseInt(partitionStr));
} catch (NumberFormatException e) {
// Ignore?
}
}
return partitionsSet;
}
项目:oasp-tutorial-sources
文件:VisitorEntity.java
@Override
@Transient
public Long getCodeId() {
if (this.code == null) {
return null;
}
return this.code.getId();
}
项目:stroom-stats
文件:StroomStatsStoreEntity.java
@Override
@Transient
public List<String> getFieldNames() {
if (stroomStatsStoreDataObject != null) {
final List<String> fieldNames = new ArrayList<String>();
for (final StatisticField statisticField : stroomStatsStoreDataObject.getStatisticFields()) {
fieldNames.add(statisticField.getFieldName());
}
return fieldNames;
} else {
return Collections.emptyList();
}
}
项目:stroom-stats
文件:StroomStatsStoreEntity.java
@Transient
public List<StatisticField> getStatisticFields() {
if (stroomStatsStoreDataObject != null) {
return stroomStatsStoreDataObject.getStatisticFields();
} else {
return Collections.emptyList();
}
}
项目:stroom-stats
文件:StroomStatsStoreEntity.java
@Override
@Transient
public Set<? extends CustomRollUpMask> getCustomRollUpMasks() {
if (stroomStatsStoreDataObject != null) {
return stroomStatsStoreDataObject.getCustomRollUpMasks();
} else {
return Collections.emptySet();
}
}
项目:yadaframework
文件:YadaProduct.java
/***********************************************************************/
/* Id for DataTables */
@Transient
@JsonView(YadaJsonView.WithEagerAttributes.class)
@JsonProperty("DT_RowId")
public String getDT_RowId() {
return this.getClass().getSimpleName()+"#"+this.id; // YadaProduct#142
}
项目:kafka-webview
文件:Filter.java
/**
* @return All of the option names, as a set.
*/
@Transient
public Set<String> getOptionsAsSet() {
final Set<String> set = new HashSet<>();
Collections.addAll(set, getOptions().split(","));
return set;
}
项目:Equella
文件:LanguageBundle.java
@Transient
public boolean isEmpty()
{
if( strings != null )
{
for( LanguageString string : strings.values() )
{
if( !Check.isEmpty(string.getText()) )
{
return false;
}
}
}
return true;
}
项目:lams
文件:JPAOverriddenAnnotationReader.java
private Transient getTransient(XMLContext.Default defaults) {
for ( Element element : elementsForProperty ) {
if ( "transient".equals( element.getName() ) ) {
AnnotationDescriptor ad = new AnnotationDescriptor( Transient.class );
return AnnotationFactory.create( ad );
}
}
if ( elementsForProperty.size() == 0 && defaults.canUseJavaAnnotations() ) {
return getPhysicalAnnotation( Transient.class );
}
else {
return null;
}
}
项目:yadaframework
文件:YadaUserMessage.java
/***********************************************************************/
/* DataTables */
@Transient
@JsonView(YadaJsonView.WithEagerAttributes.class)
@JsonProperty("DT_RowId")
public String getDT_RowId() {
return this.getClass().getSimpleName()+"#"+this.id; // YadaUserMessage#142
}
项目:aws-photosharing-example
文件:Media.java
@Transient
public String getPrivateUrl() {
String publicUrl = "";
if (this.getS3ThumbFileName() != null && this.getS3ThumbFileName().trim().length() > 0)
publicUrl = MessageFormat.format(Configuration.PRIVATE_MEDIA_URL_FORMAT.toString(), this.getId());
return publicUrl;
}
项目:yadaframework
文件:YadaProduct.java
/**
* Fetches the localized description for the current request locale or the default configured locale
* @return the name or the empty string if no value has been defined
*/
@Transient
public String getLocalDescription() {
if (cacheDescription==null) {
cacheDescription = yadaLocaleDao.getLocalValue(id, YadaProduct.class, "description", null);
}
return cacheDescription;
}
项目:yadaframework
文件:YadaPersistentEnum.java
/**
* Sets the attributes of a normal enum into this instance, but not the localized text
* @param enumValue
*/
@Transient
public void setEnum(E enumValue) {
this.enumClassName = enumValue.getClass().getName();
this.enumOrdinal = enumValue.ordinal();
this.enumName = enumValue.name();
}
项目:exam
文件:AutoEvaluationConfig.java
@Transient
public AutoEvaluationConfig copy() {
AutoEvaluationConfig clone = new AutoEvaluationConfig();
BeanUtils.copyProperties(this, clone, "id", "exam", "gradeEvaluations");
for (GradeEvaluation ge : gradeEvaluations) {
clone.getGradeEvaluations().add(ge.copy());
}
return clone;
}
项目:exam
文件:EssayAnswer.java
@Transient
public EssayAnswer copy() {
EssayAnswer essayAnswer = new EssayAnswer();
essayAnswer.setAnswer(answer);
essayAnswer.save();
return essayAnswer;
}
项目:yadaframework
文件:YadaBrowserId.java
/**
* Returns the UUID, or null if not set
* @return
*/
@Transient
public UUID getUUID() {
if (mostSigBits>0 && leastSigBits>0) {
return new UUID(mostSigBits, leastSigBits);
}
return null;
}
项目:tipi-engine
文件:DbBooleanVariable.java
@Transient
@Override
public Boolean getValue() {
return value;
}
项目:tipi-engine
文件:DbStringVariable.java
@Override
@Transient
public final String getValue() {
return stringValue;
}
项目:tipi-engine
文件:DbTimestampVariable.java
@Transient
@Override
public Date getValue() {
return null;
}
项目:tipi-engine
文件:DbLongVariable.java
@Transient
@Override
public Long getValue() {
return longValue;
}
项目:sjk
文件:App.java
@Transient
public String getPageUrl() {
return pageUrl;
}
项目:sjk
文件:ExtendData.java
@Transient
public String getImageUrl() {
return imageUrl;
}
项目:sbc-qsystem
文件:QUser.java
@Transient
public Shadow getShadow() {
return shadow;
}
项目:DWSurvey
文件:Question.java
@Transient
public List<QuScore> getQuScores() {
return quScores;
}
项目:DWSurvey
文件:Question.java
@Transient
public List<QuestionLogic> getQuestionLogics() {
return questionLogics;
}
项目:sjk
文件:AppDetail.java
@Transient
public String getLastUpdateTimeStr() {
return lastUpdateTimeStr;
}
项目:DWSurvey
文件:QuOrderby.java
@Transient
public int getAnOrderSum() {
return anOrderSum;
}
项目:sbc-qsystem
文件:QUser.java
/**
* Количество услуг, которые обрабатывает юзер. // едет на коиента при логине
*/
@Transient
public int getServicesCnt() {
return servicesCnt;
}
项目:DWSurvey
文件:SurveyDirectory.java
@Transient
public SurveyDetail getSurveyDetail() {
return surveyDetail;
}
项目:DWSurvey
文件:SurveyDirectory.java
@Transient
public List<Question> getQuestions() {
return questions;
}
项目:stroom-stats
文件:StroomStatsStoreEntity.java
@Transient
public int getStatisticFieldCount() {
return stroomStatsStoreDataObject == null ? 0 : stroomStatsStoreDataObject.getStatisticFields().size();
}
项目:yadaframework
文件:YadaPersistentEnum.java
@Transient
@Override
public int hashCode() {
return Objects.hashCode(this.enumClassName, this.enumOrdinal);
}
项目:DWSurvey
文件:Question.java
@Transient
public String[] getRemoveOptionUuIds() {
return removeOptionUuIds;
}
项目:stroom-stats
文件:BaseEntity.java
/**
* Reset the entity id and version to its undefined state so that it is non
* persistent. This is often useful when copying an entity using copy.
*/
@Transient
public void clearPersistence() {
setId(UNDEFINED_ID);
version = -1;
}
项目:DWSurvey
文件:AnChenScore.java
@Transient
public int getAnCount() {
return anCount;
}
项目:stroom-stats
文件:Entity.java
@Transient
public abstract boolean isPersistent();
项目:stroom-stats
文件:Entity.java
@Transient
public abstract Object getPrimaryKey();
项目:stroom-stats
文件:NamedEntity.java
@Transient
@Override
public String getDisplayValue() {
return String.valueOf(getName());
}
项目:DWSurvey
文件:User.java
@Transient
public String getFindPwdUrl() {
return findPwdUrl;
}
项目:MybatisGeneatorUtil
文件:Country.java
@Transient
public String getDynamicTableName() {
return dynamicTableName123;
}