类 SessionImpl

    • 字段详细资料

      • defaultSchemaName

        protected String defaultSchemaName
    • 构造器详细资料

      • SessionImpl

        public SessionImpl​(HostInfo hostInfo)
        Constructor.
        参数:
        hostInfo - HostInfo instance
      • SessionImpl

        public SessionImpl​(XProtocol prot)
      • SessionImpl

        protected SessionImpl()
    • 方法详细资料

      • getSchemas

        public List<Schema> getSchemas()
        从接口复制的说明: Session
        Retrieve the list of Schema objects for which the current user has access.
        指定者:
        getSchemas 在接口中 Session
        返回:
        list of Schema objects
      • getSchema

        public Schema getSchema​(String schemaName)
        从接口复制的说明: Session
        Retrieve the Schema corresponding to name.
        指定者:
        getSchema 在接口中 Session
        参数:
        schemaName - name of schema to retrieve
        返回:
        Schema
      • getDefaultSchemaName

        public String getDefaultSchemaName()
        从接口复制的说明: Session
        Retrieve the default schema name which may be configured at connect time.
        指定者:
        getDefaultSchemaName 在接口中 Session
        返回:
        default schema name
      • getDefaultSchema

        public Schema getDefaultSchema()
        从接口复制的说明: Session
        Retrieve the default schema which may be configured at connect time.
        指定者:
        getDefaultSchema 在接口中 Session
        返回:
        default Schema
      • createSchema

        public Schema createSchema​(String schemaName)
        从接口复制的说明: Session
        Create and return a new schema with the name given by name.
        指定者:
        createSchema 在接口中 Session
        参数:
        schemaName - name of schema to create
        返回:
        Schema created
      • createSchema

        public Schema createSchema​(String schemaName,
                                   boolean reuseExistingObject)
        从接口复制的说明: Session
        Create and return a new schema with the name given by name. If the schema already exists, a reference to it is returned.
        指定者:
        createSchema 在接口中 Session
        参数:
        schemaName - name of schema to create
        reuseExistingObject - true to reuse
        返回:
        Schema created
      • dropSchema

        public void dropSchema​(String schemaName)
        从接口复制的说明: Session
        Drop the existing schema with the name given by name.
        指定者:
        dropSchema 在接口中 Session
        参数:
        schemaName - name of schema to drop
      • startTransaction

        public void startTransaction()
        从接口复制的说明: Session
        Start a new transaction.
        指定者:
        startTransaction 在接口中 Session
      • commit

        public void commit()
        从接口复制的说明: Session
        Commit the transaction.
        指定者:
        commit 在接口中 Session
      • rollback

        public void rollback()
        从接口复制的说明: Session
        Rollback the transaction.
        指定者:
        rollback 在接口中 Session
      • setSavepoint

        public String setSavepoint​(String name)
        从接口复制的说明: Session
        Creates or replaces a transaction savepoint with the given name. Calling this method more than once should always work.
        指定者:
        setSavepoint 在接口中 Session
        参数:
        name - savepoint name
        返回:
        savepoint name
      • rollbackTo

        public void rollbackTo​(String name)
        从接口复制的说明: Session
        Rolls back the transaction to the named savepoint. This method will succeed as long as the given save point has not been already rolled back or released. Rolling back to a savepoint prior to the one named will release or rollback any that came after.
        指定者:
        rollbackTo 在接口中 Session
        参数:
        name - savepoint name
      • releaseSavepoint

        public void releaseSavepoint​(String name)
        从接口复制的说明: Session
        Releases the named savepoint. This method will succeed as long as the given save point has not been already rolled back or released. Rolling back to a savepoint prior to the one named will release or rollback any that came after.
        指定者:
        releaseSavepoint 在接口中 Session
        参数:
        name - savepoint name
      • getUri

        public String getUri()
        从接口复制的说明: Session
        Get the URL used to create this session.
        指定者:
        getUri 在接口中 Session
        返回:
        URI
      • isOpen

        public boolean isOpen()
        从接口复制的说明: Session
        Is this session open?
        指定者:
        isOpen 在接口中 Session
        返回:
        true if session is open
      • close

        public void close()
        从接口复制的说明: Session
        Close this session.
        指定者:
        close 在接口中 Session
      • sql

        public SqlStatementImpl sql​(String sql)
        从接口复制的说明: Session
        Create a native SQL command. Placeholders are supported using the native "?" syntax.
        指定者:
        sql 在接口中 Session
        参数:
        sql - native SQL statement
        返回:
        SqlStatement