Class MemConnection

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.sql.Connection, java.sql.Wrapper

    public class MemConnection
    extends DatasetConnection
    Represents a dataset connection backed by an in-memory dataset
    • Constructor Detail

      • MemConnection

        public MemConnection​(Dataset ds,
                             int holdability,
                             boolean autoCommit,
                             int transactionLevel,
                             int compatibilityLevel)
                      throws java.sql.SQLException
        Creates a new connection
        Parameters:
        ds - Dataset
        holdability - Result Set holdability
        autoCommit - Sets auto-commit behavior for the connection
        transactionLevel - Sets transaction isolation level for the connection
        compatibilityLevel - Sets JDBC compatibility level for the connection, see JdbcCompatibility
        Throws:
        java.sql.SQLException
    • Method Detail

      • getMetaData

        public java.sql.DatabaseMetaData getMetaData()
        Specified by:
        getMetaData in interface java.sql.Connection
        Specified by:
        getMetaData in class JenaConnection