blob: 70d7bd10573982458113922a05c5c8918828fc60 [file] [log] [blame]
/*******************************************************************************
* Copyright © 2012, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package eglx.persistence.sql;
import eglx.lang.Nativetype;
import eglx.persistence.DataSource;
externalType SQLDataSource extends DataSource type NativeType
static TRANSACTION_ISOLATION_NONE int;
static TRANSACTION_ISOLATION_READ_UNCOMMITTED int;
static TRANSACTION_ISOLATION_READ_COMMITTED int;
static TRANSACTION_ISOLATION_REPEATABLE_READ int;
static TRANSACTION_ISOLATION_SERIALIZABLE int;
private constructor();
constructor(connectionUrl string in);
constructor(connectionUrl string in, properties Dictionary in);
function setCurrentSchema(schemaName string in);
function getAutoCommit() returns(boolean);
function setAutoCommit(autoCommit boolean in);
function getTransactionIsolation() returns(int);
function setTransactionIsolation(level int in);
function supportsTransactionIsolationLevel(level int in) returns(boolean);
function getWarnings() returns(SQLWarning?);
function isClosed() returns(boolean);
function isReadOnly() returns(boolean);
function isValid(timeout int in) returns(boolean);
end