Examples of BaseConnection


Examples of org.apache.ojb.otm.core.BaseConnection

  {
        if (!(connection instanceof BaseConnection))
        {
            throw new TransactionFactoryException("Unknown connection type");
        }
        BaseConnection baseConnection = (BaseConnection) connection;

    javax.transaction.Transaction jtaTx = getJTATransaction();
        if (jtaTx == null)
        {
            throw new TransactionFactoryException("Unable to get the JTA Transaction");
View Full Code Here

Examples of org.apache.ojb.otm.core.BaseConnection

  {
        if (!(connection instanceof BaseConnection))
        {
            throw new TransactionFactoryException("Unknown connection type");
        }
        BaseConnection baseConnection = (BaseConnection) connection;

    javax.transaction.Transaction jtaTx = getJTATransaction();
        if (jtaTx == null)
        {
            throw new TransactionFactoryException("Unable to get the JTA Transaction");
View Full Code Here

Examples of org.postgresql.core.BaseConnection

    {
        Properties props = new Properties();
        props.setProperty("disableColumnSanitiser", Boolean.TRUE.toString());
        conn = TestUtil.openDB(props);
        assertTrue(conn instanceof BaseConnection);
        BaseConnection bc = (BaseConnection)conn;
        assertTrue(
        "Expected state [TRUE] of base connection configuration failed test."  
        , bc.isColumnSanitiserDisabled());
        /* Quoted columns will be stored with case preserved. Driver will
         * receive column names as defined in db server. */
        TestUtil.createTable(conn, "allmixedup",
        "id int primary key, \"DESCRIPTION\" varchar(40), \"fOo\" varchar(3)");
        Statement data = conn.createStatement();
View Full Code Here

Examples of org.postgresql.core.BaseConnection

    public void setUp() throws SQLException
    {
        Connection conn = getDataSourceConnection();
        assertTrue(conn instanceof BaseConnection);
        BaseConnection bc = (BaseConnection)conn;
        assertTrue(
        "Expected state [TRUE] of base connection configuration failed test."
        , bc.isColumnSanitiserDisabled());
        Statement insert = conn.createStatement();
        TestUtil.createTable( conn, "allmixedup",
        "id int primary key, \"DESCRIPTION\" varchar(40), \"fOo\" varchar(3)");
        insert.execute(TestUtil.insertSQL("allmixedup",
                "1,'mixed case test', 'bar'"));
View Full Code Here

Examples of org.postgresql.core.BaseConnection

    {
        Properties props = new Properties();
        props.setProperty("disableColumnSanitiser", Boolean.FALSE.toString());
        conn = TestUtil.openDB(props);
        assertTrue(conn instanceof BaseConnection);
        BaseConnection bc = (BaseConnection)conn;
        assertFalse("Expected state [FALSE] of base connection configuration failed test.", bc.isColumnSanitiserDisabled());
        TestUtil.createTable( conn,"allmixedup",
                "id int primary key, \"DESCRIPTION\" varchar(40), \"fOo\" varchar(3)");
        Statement data = conn.createStatement();
        data.execute(TestUtil.insertSQL("allmixedup",
                "1,'mixed case test', 'bar'"));
View Full Code Here

Examples of org.postgresql.core.BaseConnection

            }

            if (connection instanceof BaseConnection) {

                // if we do have a valid postgresql connection use this one:
                final BaseConnection postgresBaseConnection = (BaseConnection) connection;
                sb.append(postgresBaseConnection.getTimestampUtils().toString(null, tmpd));
            } else {

                // no valid postgresql connection - use that one:
                sb.append(postgresJDBCDriverReusedTimestampUtils.toString(null, tmpd));
            }
View Full Code Here

Examples of org.tinyuml.draw.BaseConnection

  public void testAddRemoveConnection() {
    UmlAssociation assoc = (UmlAssociation)
      UmlAssociation.getInstance().clone();
    Line2D line = new Line2D.Double();
    line.setLine(5.0, 5.0, 10.0, 5.0);
    Connection conn = new BaseConnection(assoc, line);
    diagram.addChild(conn);
    assertEquals(diagram, conn.getParent());
    assertEquals(conn, diagram.getChildAt(6.0, 5.0));
    diagram.removeChild(conn);
    assertNull(conn.getParent());
  }
View Full Code Here

Examples of org.tinyuml.draw.BaseConnection

  public void testAddRemoveConnection() {
    UmlAssociation assoc = (UmlAssociation)
      UmlAssociation.getInstance().clone();
    Line2D line = new Line2D.Double();
    line.setLine(5.0, 5.0, 10.0, 5.0);
    Connection conn = new BaseConnection(assoc, line);
    diagram.addChild(conn);
    assertEquals(diagram, conn.getParent());
    assertEquals(conn, diagram.getChildAt(6.0, 5.0));
    diagram.removeChild(conn);
    assertNull(conn.getParent());
  }
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.