

Public Member Functions | |
| void | testNoCascading () throws Exception |
| void | testCascadingAggregation () throws Exception |
| void | testCascadingInverseAggregation () throws Exception |
| void | testCascadingInverseComposition () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Member Functions | |
| Component | createTrasientFilledComponent () |
| BACIProperty | createTrasientFilledBACIProperty (String name, Component comp) |
| void | createDB () throws HibernateUtilException |
| void | dropDB () throws HibernateUtilException |
| void | runScriptFile (String script, Connection conn) throws SQLException |
| void | runScript (String sql, Connection conn) throws SQLException |
| InputStream | getResourceStream (String pathname) throws IOException |
| String | fileToString (Reader reader) throws IOException |
Private Attributes | |
| final String | CREATE_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/CreateHsqldbTables.sql" |
| final String | CREATE_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/CreateHsqldbTables.sql" |
| final String | DROP_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/DropAllTables.sql" |
| final String | DROP_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/DropAllTables.sql" |
| Logger | logger |
| HibernateUtil | hibernateUtil |
Static Private Attributes | |
| static final int | DEFAULT_BUF_LEN = 64 * 1024 |
| void alma::acs::tmcdb::TestPojosCascading::createDB | ( | ) | throws HibernateUtilException [inline, private] |
References com::cosylab::cdb::jdal::hibernate::HibernateUtil::beginTransaction(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::commitTransaction(), CREATE_TMCDB_SWCORE, CREATE_TMCDB_SWEXT, com::cosylab::cdb::jdal::hibernate::HibernateUtil::getConfiguration(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getSession(), hibernateUtil, and runScriptFile().
Referenced by testCascadingAggregation(), testCascadingInverseAggregation(), testCascadingInverseComposition(), and testNoCascading().
| BACIProperty alma::acs::tmcdb::TestPojosCascading::createTrasientFilledBACIProperty | ( | String | name, | |
| Component | comp | |||
| ) | [inline, private] |
Referenced by testCascadingInverseAggregation(), and testCascadingInverseComposition().
| Component alma::acs::tmcdb::TestPojosCascading::createTrasientFilledComponent | ( | ) | [inline, private] |
Referenced by testCascadingInverseAggregation(), and testCascadingInverseComposition().
| void alma::acs::tmcdb::TestPojosCascading::dropDB | ( | ) | throws HibernateUtilException [inline, private] |
References com::cosylab::cdb::jdal::hibernate::HibernateUtil::beginTransaction(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::commitTransaction(), DROP_TMCDB_SWCORE, DROP_TMCDB_SWEXT, com::cosylab::cdb::jdal::hibernate::HibernateUtil::getConfiguration(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getSession(), hibernateUtil, runScript(), and runScriptFile().
Referenced by testCascadingAggregation(), testCascadingInverseAggregation(), testCascadingInverseComposition(), and testNoCascading().
| String alma::acs::tmcdb::TestPojosCascading::fileToString | ( | Reader | reader | ) | throws IOException [inline, private] |
References DEFAULT_BUF_LEN.
Referenced by runScriptFile().
| InputStream alma::acs::tmcdb::TestPojosCascading::getResourceStream | ( | String | pathname | ) | throws IOException [inline, private] |
Referenced by runScriptFile().
| void alma::acs::tmcdb::TestPojosCascading::runScript | ( | String | sql, | |
| Connection | conn | |||
| ) | throws SQLException [inline, private] |
Referenced by dropDB(), and runScriptFile().
| void alma::acs::tmcdb::TestPojosCascading::runScriptFile | ( | String | script, | |
| Connection | conn | |||
| ) | throws SQLException [inline, private] |
References fileToString(), getResourceStream(), and runScript().
Referenced by createDB(), and dropDB().
| void alma::acs::tmcdb::TestPojosCascading::setUp | ( | ) | throws Exception [inline, protected] |
References com::cosylab::cdb::jdal::hibernate::HibernateUtil::getInstance(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getSessionFactory(), hibernateUtil, logger, com::cosylab::cdb::jdal::hibernate::HibernateUtil::setConfiguration(), com::cosylab::cdb::jdal::logging::AcsLoggerHelper::setDefaultLogLevels(), com::cosylab::cdb::jdal::logging::AcsLoggerHelper::setHibernateLogLevels(), com::cosylab::cdb::jdal::logging::AcsLoggerHelper::setHibernateSqlLogLevels(), and com::cosylab::cdb::jdal::logging::AcsLoggerHelper::setLoggerName().
| void alma::acs::tmcdb::TestPojosCascading::tearDown | ( | ) | throws Exception [inline, protected] |
| void alma::acs::tmcdb::TestPojosCascading::testCascadingAggregation | ( | ) | throws Exception [inline] |
| void alma::acs::tmcdb::TestPojosCascading::testCascadingInverseAggregation | ( | ) | throws Exception [inline] |
References com::cosylab::cdb::jdal::hibernate::HibernateUtil::beginTransaction(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::commitTransaction(), createDB(), createTrasientFilledBACIProperty(), createTrasientFilledComponent(), dropDB(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getList(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getSession(), hibernateUtil, and logger.
| void alma::acs::tmcdb::TestPojosCascading::testCascadingInverseComposition | ( | ) | throws Exception [inline] |
References com::cosylab::cdb::jdal::hibernate::HibernateUtil::beginTransaction(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::commitTransaction(), createDB(), createTrasientFilledBACIProperty(), createTrasientFilledComponent(), dropDB(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getList(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getSession(), hibernateUtil, and logger.
| void alma::acs::tmcdb::TestPojosCascading::testNoCascading | ( | ) | throws Exception [inline] |
References com::cosylab::cdb::jdal::hibernate::HibernateUtil::beginTransaction(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::closeSession(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::commitTransaction(), createDB(), dropDB(), com::cosylab::cdb::jdal::hibernate::HibernateUtil::getSession(), hibernateUtil, and logger.
final String alma::acs::tmcdb::TestPojosCascading::CREATE_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/CreateHsqldbTables.sql" [private] |
Referenced by createDB().
final String alma::acs::tmcdb::TestPojosCascading::CREATE_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/CreateHsqldbTables.sql" [private] |
Referenced by createDB().
final int alma::acs::tmcdb::TestPojosCascading::DEFAULT_BUF_LEN = 64 * 1024 [static, private] |
Referenced by fileToString().
final String alma::acs::tmcdb::TestPojosCascading::DROP_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/DropAllTables.sql" [private] |
Referenced by dropDB().
final String alma::acs::tmcdb::TestPojosCascading::DROP_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/DropAllTables.sql" [private] |
Referenced by dropDB().
Logger alma::acs::tmcdb::TestPojosCascading::logger [private] |
Referenced by setUp(), testCascadingInverseAggregation(), testCascadingInverseComposition(), and testNoCascading().
1.6.2