blob: 9a44e0124897b08fdaa7653c8ae0e387015d9eb9 [file] [log] [blame]
/*
* Copyright (c) 1998, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.internal.eis.adapters.aq;
import jakarta.resource.cci.*;
/**
* Interaction spec for AQ JCA adapter.
* Abstract type to enqueue and dequeue sub-types.
*
* @author James
* @since OracleAS TopLink 10<i>g</i> (10.0.3)
*/
public abstract class AQInteractionSpec implements InteractionSpec {
protected String queue;
protected String schema;
/**
* Default constructor.
*/
public AQInteractionSpec() {
}
/**
* Return the queue name.
*/
public String getQueue() {
return queue;
}
/**
* Set the queue name.
*/
public void setQueue(String queue) {
this.queue = queue;
}
/**
* Set the queue schema.
*/
public void setSchema(String schema) {
this.schema = schema;
}
/**
* Return the queue schema.
*/
public String getSchema() {
return schema;
}
@Override
public String toString() {
return getClass().getName() + "(" + getQueue() + ")";
}
}