Examples of STransaction


Examples of com.jenginetest.builder.model.STransaction

  public static STransaction toModel(STransactionSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    STransaction model = new STransactionImpl();

    model.setTransactionId(soapModel.getTransactionId());
    model.setBookId(soapModel.getBookId());
    model.setMemberId(soapModel.getMemberId());
    model.setTdate(soapModel.getTdate());

    return model;
  }
View Full Code Here

Examples of com.jenginetest.builder.model.STransaction

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

    STransaction sTransaction = null;

    try {
      sTransaction = (STransaction)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = sTransaction.getPrimaryKey();

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

Examples of com.jenginetest.builder.model.STransaction

   *
   * @param transactionId the primary key for the new s transaction
   * @return the new s transaction
   */
  public STransaction create(long transactionId) {
    STransaction sTransaction = new STransactionImpl();

    sTransaction.setNew(true);
    sTransaction.setPrimaryKey(transactionId);

    return sTransaction;
  }
View Full Code Here

Examples of com.jenginetest.builder.model.STransaction

    Session session = null;

    try {
      session = openSession();

      STransaction sTransaction = (STransaction)session.get(STransactionImpl.class,
          primaryKey);

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

Examples of com.jenginetest.builder.model.STransaction

   * @throws com.jenginetest.builder.NoSuchSTransactionException if a s transaction with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public STransaction findByPrimaryKey(long transactionId)
    throws NoSuchSTransactionException, SystemException {
    STransaction sTransaction = fetchByPrimaryKey(transactionId);

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

Examples of com.jenginetest.builder.model.STransaction

   * @return the s transaction, or <code>null</code> if a s transaction with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public STransaction fetchByPrimaryKey(long transactionId)
    throws SystemException {
    STransaction sTransaction = (STransaction)EntityCacheUtil.getResult(STransactionModelImpl.ENTITY_CACHE_ENABLED,
        STransactionImpl.class, transactionId);

    if (sTransaction == _nullSTransaction) {
      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.