List of usage examples for com.liferay.portal.kernel.util StringPool BLANK
String BLANK
To view the source code for com.liferay.portal.kernel.util StringPool BLANK.
Click Source Link
From source file:at.meduni.graz.patho.haybaeck.model.impl.PatientModelImpl.java
License:Open Source License
@Override public String getLast_name() { if (_last_name == null) { return StringPool.BLANK; } else {//from w ww.j av a 2s . com return _last_name; } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.PatientModelImpl.java
License:Open Source License
@Override public String getCouse_of_death() { if (_couse_of_death == null) { return StringPool.BLANK; } else {// w ww. ja v a 2 s .c o m return _couse_of_death; } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleCacheModel.java
License:Open Source License
@Override public Sample toEntityModel() { SampleImpl sampleImpl = new SampleImpl(); sampleImpl.setSample_Id(sample_Id);/*w ww . j ava 2 s .c o m*/ sampleImpl.setPatient_id(patient_id); if (t == null) { sampleImpl.setT(StringPool.BLANK); } else { sampleImpl.setT(t); } if (n == null) { sampleImpl.setN(StringPool.BLANK); } else { sampleImpl.setN(n); } if (m == null) { sampleImpl.setM(StringPool.BLANK); } else { sampleImpl.setM(m); } if (g == null) { sampleImpl.setG(StringPool.BLANK); } else { sampleImpl.setG(g); } if (r == null) { sampleImpl.setR(StringPool.BLANK); } else { sampleImpl.setR(r); } if (p == null) { sampleImpl.setP(StringPool.BLANK); } else { sampleImpl.setP(p); } if (l == null) { sampleImpl.setL(StringPool.BLANK); } else { sampleImpl.setL(l); } if (v == null) { sampleImpl.setV(StringPool.BLANK); } else { sampleImpl.setV(v); } if (stage == null) { sampleImpl.setStage(StringPool.BLANK); } else { sampleImpl.setStage(stage); } if (operation == null) { sampleImpl.setOperation(StringPool.BLANK); } else { sampleImpl.setOperation(operation); } if (post_op_treatment == null) { sampleImpl.setPost_op_treatment(StringPool.BLANK); } else { sampleImpl.setPost_op_treatment(post_op_treatment); } sampleImpl.setRecurrence(recurrence); if (recurrence_date == Long.MIN_VALUE) { sampleImpl.setRecurrence_date(null); } else { sampleImpl.setRecurrence_date(new Date(recurrence_date)); } if (dead_live == null) { sampleImpl.setDead_live(StringPool.BLANK); } else { sampleImpl.setDead_live(dead_live); } if (last_follow_up_date == Long.MIN_VALUE) { sampleImpl.setLast_follow_up_date(null); } else { sampleImpl.setLast_follow_up_date(new Date(last_follow_up_date)); } if (hospital == null) { sampleImpl.setHospital(StringPool.BLANK); } else { sampleImpl.setHospital(hospital); } if (tnm_staging == null) { sampleImpl.setTnm_staging(StringPool.BLANK); } else { sampleImpl.setTnm_staging(tnm_staging); } if (diagnosis == null) { sampleImpl.setDiagnosis(StringPool.BLANK); } else { sampleImpl.setDiagnosis(diagnosis); } if (operation_date == Long.MIN_VALUE) { sampleImpl.setOperation_date(null); } else { sampleImpl.setOperation_date(new Date(operation_date)); } if (tmp_identifier == null) { sampleImpl.setTmp_identifier(StringPool.BLANK); } else { sampleImpl.setTmp_identifier(tmp_identifier); } sampleImpl.resetOriginalValues(); return sampleImpl; }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleCacheModel.java
License:Open Source License
@Override public void writeExternal(ObjectOutput objectOutput) throws IOException { objectOutput.writeLong(sample_Id);/*ww w.j a v a2 s . c om*/ objectOutput.writeLong(patient_id); if (t == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(t); } if (n == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(n); } if (m == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(m); } if (g == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(g); } if (r == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(r); } if (p == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(p); } if (l == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(l); } if (v == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(v); } if (stage == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(stage); } if (operation == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(operation); } if (post_op_treatment == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(post_op_treatment); } objectOutput.writeBoolean(recurrence); objectOutput.writeLong(recurrence_date); if (dead_live == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(dead_live); } objectOutput.writeLong(last_follow_up_date); if (hospital == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(hospital); } if (tnm_staging == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(tnm_staging); } if (diagnosis == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(diagnosis); } objectOutput.writeLong(operation_date); if (tmp_identifier == null) { objectOutput.writeUTF(StringPool.BLANK); } else { objectOutput.writeUTF(tmp_identifier); } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleModelImpl.java
License:Open Source License
@Override public String getT() { if (_t == null) { return StringPool.BLANK; } else { return _t; } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleModelImpl.java
License:Open Source License
@Override public String getN() { if (_n == null) { return StringPool.BLANK; } else { return _n; } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleModelImpl.java
License:Open Source License
@Override public String getM() { if (_m == null) { return StringPool.BLANK; } else { return _m; } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleModelImpl.java
License:Open Source License
@Override public String getG() { if (_g == null) { return StringPool.BLANK; } else { return _g; } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleModelImpl.java
License:Open Source License
@Override public String getR() { if (_r == null) { return StringPool.BLANK; } else { return _r; } }
From source file:at.meduni.graz.patho.haybaeck.model.impl.SampleModelImpl.java
License:Open Source License
@Override public String getP() { if (_p == null) { return StringPool.BLANK; } else { return _p; } }