Examples of openSession()


Examples of com.alibaba.druid.support.ibatis.SqlMapClientWrapper.openSession()

        wrapper.startTransaction(Connection.TRANSACTION_NONE);
        wrapper.endTransaction();
        wrapper.setUserConnection(wrapper.getUserConnection());
        wrapper.getCurrentConnection();
        wrapper.getDataSource();
        wrapper.openSession().close();
        wrapper.openSession(wrapper.getCurrentConnection()).close();
        wrapper.getSession();
        wrapper.flushDataCache();
        Exception error = null;
        try {
View Full Code Here

Examples of com.ibatis.sqlmap.client.SqlMapClient.openSession()

    MockControl sessionControl = MockControl.createControl(SqlMapSession.class);
    final SqlMapSession session = (SqlMapSession) sessionControl.getMock();
    MockControl clientControl = MockControl.createControl(SqlMapClient.class);
    SqlMapClient client = (SqlMapClient) clientControl.getMock();
    client.openSession();
    clientControl.setReturnValue(session, 1);
    session.getCurrentConnection();
    sessionControl.setReturnValue(null, 1);
    session.setUserConnection(con);
    sessionControl.setVoidCallable(1);
View Full Code Here

Examples of com.liferay.util.dao.hibernate.SessionConfiguration.openSession()

    throws HibernateException {

    SessionConfiguration config =
      _getSessionConfigurationInstance(className);

    return config.openSession();
  }

  private static String _getSessionConfigurationClassName(String className) {
    if (className == null) {
      className = HibernateConfiguration.class.getName();
View Full Code Here

Examples of com.mozilla.bespin.SessionTracker.openSession()

                    tracker.closeSession(requestedFile, getUser());
                }
            }

            if (openSession) {
                tracker.openSession(requestedFile, getUser(), editMode);
            }

            try {
                String contents = getFilesystem().read(getUser(), getPath());
                print(contents);
View Full Code Here

Examples of com.trilead.ssh2.Connection.openSession()

            if (isAuthenticated == false) {
              s_logger.info("Authentication failed for root with password");
              return false;
            }
           
            Session sess = conn.openSession();
            s_logger.info("Executing : " + commandElement.getTextContent());
            sess.execCommand(commandElement.getTextContent());
            Thread.sleep(60000);
            sess.close();
            conn.close();
View Full Code Here

Examples of de.innovationgate.webgate.api.WGDatabase.openSession()

           
            WGDatabase db = (WGDatabase) jobContext.getWgaCore().getContentdbs().get(dbkey);
            if (db == null) {
                throw new TaskException("Database of key " + dbkey + " not connected");
            }
            db.openSession();
           
            String fileName = getOption("filename");
            file = new File(fileName);
            if (!file.exists()) {
                throw new TaskException("Dump file does not exist :" + file.getPath());
View Full Code Here

Examples of edsdk.api.CanonCamera.openSession()

public class Test {

    public static void main( final String[] args ) throws InterruptedException, IOException {
        final CanonCamera camera = new CanonCamera();

        if ( camera.openSession() ) {

            Long lvalue = Test.printProperty( camera, EdsPropertyID.kEdsPropID_BatteryLevel );
            System.out.println( lvalue == 0xffffffff
                                                    ? "On AC power"
                                                    : "On battery, value is percentage remaining." );
View Full Code Here

Examples of it.eng.spagobi.tools.importexport.IImportManager.openSession()

      archiveBytes = transManager.applyTransformations(archiveBytes, archiveName, pathImpTmpFolder);

      impManager = ImportUtilities.getImportManagerInstance();
      // prepare import environment
      impManager.init(pathImpTmpFolder, archiveName, archiveBytes);
      impManager.openSession();
      impManager.setAssociationFile(assFile);
     
    // if the associations file has been uploaded fill the association keeper
    if(associationsFile!=null) {
      byte[] assFilebys = associationsFile.getFileContent();
View Full Code Here

Examples of net.sf.hibernate.SessionFactory.openSession()

            if (session == null) {
                SessionFactory sessionFactory = GlobalSessionFactory.get();
                if (useProxy) {
                    session = SessionProxy.createProxy(this, sessionFactory);
                } else {
                    session = sessionFactory.openSession();
                    if (log.isDebugEnabled()) {
                        log.debug("Session opened: "+session);
                    }
                }
                request.setAttribute(SESSION_ATTRIBUTE_KEY, session);
View Full Code Here

Examples of org.apache.hive.service.cli.CLIServiceClient.openSession()

  @Test
  public void testConnection() throws Exception {
    String tabName = "testTab1";
    CLIServiceClient serviceClient = miniHS2.getServiceClient();
    SessionHandle sessHandle = serviceClient.openSession("foo", "bar");
    serviceClient.executeStatement(sessHandle, "DROP TABLE IF EXISTS tab", confOverlay);
    serviceClient.executeStatement(sessHandle, "CREATE TABLE " + tabName + " (id INT)", confOverlay);
    OperationHandle opHandle = serviceClient.executeStatement(sessHandle, "SHOW TABLES", confOverlay);
    RowSet rowSet = serviceClient.fetchResults(opHandle);
    assertFalse(rowSet.numRows() == 0);
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.