|
From: <pe...@us...> - 2003-12-24 00:24:37
|
Update of /cvsroot/neuclear/neuclear-ledger/src/test/org/neuclear/ledger In directory sc8-pr-cvs1:/tmp/cvs-serv23141/src/test/org/neuclear/ledger Modified Files: LedgerTest.java SQLLedgerTest.java Log Message: Created a kind of poor man's version of ofbiz.org's EntityEngine. It doesnt use xml to configure it, but code. Should mainly be used to create tables. Can also insert rows, but hasnt been thoroughly tested. At some point I will improve that part and add some kind of smart querying engine to it. Similar to EntityEngine. But I dont need that myself right now. SQLLedger now uses this to create its tables. It is not fully working yet, but will be shortly. Index: LedgerTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-ledger/src/test/org/neuclear/ledger/LedgerTest.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** LedgerTest.java 3 Dec 2003 23:21:43 -0000 1.6 --- LedgerTest.java 24 Dec 2003 00:24:33 -0000 1.7 *************** *** 4,7 **** --- 4,8 ---- import org.neuclear.commons.NeuClearException; import org.neuclear.commons.sql.DefaultConnectionSource; + import org.neuclear.commons.sql.DefaultXAConnectionSource; import org.neuclear.ledger.implementations.SQLLedger; *************** *** 22,25 **** --- 23,33 ---- * $Id$ * $Log$ + * Revision 1.7 2003/12/24 00:24:33 pelle + * Created a kind of poor man's version of ofbiz.org's EntityEngine. It doesnt use xml to configure it, but code. + * Should mainly be used to create tables. Can also insert rows, but hasnt been thoroughly tested. + * At some point I will improve that part and add some kind of smart querying engine to it. Similar to EntityEngine. But I dont + * need that myself right now. + * SQLLedger now uses this to create its tables. It is not fully working yet, but will be shortly. + * * Revision 1.6 2003/12/03 23:21:43 pelle * Got rid of ofbiz support. Way over the top for our use. *************** *** 114,118 **** public LedgerTest(final String s) throws LowlevelLedgerException, UnknownLedgerException, SQLException, NamingException, IOException, NeuClearException { super(s); ! ledger = new SQLLedger(new DefaultConnectionSource(), "neu://superbux/reserve"); } --- 122,126 ---- public LedgerTest(final String s) throws LowlevelLedgerException, UnknownLedgerException, SQLException, NamingException, IOException, NeuClearException { super(s); ! ledger = new SQLLedger(new DefaultXAConnectionSource(), "neu://superbux/reserve"); } Index: SQLLedgerTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-ledger/src/test/org/neuclear/ledger/SQLLedgerTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SQLLedgerTest.java 3 Dec 2003 23:21:43 -0000 1.3 --- SQLLedgerTest.java 24 Dec 2003 00:24:33 -0000 1.4 *************** *** 2,5 **** --- 2,8 ---- import org.neuclear.commons.NeuClearException; + import org.neuclear.commons.sql.SQLTools; + import org.neuclear.commons.sql.DefaultConnectionSource; + import org.neuclear.ledger.implementations.SQLLedger; import javax.naming.NamingException; *************** *** 17,21 **** public SQLLedgerTest(final String s) throws LowlevelLedgerException, UnknownLedgerException, SQLException, NamingException, IOException, NeuClearException { super(s); ! } --- 20,24 ---- public SQLLedgerTest(final String s) throws LowlevelLedgerException, UnknownLedgerException, SQLException, NamingException, IOException, NeuClearException { super(s); ! SQLLedger.create(new DefaultConnectionSource()); } |