Package com.jenginetest.builder.model

Examples of com.jenginetest.builder.model.SAuthor


  public static SAuthor toModel(SAuthorSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    SAuthor model = new SAuthorImpl();

    model.setAuthorId(soapModel.getAuthorId());
    model.setFirstName(soapModel.getFirstName());
    model.setLastName(soapModel.getLastName());

    return model;
  }
View Full Code Here


  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    SAuthor sAuthor = null;

    try {
      sAuthor = (SAuthor)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = sAuthor.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    }
    else {
View Full Code Here

   *
   * @param authorId the primary key for the new s author
   * @return the new s author
   */
  public SAuthor create(long authorId) {
    SAuthor sAuthor = new SAuthorImpl();

    sAuthor.setNew(true);
    sAuthor.setPrimaryKey(authorId);

    return sAuthor;
  }
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      SAuthor sAuthor = (SAuthor)session.get(SAuthorImpl.class, primaryKey);

      if (sAuthor == null) {
        if (_log.isWarnEnabled()) {
          _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
        }
View Full Code Here

   * @throws com.jenginetest.builder.NoSuchSAuthorException if a s author with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SAuthor findByPrimaryKey(long authorId)
    throws NoSuchSAuthorException, SystemException {
    SAuthor sAuthor = fetchByPrimaryKey(authorId);

    if (sAuthor == null) {
      if (_log.isWarnEnabled()) {
        _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + authorId);
      }
View Full Code Here

   * @param authorId the primary key of the s author
   * @return the s author, or <code>null</code> if a s author with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SAuthor fetchByPrimaryKey(long authorId) throws SystemException {
    SAuthor sAuthor = (SAuthor)EntityCacheUtil.getResult(SAuthorModelImpl.ENTITY_CACHE_ENABLED,
        SAuthorImpl.class, authorId);

    if (sAuthor == _nullSAuthor) {
      return null;
    }
View Full Code Here

TOP

Related Classes of com.jenginetest.builder.model.SAuthor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.