Example usage for com.liferay.portal.kernel.util StringPool BLANK

List of usage examples for com.liferay.portal.kernel.util StringPool BLANK

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util StringPool BLANK.

Prototype

String BLANK

To view the source code for com.liferay.portal.kernel.util StringPool BLANK.

Click Source Link

Usage

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneCacheModel.java

License:Open Source License

@Override
public Gene toEntityModel() {
    GeneImpl geneImpl = new GeneImpl();

    geneImpl.setGeneId(geneId);/*  ww  w. jav a  2  s . c o  m*/
    geneImpl.setOrphanetdisorderId(orphanetdisorderId);

    if (symbol == null) {
        geneImpl.setSymbol(StringPool.BLANK);
    } else {
        geneImpl.setSymbol(symbol);
    }

    if (description == null) {
        geneImpl.setDescription(StringPool.BLANK);
    } else {
        geneImpl.setDescription(description);
    }

    geneImpl.setGeneorphanumber(geneorphanumber);
    geneImpl.setGenetype(genetype);
    geneImpl.setGenetypeorphanumber(genetypeorphanumber);

    if (genetypename == null) {
        geneImpl.setGenetypename(StringPool.BLANK);
    } else {
        geneImpl.setGenetypename(genetypename);
    }

    geneImpl.setDisordergeneassociationtype(disordergeneassociationtype);

    if (disordergeneassociationtypename == null) {
        geneImpl.setDisordergeneassociationtypename(StringPool.BLANK);
    } else {
        geneImpl.setDisordergeneassociationtypename(disordergeneassociationtypename);
    }

    geneImpl.setDisordergeneassociationstatus(disordergeneassociationstatus);

    if (disordergeneassociationstatusname == null) {
        geneImpl.setDisordergeneassociationstatusname(StringPool.BLANK);
    } else {
        geneImpl.setDisordergeneassociationstatusname(disordergeneassociationstatusname);
    }

    geneImpl.resetOriginalValues();

    return geneImpl;
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneCacheModel.java

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(geneId);/*from  www.ja  v a 2  s  .co  m*/
    objectOutput.writeLong(orphanetdisorderId);

    if (symbol == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(symbol);
    }

    if (description == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(description);
    }

    objectOutput.writeLong(geneorphanumber);
    objectOutput.writeLong(genetype);
    objectOutput.writeLong(genetypeorphanumber);

    if (genetypename == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(genetypename);
    }

    objectOutput.writeLong(disordergeneassociationtype);

    if (disordergeneassociationtypename == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(disordergeneassociationtypename);
    }

    objectOutput.writeLong(disordergeneassociationstatus);

    if (disordergeneassociationstatusname == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(disordergeneassociationstatusname);
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneLocusCacheModel.java

License:Open Source License

@Override
public GeneLocus toEntityModel() {
    GeneLocusImpl geneLocusImpl = new GeneLocusImpl();

    geneLocusImpl.setGenelocusId(genelocusId);
    geneLocusImpl.setGeneId(geneId);/*from   w  w  w .ja  va2 s.c  o  m*/

    if (genelocus == null) {
        geneLocusImpl.setGenelocus(StringPool.BLANK);
    } else {
        geneLocusImpl.setGenelocus(genelocus);
    }

    if (genelocuskey == null) {
        geneLocusImpl.setGenelocuskey(StringPool.BLANK);
    } else {
        geneLocusImpl.setGenelocuskey(genelocuskey);
    }

    geneLocusImpl.resetOriginalValues();

    return geneLocusImpl;
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneLocusCacheModel.java

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(genelocusId);
    objectOutput.writeLong(geneId);// w  w  w .ja va  2 s .  c  o  m

    if (genelocus == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(genelocus);
    }

    if (genelocuskey == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(genelocuskey);
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneLocusModelImpl.java

License:Open Source License

@JSON
@Override//from  w ww.j ava  2 s  .c o  m
public String getGenelocus() {
    if (_genelocus == null) {
        return StringPool.BLANK;
    } else {
        return _genelocus;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneLocusModelImpl.java

License:Open Source License

@JSON
@Override/*ww w .  ja  va  2  s. co  m*/
public String getGenelocuskey() {
    if (_genelocuskey == null) {
        return StringPool.BLANK;
    } else {
        return _genelocuskey;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneModelImpl.java

License:Open Source License

@JSON
@Override//  ww w  . j a v  a  2s  .c om
public String getSymbol() {
    if (_symbol == null) {
        return StringPool.BLANK;
    } else {
        return _symbol;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneModelImpl.java

License:Open Source License

@JSON
@Override/*  w w  w .j  a  v  a  2  s. com*/
public String getGenetypename() {
    if (_genetypename == null) {
        return StringPool.BLANK;
    } else {
        return _genetypename;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneModelImpl.java

License:Open Source License

@JSON
@Override/*from   w  ww . j  ava 2  s.c  o m*/
public String getDisordergeneassociationtypename() {
    if (_disordergeneassociationtypename == null) {
        return StringPool.BLANK;
    } else {
        return _disordergeneassociationtypename;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.model.impl.GeneModelImpl.java

License:Open Source License

@JSON
@Override/*  ww  w  .j a v  a2s .  c  o  m*/
public String getDisordergeneassociationstatusname() {
    if (_disordergeneassociationstatusname == null) {
        return StringPool.BLANK;
    } else {
        return _disordergeneassociationstatusname;
    }
}