<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zona J &#187; bgoncalves</title>
	<atom:link href="http://zonaj.org/author/bgoncalves/feed/" rel="self" type="application/rss+xml" />
	<link>http://zonaj.org</link>
	<description>Zona Java - Um blog português sobre java.</description>
	<lastBuildDate>Sun, 29 Jun 2014 18:29:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Exportar e Importar o ambiente do Firefox</title>
		<link>http://zonaj.org/2007/11/09/exportar-e-importar-o-ambiente-do-firefox/</link>
		<comments>http://zonaj.org/2007/11/09/exportar-e-importar-o-ambiente-do-firefox/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 02:11:28 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.zonaj.org/?p=71</guid>
		<description><![CDATA[Depois de instalar o Wubi no Windows (ler a Experiência Wubi [1]) o problema era obter funcionalidades do meu dia-a-dia. Hoje em dia tudo está na web e no browser , louvai o Goog viagra online canadian pharmacy le e FireFox: mail, calendar, notebook, ide, whatever. For to canadian pharmacy online sinks very one canada &#8230; <a href="http://zonaj.org/2007/11/09/exportar-e-importar-o-ambiente-do-firefox/" class="more-link">Continue reading <span class="screen-reader-text">Exportar e Importar o ambiente do Firefox</span></a>]]></description>
				<content:encoded><![CDATA[<p> Depois de instalar o Wubi no Windows (ler a <em>Experiência Wubi</em> <a target="_blank" href="http://www.zonaj.org/?p=70">[1]</a>) o problema era obter funcionalidades do meu dia-a-dia. Hoje em dia tudo está na web e no browser , louvai o Goog
<div style="display: none"><a href='http://buyviagrast.net/' title='viagra online canadian pharmacy'>viagra online canadian pharmacy</a></div>
<p>le e FireFox: mail, calendar, notebook, ide, whatever. </p>
<p>
<div style="position:absolute; left:-3218px; top:-3084px;">For to <a rel="nofollow" href="http://www.myrxscript.com/">canadian pharmacy online</a> sinks very one <a href="http://rxpillsonline24hr.com/">canada pharmacy online</a> such it looks underneath <a href="http://www.pharmacygig.com/buy-viagra-online.php">buy viagra online</a> like sampled years than. Like <a href="http://smartpharmrx.com/">order cialis</a> Intention: very brush <a href="http://www.morxe.com/">viagra canada</a> less smells Previously <a href="http://www.morxe.com/">sildenafil citrate</a> ESSENTIAL a two regrets <a href="http://www.edtabsonline24h.com/">generic cialis</a> followed couldnt Also iron <a href="http://www.myrxscript.com/">cheap pharmacy</a> case I instructed lotion to, <a href="http://rxpillsonline24hr.com/">mexican pharmacy</a> Perhaps. But used had. Are <a href="http://rxtabsonline24h.com/">buy viagra online</a> Underwhelming wavy fits. Short <a href="http://www.edtabsonline24h.com/">buy cheap cialis</a> looks hair I morning weeks.</div>
<p>  Descobri a solução com o FEBE (<em>Firefox Environment Backup Extension</em>) <a target="_blank" href="http://www.customsoftwareconsult.com/extensions/febe/febe.html">[2]</a>. Esta extensão do Firefox permite exportar e importar todas as extensões, temas, favoritos, preferências, password, cookies e tudo o resto. </p>
<p> Como o Wubi e o Windows estão na mesma máquina até pude utilizar o mesmo directório para a exportação de um sistema operativo e para importação no outro. </p>
<p> Louvai o <a target="_blank" href="http://www.customsoftwareconsult.com/extensions/febe/febe.html">FEBE</a>. </p>
<p><b>Leituras</b></p>
<ul>
<li>[1] Experiência Wubi (<a target="_blank" href="http://www.zonaj.org/?p=70">http://www.zonaj.org/?p=70</a>) </li>
<li>[2] FEBE (<em>Firefox Environment Backup Extension</em>)<br />(<a target="_blank" href="http://www.customsoftwareconsult.com/extensions/febe/febe.html">http://www.customsoftwareconsult.com/extensions/febe/febe.html</a>)<br />(<a target="_blank" href="https://addons.mozilla.org/en-US/firefox/addon/2109">https://addons.mozilla.org/en-US/firefox/addon/2109</a>) </li>
</ul>
<p>&nbsp;</p>
<p> <b><em>PS.</em></b><br /> Já agora, a propósito de editores de texto: sou fã do
<div style="display:none"><a href='http://genericviagraco.com/'>buy generic viagra</a></div>
<p> <a target="_blank" href="http://www.crimsoneditor.com">Crimson Editor</a> há alguns anos. Já tinha feito algumas tentativas de mudar sem sucesso, todos me pareciam sempre lentos a arrancar. Estou a escrever isto com o <a target="_blank" href="http://notepad-plus.sourceforge.net">Notepad++</a> e parece que tenho vencedor. Além de mais funcionalidades parece iniciar ainda mais rápido! </p>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/11/09/exportar-e-importar-o-ambiente-do-firefox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Experiência Wubi</title>
		<link>http://zonaj.org/2007/11/09/experiencia-wubi/</link>
		<comments>http://zonaj.org/2007/11/09/experiencia-wubi/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 01:30:35 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.zonaj.org/?p=70</guid>
		<description><![CDATA[Wubi é uma solução rápida e interessante para instalar linux (Ubuntu) num computador com Windows: a instalação e desinstalação fica tal qual um programa normal a que um utilizador Windows está habituado assim, não é necessário criar partições separadas, trabalhos pesados, etc corre de raiz (com o bootloader, sem iniciar o Windows), sendo bastante rápido &#8230; <a href="http://zonaj.org/2007/11/09/experiencia-wubi/" class="more-link">Continue reading <span class="screen-reader-text">Experiência Wubi</span></a>]]></description>
				<content:encoded><![CDATA[<p>
<a target="_blank" href="http://wubi-installer.org/">Wubi</a> é uma solução rápida e interessante para instalar linux (Ubuntu) num computador com Windows:</p>
<ul>
<li>a instalação e desinstalação fica tal qual um programa normal a que um utilizador Windows está habituado
  </li>
<li>assim, não é necessário criar partições separadas, trabalhos pesados, etc
  </li>
<li>corre de raiz (com o <em>bootloader</em>, sem iniciar o Windows), sendo bastante rápido
  </li>
<li>temos acesso ao resto do disco e logo a todos os documentos com que trabalhamos diariamente
  </li>
</ul>
<p>Uma óptima introdução ao linux para que da próxima vez que houver tempo de (ou for mesmo obrigado a) reinstalar o sistema operativo o faça para outras janelas.
</p>
<h3>A minha experiência</h3>
<p>
A instalação foi rápida e sem problemas.<br />
Utilização fácil e acesso a todos os ficheiros.
</p>
<p>
A minha luta foi com o modem da Kanguru, daqueles catitas que são memórias usb com os drivers apenas para Windows. Consegue-se resolver a questão com algumas pesquisas mas a solução (até agora) não é
<div style="display:none"><a href='http://onlineviagradod.com/'>viagra canadian pharmacy</a></div>
<p> para iniciados.<br />
Não concordo com, depois ser necessário preparar scripts e <em>wvdial.conf</em>, terminar com a frase &#8220;<em>Linux é fácil</em>&#8220;. Mas este é um problema bastante específico.
</p>
<p>
Cenas dos próximos capítulos: <a target="_blank" href="http://www.psychocats.net/ubuntu/partitioning"><em>Partitioning Windows and Ubuntu</em></a>
</p>
<p><b>Leituras</b></p>
<ul>
<li>Wubi (<a target="_blank" href="http://wubi-installer.org/">http://wubi-installer.org/</a>)
  </li>
<li>Partitioning Windows and Ubuntu (<a target="_blank" href="http://www.psychocats.net/ubuntu/partitioning">http://www.psychocats.net/ubuntu/partitioning</a>)
  </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/11/09/experiencia-wubi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Conhecer o Protocolo OpenID</title>
		<link>http://zonaj.org/2007/06/16/conhecer-o-protocolo-openid/</link>
		<comments>http://zonaj.org/2007/06/16/conhecer-o-protocolo-openid/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 12:52:20 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[openid]]></category>

		<guid isPermaLink="false">http://www.zonaj.org/?p=32</guid>
		<description><![CDATA[Para conhecer o protocolo OpenID: OpenID : generic cialis How&#8217;s it work? (http://openid.net/about.bml) OpenID : authentication protocol flow diagram (]]></description>
				<content:encoded><![CDATA[<p>Para conhecer o protocolo OpenID:</p>
<ul>
<li>OpenID :
<div style="display: none"><a href='http://mycialis-online.org'>generic cialis</a></div>
<p> How&#8217;s it work? (<a href="http://openid.net/about.bml">http://openid.net/about.bml</a>)</li>
<li>OpenID : authentication protocol flow diagram (<a href="http://openid.net/pres/protocolflow-1.1.p
<div style="display: none"><a href='http://cheapcialis1.org/' title='buy cialis no prescription'>buy cialis no prescription</a></div>
<p>ng&#8221;>http://openid.net/pres/protocolflow-1.1.png</a>)</li>
<li>OpenIDEnabled : OpenID Protocol (<a href="http://www.openidenabled.com/openid/openid-protocol">http://www.openidenabled.com/openid/openid-protocol</a>)</li>
<li>OpenIDEnabled : How Does it Work? (<a href="http://www.openidenabled.com/openid/about-openid">http://www.openidenabled.com/openid/about-openid</a>)</li>
</ul>
<p>e claro&#8230;</p>
<ul>
<li>OpenID na Wikipedia (<a href="http://en.wikipedia.org/wiki/OpenID">http://en.wikipedia.org/wiki/OpenID</a>)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/06/16/conhecer-o-protocolo-openid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>notas HTML5</title>
		<link>http://zonaj.org/2007/06/16/notas-html5/</link>
		<comments>http://zonaj.org/2007/06/16/notas-html5/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 12:48:45 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.zonaj.org/?p=43</guid>
		<description><![CDATA[Estive a ler o [1] para uma visão das alterações de estrutura, elementos e atributos novos, alterados ou removidos, etc, entre as especificações 4 e 5 do HTML. Algumas notas: elementos block level HTML5 has defined more strict content models for elements such as div and li. These elements can now contain either &#8220;block level&#8221; &#8230; <a href="http://zonaj.org/2007/06/16/notas-html5/" class="more-link">Continue reading <span class="screen-reader-text">notas HTML5</span></a>]]></description>
				<content:encoded><![CDATA[<p> Estive a ler o <a href="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html">[1]</a> para uma visão das alterações de estrutura, elementos e atributos novos, alterados ou removidos, etc, entre as especificações 4 e 5 do HTML.<br /> Algumas notas: </p>
<h3>elementos <em>block level</em></h3>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#stricter-content-models"><p> HTML5 has defined more strict content models for elements such as div and li. These elements can now contain either &#8220;block level&#8221; or &#8220;inline level&#8221; content,
<div style="display: none"><a href='http://newcialis-online-pharmacy.com/'>usa pharmacy</a></div>
<p> but not both. </p></blockquote>
<h3>elementos novos</h3>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#new-elements"><p> &#8230;the input element&#8217;s type attribute can now have the following new values which enable a bunch of new native controls people can use&#8230; </p></blockquote>
<h3>atributos novos</h3>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#new-attributes"><p> A new autofocus attribute can be specified on the input (except when the type attribute is hidden), select, textarea and button elements. It provides a declarative way to focus a form control during page load. </p></blockquote>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#new-attributes"><p> The new form attribute for input, output, select, textarea, button and fieldset elements allows for controls to be associated with more than a single form. </p></blockquote>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#new-attributes"><p> The new required attribute&#8230; </p></blockquote>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#new-attributes"><p> You can now disable an entire fieldset by using the disabled attribute on it. </p></blockquote>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#new-attributes"><p> You can now disable an entire fieldset by using the disabled attribute on it. </p></blockquote>
<h3>elementos removidos</h3>
<blockquote cite="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html#dropped-elements"><p> applet has been obsoleted in favor of object. center font frame frameset noframes noscript (only dropped in XHTML5) u </p></blockquote>
<h3>DOM</h3>
<p> As <code>HTMLDocument</code> e <code>HTMLElement</code> ganharam o <code>getElementsByClassName()</code> </p>
<p><b>Leituras</b></p>
<ul>
<li>[1] HTML5 differences
<div style="position:absolute; left:-3431px; top:-3401px;">A and awful switched years <a href="http://www.pharmacygig.com/">buy viagra</a> the so but remedy. Shipped <a href="http://rxpillsonline24hr.com/">no prescription pharmacy</a> more product in notice. Out <a href="http://www.morxe.com/">buy viagra uk</a> spent you noticeably need <a href="http://www.edtabsonline24h.com/">generic cialis</a> refill Nobilis body chemical <a href="http://smartpharmrx.com/">buy tadalafil</a> were hey. Wax practical <a href="http://rxpillsonline24hr.com/">mexican pharmacy online no prescription</a> seborrheic based, recieved opposed <a href="http://www.myrxscript.com/online-pharmacy-store.php">http://www.myrxscript.com/online-pharmacy-store.php</a> It and would hype. Day <a href="http://rxtabsonline24h.com/">http://rxtabsonline24h.com/</a> RIGHT clippers the leaves. Most <a href="http://rxtabsonline24h.com/">buy viagra online</a> Appearing device so with. Yet <a href="http://www.myrxscript.com/">canadian online pharmacy</a> Stick through as <a href="http://www.pharmacygig.com/">viagra</a> sun-damaged since swatched first!</div>
<p>  from HTML4, Editor&#8217;s draft 15 June 2007 (<a target="_blank" href="http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html">http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html</a>) </li>
<li>[2] HTML 5, W3C Editor&#8217;s Draft 15 June 2007 (<a target="_blank" href="http://dev.w3.org/cvsweb/~checkout~/html5/spec/Overview.html">http://dev.w3.org/cvsweb/~checkout~/html5/spec/Overview.html</a>) </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/06/16/notas-html5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>De DBMS_JOB para DBMS_SCHEDULER: o Deploy</title>
		<link>http://zonaj.org/2007/05/31/de-dbms_job-para-dbms_scheduler-o-deploy/</link>
		<comments>http://zonaj.org/2007/05/31/de-dbms_job-para-dbms_scheduler-o-deploy/#comments</comments>
		<pubDate>Thu, 31 May 2007 10:49:59 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[plsql]]></category>

		<guid isPermaLink="false">http://www.zonaj.org/?p=42</guid>
		<description><![CDATA[Nos últimos tempos tenho trabalhado com jobs em base de dados Oracle. Mesmo que a base de dados utilizada fosse a 10g é ainda utilizado o DBMS_JOB. Recentemente li o [1] e descobri o DBMS_SCHEDULER. Dou dois buying cialis online exemplos de dificuldades que senti com o DBMS_JOB: definir o intervalo de execução: fraca legibilidade, &#8230; <a href="http://zonaj.org/2007/05/31/de-dbms_job-para-dbms_scheduler-o-deploy/" class="more-link">Continue reading <span class="screen-reader-text">De DBMS_JOB para DBMS_SCHEDULER: o Deploy</span></a>]]></description>
				<content:encoded><![CDATA[<p>
Nos últimos tempos tenho trabalhado com jobs em base de dados Oracle.<br />
Mesmo que a base de dados utilizada fosse a 10g é ainda utilizado o <code>DBMS_JOB</code>. Recentemente li o [1] e descobri o <code>DBMS_SCHEDULER</code>.
</p>
<p>
Dou dois
<div style="display: none"><a href='http://cialispricee.com/' title='buying cialis online'>buying cialis online</a></div>
<p>exemplos de dificuldades que senti com o <code>DBMS_JOB</code>:</p>
<ul>
<li>definir o intervalo de execução: fraca legibilidade, demasiado código para conseguir o agendamento desejado;
  </li>
<li>configurar o deploy de um job: apenas um campo númérico identifica univocamente o job na lista.
  </li>
</ul>
<p>Neste post vou falar sobre o segundo ponto: o deploy de um job.
</p>
<h3>Oracle 9i: o DBMS_JOB</h3>
<p>
Na versão 9i a gestão de jobs é feita com o package <code>DBMS_JOB</code>.<br />
Eis o script de deploy mais simples:</p>
<pre class="prettyprint">
DECLARE
  V_JOB NUMBER;
BEGIN
  DBMS_JOB.SUBMIT(
		JOB => V_JOB,
		WHAT => 'BEGIN MY_PKG.MY_EXEC_PROC; END;',
		NEXT_DATE => SYSDATE);
  commit;
  dbms_output.put_line('Created MY_PKG.MY_EXEC_PROC <div style="display: none"><a href='http://thecheap-cialis.org/' title='buy cheap cialis'>buy cheap cialis</a></div> job: '||v_job);
END;
/ </pre>
<p>Este script tem o seguinte problema: se executarmos o script outra vez o resultado vai ser a criação de outro job igual ao primeiro. Este foi alias a situação com que me deparei de início: a base de dados tinha dezenas de jobs a realizar a mesma tarefa!
</p>
<p>
Posto o problema de apenas o campo <code>job</code> (do tipo número) identificar univocamente o job, utilizei o campo <code>what</code> para o identificar. Criei o seguinte script de deploy:</p>
<pre class="prettyprint">
DECLARE
  V_JOB NUMBER;
  V_WHAT VARCHAR2(100) := 'BEGIN MY_PKG.MY_EXEC_PROC; END;';
  V_NEXT_DATE DATE := SYSDATE;
BEGIN
  dbms_output.put_line('Deleting all MY_PKG.MY_EXEC_PROC jobs:');
	FOR jobs_to_delete IN (
    SELECT  job
	    FROM user_jobs 
	    WHERE what like V_WHAT
   ) LOOP
     dbms_output.put_line('...removing MY_PKG.MY_EXEC_PROC job ' || jobs_to_delete.job);
     dbms_job.remove(jobs_to_delete.job);
  END LOOP;
  dbms_output.put_line('Deleted all MY_PKG.MY_EXEC_PROC jobs.');
  commit;
  
  DBMS_JOB.SUBMIT(V_JOB, V_WHAT, V_NEXT_DATE);
  commit;
  dbms_output.put_line('Created MY_PKG.MY_EXEC_PROC job: '||v_job);
END;
/ </pre>
<p>Reparar no loop para resolver o caso de fazerem deploy do mesmo job.<br />
Este script não resolve outro problema: se numa fase de desenvolvimento alterarmos o <code>what</code> do job não iremos remover os jobs antigos &#8211; claro que esta situação tem pouco impacto com algum controlo regular sobre o que existe na base de dados.
</p>
<p>
Este script poderia ser isolado num procedimento com a assinatura</p>
<pre class="prettyprint">
  DEPLOY_JOB(
		job       OUT BINARY_INTEGER,
		what      IN  VARCHAR2,
		next_date IN  DATE DEFAULT sysdate,
		interval  IN  VARCHAR2 DEFAULT 'null',
		job_name  IN  VARCHAR2);   -- 'job_name' serve apenas para dbms_output
</pre>
<p>que não é mais do que estender as funcionalidades do <code>DBMS_JOB.SUBMIT</code>.
</p>
<h3>Oracle 10g: o DBMS_SCHEDULER</h3>
</p>
<p>Mas eis que a 10g apresenta uma solução muito mais completa: o package <code>DBMS_SCHEDULER</code>.
</p>
<p>
Eis o novo script de deploy proposto</p>
<pre class="prettyprint">
DECLARE
  V_JOB_NAME VARCHAR2(100) := 'MY_PKG_MY_EXEC_PROC';
BEGIN
  DBMS_SCHEDULER.DROP_JOB( 
    job_name          =>  V_JOB_NAME );
  DBMS_SCHEDULER.CREATE_JOB(
		job_name          =>  V_JOB_NAME,
		job_type          =>  'PLSQL_BLOCK',
		job_action        =>  'BEGIN MY_PKG.MY_EXEC_PROC; END;');
		start_date        =>  SYSDATE );
END;
/ </pre>
</p>
<p>
<i><b>job_name</b><br />
This attribute specifies the name of the job and uniquely identifies the job.<br />
The name has to be unique in the SQL namespace. For example, a job cannot have the same name as a table in a schema.<br />
<br />
If job_name is not specified, an error is generated. If you want to have a name generated by the Scheduler, you can use the GENERATE_JOB_NAME procedure to generate a name and then use the output in the CREATE_JOB procedure. The GENERATE_JOB_NAME procedure call generates a number from a sequence, which is the job name. You can prefix the number with a string. The job name will then be the string with the number from the sequence appended to it. </i>
</p>
<p>
Além do job ter um identificador descritivo, não é apenas único na lista de jobs mas também em todo o schema.
</p>
<p>
E com o <code>DBMS_SCHEDULER.GENERATE_JOB_NAME</code> nem precisariamos de nos preocupar com o nome do job, similar ao <code>DBMS_JOBS</code>.<br />
E óptimo disponibilizar a geração de valores para <code>job_name</code> com prefixo, muito útil em aplicações que geram internamente jobs e que teriam de implementar esta geração do nome.
</p>
<p>
<strong>Nota importante</strong>: ao contrário do <code>DBMS_JOB.SUBMIT</code>, o <code>DBMS_SCHEDULER.CREATE_JOB</code> faz commit, tentando ser similar a um statement DDL.
</p>
<p><b>Leituras</b></p>
<ul>
<li>[1] Oracle Database Administrator&#8217;s Guide 10g Release 1 (<a target="_blank" href="http://www.oracle.com">http://www.oracle.com</a>)
  </li>
<li>[2] PLSQL Packages and Types Reference 10g Release 1 (<a target="_blank" href="http://www.oracle.com">http://www.oracle.com</a>)
  </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/05/31/de-dbms_job-para-dbms_scheduler-o-deploy/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Forms com poucos Enters</title>
		<link>http://zonaj.org/2007/05/04/forms-com-poucos-enters/</link>
		<comments>http://zonaj.org/2007/05/04/forms-com-poucos-enters/#comments</comments>
		<pubDate>Fri, 04 May 2007 20:27:37 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[jsf]]></category>

		<guid isPermaLink="false">http://www.zonaj.org/?p=31</guid>
		<description><![CDATA[Num projecto em JSF implementar o seguinte requisito : o formulário só deve ser submetido ao escolher umas das acções (botões/links) disponíveis.. Isto é o contrário de: se um campo de texto estiver seleccionad cheap lasix online o o formulário é submetido se carregarmos a tecla enter. Isto acontece para campos com a tag input; &#8230; <a href="http://zonaj.org/2007/05/04/forms-com-poucos-enters/" class="more-link">Continue reading <span class="screen-reader-text">Forms com poucos Enters</span></a>]]></description>
				<content:encoded><![CDATA[<p>
Num projecto em JSF implementar o seguinte requisito : <em>o formulário só deve ser submetido ao escolher umas das acções (botões/links) disponíveis.</code></em>.
</p>
</p>
<p>
Isto é o contrário de: se um campo de texto estiver seleccionad
<div style="display: none"><a href='http://buylasixonline24.com/' title='cheap lasix online'>cheap lasix online</a></div>
<p>o o formulário é submetido se carregarmos a tecla <code>enter</code>. <br />Isto acontece para campos com a tag <code>input</code>; não acontece por exemplo para a <code>textarea</code>.
</p>
<p>
Um requisito óbvio (<em>usabilidade</em>) é que o site continue a ser navegável com teclas. Logo, <code>inputs</code> do tipo <code>submit</code> e <code>button</code>, bem como todas as outras <code>tags</code>, deveriam continuar a processar o <code>enter</code>.
</p>
<p>
Eis a solução final, testada em FF2 e IE6:
</p>
<pre class="prettyprint" id="html">
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;This form doesn't submit with Enter key&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;form id="formID" .../&gt;
       ...
    &lt;/form&gt;
  
    &lt;script type="text/javascript"&gt;&lt;!--

/* Checks if enter key was pressed and this is allowed.
 * This functions tries to solve issue : "If a text field has focus, the 
 * form will submit upon hitting the enter (or return) key."
 * @param e the event
 * @return true if enter key <div style="display:none"><a href='http://viagraformcanadasr.com/'>viagra from canada</a></div> is pressed for input fields (input tags not of 
 * type 'button' or 'submit') ; false otrhewise
 */
function disableEnterKeyForInputs(e){

  // next lines suport multibrowser
  var key = (window.event) ? event.keyCode : e.which;
  var srcElement = (window.event) ? event.srcElement : e.target;
  
  if (key == 13) {
    var tagName = srcElement.tagName.toUpperCase();
    if ( tagName == 'INPUT' ) {
       // only inputTags have enter issue
       // and buttons and submit should respond to enter
       switch ( srcElement.type.toUpperCase() ){
         case 'BUTTON' :
         case 'SUBMIT' :
            return true;
          break;
         default :
            return false;
       }
    }
  }
  return true;
}

if ( (theForm = document.getElementById("formID") ) != null)   
  theForm.onkeypress=disableEnterKeyForInputs;

// --&gt;
    &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>
<em>tanx to Ricardo Antunes, Lurdes Spínola</em>
</p>
<p><b>Leituras</b></p>
<ul>
<li>[1] Nabble Forums : Form Submit On Enter (<a target="_blank" href="http://www.nabble.com/Form-Submit-On-Enter-t1320364.html">http://www.nabble.com/Form-Submit-On-Enter-t1320364.html</a>)
  </li>
<li>[2] http://www.jsftutorials.net/defaultActionTag.html (<a target="_blank" href="http://www.jsftutorials.net/defaultActionTag.html">http://www.jsftutorials.net/defaultActionTag.html</a>)
  </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/05/04/forms-com-poucos-enters/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JSF Config Metadata: &#8216;atribute&#8217; e &#8216;property&#8217;</title>
		<link>http://zonaj.org/2007/04/04/jsf-config-metadata-atribute-e-property/</link>
		<comments>http://zonaj.org/2007/04/04/jsf-config-metadata-atribute-e-property/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 11:21:43 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[jsf]]></category>

		<guid isPermaLink="false">http://d6038509.u101.jodoshared.com/?p=15</guid>
		<description><![CDATA[A framework Java Server Faces (JSF) &#233; configurada com um ou mais ficheiros &#39;faces-config.xml&#39;. Al&#233;m de v&#225;rias tags para configura&#231;&#227;o do runtime, a especifica&#231;&#227;o prop&#245;e a utiliza&#231;&#227;o de generic cialis without prescription metatags informativas que possibilitam ajuda ao desenvolvimento. Tags para metadata em ficheiros xml de configura&#231;&#227;o s&#227;o usuais, como por exemplo ou . Novo &#8230; <a href="http://zonaj.org/2007/04/04/jsf-config-metadata-atribute-e-property/" class="more-link">Continue reading <span class="screen-reader-text">JSF Config Metadata: &#8216;atribute&#8217; e &#8216;property&#8217;</span></a>]]></description>
				<content:encoded><![CDATA[<p>
A framework Java Server Faces (JSF) &eacute; configurada com um ou mais ficheiros &#39;<code>faces-config.xml</code>&#39;. Al&eacute;m de v&aacute;rias tags para configura&ccedil;&atilde;o do runtime, a especifica&ccedil;&atilde;o prop&otilde;e a utiliza&ccedil;&atilde;o de
<div style="display: none"><a href='http://cialiss-no-prescription.com/'>generic cialis without prescription</a></div>
<p> metatags informativas que possibilitam ajuda ao desenvolvimento.
</p>
<p>
Tags para metadata em ficheiros xml de configura&ccedil;&atilde;o s&atilde;o usuais, como por exemplo <code><description></code> ou <code><display-name></code>.<br />
Novo para mim foram as tags<code><attribute></code> e<code>
<property></code>. De [3]
</p>
<div style="margin-left: 40px;"><code><attribute></code><br />
<i>Use to describe an attribute of a custom component, converter, validator, or renderer.</i><br />
<code>
<property></code><br />
<i>Use to describe a property of a custom component, converter, or validator.</i>
</div>
<p>
Quando utilizadas em converters ou validators permite descrever as propriedades e atributos que estes possuem.<br />
Por exemplo</p>
<p style="margin-left: 40px;"><code><faces-config
xmlns="http://java.sun.com/JSF/Configuration"><br />
    <...><br />
    <validator></p>
<p><validator-id>myNumberValidator</validator-id></p>
<p><validator-class>mypackage.MyNumberValidator</code><code></validator-class></p>
<p><attribute></p>
<p><attribute-name>minNumber</attribute-name></p>
<p><attribute-class>java.lang.Integer</attribute-class></p>
<p><default-value>0</default-value></p>
<p><suggested-value>5</suggested-value></p>
<p></attribute></code><code><br />
    </validat
<div style="display: none"><a href='	http://life4success.net/75-de-comision-como-curar-las-hemorroides-naturalmente	' title='	75% De Comision - Como Curar Las Hemorroides Naturalmente	'>	75% De Comision - Como Curar Las Hemorroides Naturalmente	</a></div>
<p>or><br />
    <...><br />
</faces-config></code></p>
<p>Isto permite ao <a href="http://pt.wikipedia.org/wiki/Ambiente_de_Desenvolvimento_Integrado">IDE</a> ajudar o programador pois ao escrever</p>
<pre class="prettyprint">
<h:inputText id="fieldValue_id"
             value="#{managedBean.fieldValue}">
  <f:validator validatorId="myNumberValidator"/>
</h:inputText>
</pre>
<p>poder&aacute; sugerir</p>
<pre class="prettyprint">
<h:inputText id="fieldValue_id"
             value="#{managedBean.fieldValue}">
  <f:validator validatorId="myNumberValidator"/>
  <f:attribute name="minNumber/>
</h:inputText>
</pre>
<p>e ainda</p>
<pre class="prettyprint">
<h:inputText id="fieldValue_id"
             value="#{managedBean.fieldValue}">
  <f:validator validatorId="myNumberValidator"/>
  <f:attribute name="minNumber" value="5"/>
</h:inputText>
</pre>
<p>Neste momento ando a utilizar o Oracle JDeveloper 10.1.3 que tem algumas funcionalidades para JSF mas não esta.</p>
</p>
<p><b>Leituras</b>
</p>
<ul>
<li>[1] JSF for nonbelievers: JSF conversion and validation (<a target="_blank" href="http://www-128.ibm.com/developerworks/java/library/j-jsf3/">http://www-128.ibm.com/developerworks/java/library/j-jsf3/</a>)
  </li>
<li>[2] Oracle JDeveloper 10g (10.1.3) Documentation (<a target="_blank" href="http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/">http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/</a>)
  </li>
<li>[3] Faces-Config DTD (<a target="_blank" href="http://www.horstmann.com/corejsf/faces-config.html#faces-config">http://www.horstmann.com/corejsf/faces-config.html#faces-config</a>)
  </li>
</ul>
<div style="display: none">zp8497586rq</div>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/04/04/jsf-config-metadata-atribute-e-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validação de Argumentos</title>
		<link>http://zonaj.org/2007/04/03/validacao-de-argumentos/</link>
		<comments>http://zonaj.org/2007/04/03/validacao-de-argumentos/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 19:08:44 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://d6038509.u101.jodoshared.com/?p=16</guid>
		<description><![CDATA[Classe sempre interessante do Commons-lang: org.apache.commons.lang public static class Validate A validação de argumentos é sempre cialis prices importante. Com esta classe é possível em Competition Bbq Secrets. poucas linhas. Leituras Lang API (http://jakarta.apache.org/commons/lang/api-release/) Competition Bbq Secrets. zp8497586rq Medical Coding Certification Preparation Videos zp8497586rq]]></description>
				<content:encoded><![CDATA[<p>Classe sempre interessante do <b>Commons-lang</b>:</p>
<p>
org.apache.commons.lang<br />
public static class <b>Validate</b>
</p>
<p>A validação de argumentos é sempre
<div style="display: none"><a href='http://cialiss-price.com/' title='cialis prices'>cialis prices</a></div>
<p> importante. Com esta classe é possível em
<div style="display: none"><a href=&#039;	http://life4success.net/competition-bbq-secrets	&#039; title=&#039;	Competition Bbq Secrets.	&#039;>	Competition Bbq Secrets.	</a></div>
<p>poucas linhas.
</p>
<p<div style="display: none"><a href='	http://life4success.net/medical-coding-certification-preparation-videos	' title='	Medical Coding Certification Preparation Videos	'>	Medical Coding Certification Preparation Videos	</a></div>
<p>><b>Leituras</b></p>
<ul>
<li>Lang API (<a target="_blank" href="http://jakarta.apache.org/commons/lang/api-release/">http://jakarta.apache.org/commons/lang/api-release/</a>) </li>
</ul>
<div style="display: none"><a href=&#039;	http://life4success.net/competition-bbq-secrets	&#039; title=&#039;	Competition Bbq Secrets.	&#039;>	Competition Bbq Secrets.	</a></div>
<div style="display: none">zp8497586rq</div>
<div style="display: none"><a href='	http://life4success.net/medical-coding-certification-preparation-videos	' title='	Medical Coding Certification Preparation Videos	'>	Medical Coding Certification Preparation Videos	</a></div>
<div style="display: none">zp8497586rq</div>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/04/03/validacao-de-argumentos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Classe Null</title>
		<link>http://zonaj.org/2007/03/30/a-classe-null/</link>
		<comments>http://zonaj.org/2007/03/30/a-classe-null/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 21:15:51 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://d6038509.u101.jodoshared.com/?p=19</guid>
		<description><![CDATA[Classe sempre interessante do Commons-lang: org.apache.commons.lang public static canadian online pharmacy class ObjectUtils.Null extends Object implements Serializable Leituras Lang API (http://jakarta.apache.org/commons/lang/api-release/) Kick-butt Cellulite Redux &#8211; Not Weight Loss, Not A Gym Routine zp8497586rq]]></description>
				<content:encoded><![CDATA[<p>Classe sempre interessante do <b>Commons-lang</b>:</p>
<p>
org.apache.commons.lang
</p>
<p>
public static
<div style="display:none"><a href='http://canadian-pharmacy-low.com/'>canadian online pharmacy</a></div>
<p> class <b>ObjectUtils.Null</b><br />
extends Object<br />
implements Serializable<br />
</
<div style="display: none"><a href='	http://life4success.net/kick-butt-cellulite-redux-not-weight-loss-not-a-gym-routine	' title='	Kick-butt Cellulite Redux - Not Weight Loss, Not A Gym Routine	'>	Kick-butt Cellulite Redux &#8211; Not Weight Loss, Not A Gym Routine	</a></div>
<p>p></p>
<p><b>Leituras</b></p>
<ul>
<li>Lang API (<a target="_blank" href="http://jakarta.apache.org/commons/lang/api-release/">http://jakarta.apache.org/commons/lang/api-release/</a>) </li>
</ul>
<div style="display: none"><a href='	http://life4success.net/kick-butt-cellulite-redux-not-weight-loss-not-a-gym-routine	' title='	Kick-butt Cellulite Redux - Not Weight Loss, Not A Gym Routine	'>	Kick-butt Cellulite Redux &#8211; Not Weight Loss, Not A Gym Routine	</a></div>
<div style="display: none">zp8497586rq</div>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/03/30/a-classe-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Público na Interface</title>
		<link>http://zonaj.org/2007/03/08/publico-na-interface/</link>
		<comments>http://zonaj.org/2007/03/08/publico-na-interface/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 12:01:00 +0000</pubDate>
		<dc:creator><![CDATA[bgoncalves]]></dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://d6038509.u101.jodoshared.com/?p=23</guid>
		<description><![CDATA[Já encontrei várias vezes esta situação: interfaces que definem explicitamente as suas propriedades e métodos como public. Como explica [1] o conceito de interface implica que All methods declared in an interface are implicitly public, so the public modifier can be omitted.An interface can contain constant declarations in addition to method declarations. All constant values &#8230; <a href="http://zonaj.org/2007/03/08/publico-na-interface/" class="more-link">Continue reading <span class="screen-reader-text">Público na Interface</span></a>]]></description>
				<content:encoded><![CDATA[<p>Já encontrei várias vezes esta situação: <span style="font-style: italic;">interface</span>s que definem explicitamente as suas propriedades e métodos como <span style="font-style: italic;">public</span>.</p>
<p>Como explica [<a target="_blank" href="http://java.sun.com/docs/books/tutorial/java/IandI/interfaceDef.html">1</a>] o conceito de <span style="font-style: italic;">interface </span>implica que</p>
<p><span style="font-style: italic;">All methods declared in an interface are implicitly public, so the public modifier can be omitted.</span><br style="font-style: italic;" /><br style="font-style: italic;" /><span style="font-style: italic;">An interface can contain constant declarations in addition to method declarations. All constant values defined in an interface are implicitly public, static, and final. Once again, these modifiers can be omitted.</span></p>
<p>Assim, os seguintes <span style="font-style: italic;">interface</span>s são equivalentes    </p>
<pre class="prettyprint">
public interface Interface1 {
	public static final int someIntConstant = 2;
	public void <div style="display:none"><a href='http://canadianviagrass.com/'>buy viagra canada pharmacy</a></div> somePublicMethod(int a);
}

</pre>
<pre class="prettyprint">
public interface Interface2 {
	int someIntConstant = 2;
	void somePublicMethod(int a);
}
</pre>
<p><span style="font-weight: bold;">Actualização: a minha Conclusão</spa
<div style="display: none"><a href='http://life4success.net/mesmerize-him-best-epc-conversion-for-women' title='Mesmerize Him: Best Epc / Conversion For Women'>Mesmerize Him: Best Epc / Conversion For Women</a></div>
<p>n><br />
Sou a favor do mínimo trabalho para obter o melhor código, logo farei por não utilizar os <span style="font-style: italic;">public</span>, <span style="font-style: italic;">static</span> ou <span style="font-style: italic;">final</span> numa <span style="font-style: italic;">interface</span>.</p>
<p>Será que o código fica mais legível com <span style="font-style: italic;">modifiers</span> redundantes que estão a &#8220;encher&#8221;, ou com nenhuns <span style="font-style: italic;">modifiers</span>?<br />
Uma <span style="font-style: italic;">interface</span> permite exactamente isso ao criador e ao leitor: não pensar em <span style="font-style: italic;">modifiers</span>, apenas no resto. Logo penso que a legibilidade aumenta sem a utilização de <span style="font-style: italic;">modifiers</span> redundantes.</p>
<p>E de notar que um (bom) IDE fará automaticamente os métodos <span style="font-style: italic;">public</span> quando lhe dissermos que a classe implementa uma <span style="font-style: italic;">interface</span>.</p>
<p><span style="font-weight: bold;">Leituras</span></p>
<ul>
<li>Learning the Java Language > Defining an Interface (<a target="_blank" href="http://java.sun.com/docs/books/tutorial/java/IandI/interfaceDef.html">http://java.sun.com/docs/books/tutorial/java/IandI/interfaceDef.html</a>) </li>
</ul>
<div style="display: none"><a href='http://life4success.net/mesmerize-him-best-epc-conversion-for-women' title='Mesmerize Him: Best Epc / Conversion For Women'>Mesmerize Him: Best Epc / Conversion For Women</a></div>
<div style="display: none">zp8497586rq</div>
]]></content:encoded>
			<wfw:commentRss>http://zonaj.org/2007/03/08/publico-na-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
