Recursos de Banco de dados
aspects.dataManagement.persistent.util.IPersistenceMechanism pm ... java.sql.Statement stmt ... String sql ... try { stmt = (Statement) pm.getCommunicationChannel(); stmt.executeUpdate(sql.toString()); } catch (java.sql.SQLException ex) { throw new org.aspectj.lang.SoftException(ex); } catch (aspects.dataManagement.persistent.util.PersistenceMechanismException ex) { throw new org.aspectj.lang.SoftException(ex); } finally { try { stmt.close(); } catch(java.sql.SQLException ex) { throw new org.aspectj.lang.SoftException(ex); } try { pm.releaseCommunicationChannel(); } catch (aspects.dataManagement.persistent.util.PersistenceMechanismException ex) { throw new org.aspectj.lang.SoftException(ex); } }
SELECT SEU-LOGIN_NOME-DA-SEQUENCE.NEXTVAL FROM DUAL
util.Date date = ...
"INSERT INTO ... VALUES (..., TO_DATE('" + Date.format(date, Date.FORMATO1) + "','DD-MM-YYYY'), ...);