Examples of SBook


Examples of com.jenginetest.builder.model.SBook

  public static SBook toModel(SBookSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    SBook model = new SBookImpl();

    model.setBookId(soapModel.getBookId());
    model.setLibraryId(soapModel.getLibraryId());
    model.setTitle(soapModel.getTitle());

    return model;
  }
View Full Code Here

Examples of com.jenginetest.builder.model.SBook

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

    SBook sBook = null;

    try {
      sBook = (SBook)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = sBook.getPrimaryKey();

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

Examples of com.jenginetest.builder.model.SBook

   *
   * @param bookId the primary key for the new s book
   * @return the new s book
   */
  public SBook create(long bookId) {
    SBook sBook = new SBookImpl();

    sBook.setNew(true);
    sBook.setPrimaryKey(bookId);

    return sBook;
  }
View Full Code Here

Examples of com.jenginetest.builder.model.SBook

    Session session = null;

    try {
      session = openSession();

      SBook sBook = (SBook)session.get(SBookImpl.class, primaryKey);

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

Examples of com.jenginetest.builder.model.SBook

   * @throws com.jenginetest.builder.NoSuchookException if a s book with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SBook findByPrimaryKey(long bookId)
    throws NoSuchookException, SystemException {
    SBook sBook = fetchByPrimaryKey(bookId);

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

Examples of com.jenginetest.builder.model.SBook

   * @param bookId the primary key of the s book
   * @return the s book, or <code>null</code> if a s book with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SBook fetchByPrimaryKey(long bookId) throws SystemException {
    SBook sBook = (SBook)EntityCacheUtil.getResult(SBookModelImpl.ENTITY_CACHE_ENABLED,
        SBookImpl.class, bookId);

    if (sBook == _nullSBook) {
      return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.