/* * IronJacamar, a Java EE Connector Architecture implementation * Copyright 2016, Red Hat Inc, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the Eclipse Public License 1.0 as * published by the Free Software Foundation. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Eclipse * Public License for more details. * * You should have received a copy of the Eclipse Public License * along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.ironjacamar.rars.lazy; import javax.resource.cci.ResourceAdapterMetaData; /** * LazyRaMetaData */ public class LazyRaMetaData implements ResourceAdapterMetaData { /** Local transaction */ private boolean localTransaction; /** * Constructor * @param localTransaction Support LocalTransaction */ public LazyRaMetaData(boolean localTransaction) { this.localTransaction = localTransaction; } /** * Gets the version of the resource adapter. * * @return String representing version of the resource adapter */ @Override public String getAdapterVersion() { return "1.0"; } /** * Gets the name of the vendor that has provided the resource adapter. * * @return String representing name of the vendor */ @Override public String getAdapterVendorName() { return "JBoss, by Red Hat"; } /** * Gets a tool displayable name of the resource adapter. * * @return String representing the name of the resource adapter */ @Override public String getAdapterName() { return "Lazy resource adapter"; } /** * Gets a tool displayable short desription of the resource adapter. * * @return String describing the resource adapter */ @Override public String getAdapterShortDescription() { return "Lazy connection association"; } /** * Returns a string representation of the version * * @return String representing the supported version of the connector architecture */ @Override public String getSpecVersion() { return "1.5"; } /** * Returns an array of fully-qualified names of InteractionSpec * * @return Array of fully-qualified class names of InteractionSpec classes */ @Override public String[] getInteractionSpecsSupported() { return null; } /** * Returns true if the implementation class for the Interaction * * @return boolean Depending on method support */ @Override public boolean supportsExecuteWithInputAndOutputRecord() { return false; } /** * Returns true if the implementation class for the Interaction * * @return boolean Depending on method support */ @Override public boolean supportsExecuteWithInputRecordOnly() { return false; } /** * Returns true if the resource adapter implements the LocalTransaction * * @return true If resource adapter supports resource manager local transaction demarcation */ @Override public boolean supportsLocalTransactionDemarcation() { return localTransaction; } }