Package com.jenginetest.builder.model

Examples of com.jenginetest.builder.model.SLibrary


  public static SLibrary toModel(SLibrarySoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    SLibrary model = new SLibraryImpl();

    model.setLibraryId(soapModel.getLibraryId());
    model.setName(soapModel.getName());
    model.setAddress(soapModel.getAddress());

    return model;
  }
View Full Code Here


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

    SLibrary sLibrary = null;

    try {
      sLibrary = (SLibrary)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = sLibrary.getPrimaryKey();

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

   *
   * @param libraryId the primary key for the new s library
   * @return the new s library
   */
  public SLibrary create(long libraryId) {
    SLibrary sLibrary = new SLibraryImpl();

    sLibrary.setNew(true);
    sLibrary.setPrimaryKey(libraryId);

    return sLibrary;
  }
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      SLibrary sLibrary = (SLibrary)session.get(SLibraryImpl.class,
          primaryKey);

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

   * @throws com.jenginetest.builder.NoSuchSLibraryException if a s library with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SLibrary findByPrimaryKey(long libraryId)
    throws NoSuchSLibraryException, SystemException {
    SLibrary sLibrary = fetchByPrimaryKey(libraryId);

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

   * @param libraryId the primary key of the s library
   * @return the s library, or <code>null</code> if a s library with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SLibrary fetchByPrimaryKey(long libraryId) throws SystemException {
    SLibrary sLibrary = (SLibrary)EntityCacheUtil.getResult(SLibraryModelImpl.ENTITY_CACHE_ENABLED,
        SLibraryImpl.class, libraryId);

    if (sLibrary == _nullSLibrary) {
      return null;
    }
View Full Code Here

TOP

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

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.