本文整理汇总了Java中javax.resource.cci.ConnectionMetaData类的典型用法代码示例。如果您正苦于以下问题:Java ConnectionMetaData类的具体用法?Java ConnectionMetaData怎么用?Java ConnectionMetaData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConnectionMetaData类属于javax.resource.cci包,在下文中一共展示了ConnectionMetaData类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
@Override
public ConnectionMetaData getMetaData() throws ResourceException {
return new ConnectionMetaData() {
@Override
public String getEISProductName() {
return "My Connector Platform";
}
@Override
public String getEISProductVersion() {
return "1.0";
}
@Override
public String getUserName() {
return "myUser";
}
};
}
示例2: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
/**
* @see Connection#getMetaData()
*/
public ConnectionMetaData getMetaData() throws ResourceException {
if (valid) {
return new HelloWorldConnectionMetaDataImpl();
} else {
throw new ResourceException(CLOSED_ERROR);
}
}
示例3: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
@Override
public ConnectionMetaData getMetaData() throws ResourceException {
return new DemoConnectionMetaData(this);
}
示例4: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
@Override
public ConnectionMetaData getMetaData() throws ResourceException {
return this.mc.getConnection().getMetaData();
}
示例5: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
@Override
public ConnectionMetaData getMetaData() throws ResourceException {
throw new ResourceException("This operation not supported"); //$NON-NLS-1$
}
示例6: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
@Override
public ConnectionMetaData getMetaData() throws ResourceException {
_logger.debug("call getMetaData()");
return null;
}
示例7: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
public ConnectionMetaData getMetaData() throws ResourceException {
return null;
}
示例8: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
@Override
public ConnectionMetaData getMetaData() throws ResourceException {
log.debug("connectionMetaData={}", connectionMetaData);
return connectionMetaData;
}
示例9: HelloWorldManagedConnectionMetaDataImpl
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
/**
* Constructor for HelloWorldManagedConnectionMetaDataImpl
*/
public HelloWorldManagedConnectionMetaDataImpl(ConnectionMetaData cxMetaData) {
super();
this.cxMetaData = cxMetaData;
}
示例10: getMetaData
import javax.resource.cci.ConnectionMetaData; //导入依赖的package包/类
@Override
public ConnectionMetaData getMetaData() throws ResourceException {
return null;
}