690691692693694695696697698699700
*/ public static Holiday selectHoliday(long id) throws Exception { Connection connection = null; try { connection = DirectTaskDatabaseConnection.getNewConnection(); return new TaskProcess(connection).selectHoliday(id); } finally { if (connection != null) connection.close(); } }
708709710711712713714
* @return Holiday * @see com.acelet.s.task.Holiday * @see #selectAllHolidays */ public static Holiday selectHoliday(Connection connection, long id) throws Exception { return new TaskProcess(connection).selectHoliday(id); }
723724725726727728729730731732733
*/ public static HolidayRule selectHolidayRule(long id) throws Exception { Connection connection = null; try { connection = DirectTaskDatabaseConnection.getNewConnection(); return new TaskProcess(connection).selectHolidayRule(id); } finally { if (connection != null) connection.close(); } }
741742743744745746747
* @return HolidayRule * @see com.acelet.s.task.HolidayRule * @see #selectAllHolidayRules */ public static HolidayRule selectHolidayRule(Connection connection, long id) throws Exception { return new TaskProcess(connection).selectHolidayRule(id); }
756757758759760761762763764765766
*/ public static Task selectTask(long id) throws Exception { Connection connection = null; try { connection = DirectTaskDatabaseConnection.getNewConnection(); return new TaskProcess(connection).selectTask(id); } finally { if (connection != null) connection.close(); } }
774775776777778779780
* @return Task * @see com.acelet.s.task.Task * @see #selectAllTasks */ public static Task selectTask(Connection connection, long id) throws Exception { return new TaskProcess(connection).selectTask(id); }
788789790791792793794795796797798
*/ public static Task selectTask(String name) throws Exception { Connection connection = null; try { connection = DirectTaskDatabaseConnection.getNewConnection(); return new TaskProcess(connection).selectTask(name); } finally { if (connection != null) connection.close(); } }
805806807808809810811
* @param name the name of the Task. * @return Task * @see com.acelet.s.task.Task */ public static Task selectTask(Connection connection, String name) throws Exception { return new TaskProcess(connection).selectTask(name); }
820821822823824825826827828829830
*/ public static WorkingTask selectWorkingTask(long id) throws Exception { Connection connection = null; try { connection = DirectTaskDatabaseConnection.getNewConnection(); return new TaskProcess(connection).selectWorkingTask(id); } finally { if (connection != null) connection.close(); } }
838839840841842843844
* @return WorkingTask * @see com.acelet.s.task.WorkingTask * @see #selectAllWorkingTasks */ public static WorkingTask selectWorkingTask(Connection connection, long id) throws Exception { return new TaskProcess(connection).selectWorkingTask(id); }