<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>André L. S.</title>
	<link>http://www.andrels.com/wp-en_US</link>
	<description>Softwares Development, Technologies and Curiosities</description>
	<lastBuildDate>Tue, 02 Mar 2010 15:53:24 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Saving files in BLOB table column of a data base</title>
		<description><![CDATA[To insert a file, is it in any format, you need call the method setBinaryStream, implemented by PreparedStatement.

PreparedStatemente.setBinaryStream(int index, Inputstream is, int length);

In sample, we set a table called FILEthat contains BLOB column called BIN.

//Normal connection, as any JDBC connection
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@&#60;IP&#62;:&#60;PORT&#62;:&#60;SID&#62;","&#60;USER&#62;","&#60;PASSWORD&#62;");

//Reading the file and retrieving an InputStream
File file= new File("&#60;COMPLETE_FILE_PATH&#62;");
FileInputStream fis = new [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2010/02/saving-files-in-blob-table-column-of-a-data-base/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>Retrieving an Oracle cursor in Java</title>
		<description><![CDATA[Many people come here looking for one way to retrieve cursors of Oracle procedures in Java. To them, I&#8217;ve here are a tutorial showing how to do this.
To retrieve the cursor you should declare him how a REF CURSOR in Package spec.
  --Creating the REF CURSOR type
  type g_cursor is ref cursor;

In both, [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2010/01/retieving-an-oracle-cursor-in-java/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>How to enable Telnet and TFTP Client on Windows 7</title>
		<description><![CDATA[Like in Windows Vista, Windows 7 don&#8217;t enable Telnet and TFTP Clients in installation.
To enable them, open Control Panel &#62; Programs and Features &#62; click Turn Windows features on or off in left side &#62; enable Client Telnet  and  Client TFTP then click in OK.
I not tested in Windows Vista yet, but the process can [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/12/how-to-enable-telnet-and-tftp-client-on-windows-7/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>The most used Unix commands for Windows</title>
		<description><![CDATA[Have you thought about run commands like grep, chown, tail e su in Windows SO and can change command dir by ls?
Looking in internet for an alternative Win32 to command tail, I found UnixUtils. A compilation for Windows of most used commands in Linux/Unix.
You can download the ZIP file in SourceForge clicking here.
Bye!
]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/11/the-most-used-unix-commands-for-windows/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>Generating &#8216;EXE&#8217; to start your Java applications</title>
		<description><![CDATA[Many developers need, or have needed, distribute their Java applications so that Windows users could start them naturally, not running java -jar &#60;jar file&#62; command or batch (.BAT) file.
I&#8217;ve been there too, then I found a easy and with many resources solution: JSmooth
This software allow you &#8220;transform&#8221; your JAR file in an executable (EXE), but, [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/10/generating-exe-to-start-your-java-applications/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>Retrieving objects collection from Oracle procedure</title>
		<description><![CDATA[As I&#8217;ve promised in post &#8220;Learn to pass a Java Object as Oracle Procedure parameter&#8220;, I&#8217;ll show how retrieve object that have a collection of objects as attribute through of an Oracle procedure. Is highly recommended to read previous post.
For this tutorial, we&#8217;ll need create the table TBL_CLASS and add your primary key as foreign [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/09/retrieving-objects-collection-from-oracle-procedure/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>Taking Screen Shots with Java</title>
		<description><![CDATA[Here I&#8217;ll show how to implements a class to take Screen shots.
I thinking about the complexity of a class that takes screen shots and store the files in hard disk and, asking to &#8220;uncle G&#8221;, I fonded the class Robot, that provide createScreenCapture method.
Now I&#8217;ll show how to implement this functionality:
Robot robot = new Robot();
//Setting [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/09/taking-screen-shots-with-java/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>Setting maximum number of characters in JTextField</title>
		<description><![CDATA[The default implementation of JTextField not allow set maximum number of characters. To enable this resource you need implements a Document, overriding insertString method.

public class MaxLengthTextDocument extends PlainDocument {
	//Store maximum characters permitted
	private int maxChars;

	@Override
	public void insertString(int offs, String str, AttributeSet a)
			throws BadLocationException {
		if(str == null &#124;&#124; (getLength() + str.length() > maxChars)){
			str = str.substring(0, maxChars);
		}
		super.insertString(offs, str, [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>Introducing padding in a JLabel</title>
		<description><![CDATA[To introduce padding in a JLabel can we use an EmptyBorder, where the attribute width will be our padding. Like this:
...
JLabel jLabel = new JLabel("My JLabel");
//Border used as padding
Border paddingBorder = BorderFactory.createEmptyBorder(10,10,10,10);

jLabel.setBorder(BorderFactory.createCompoundBorder(border,paddingBorder));
...
Here, the JLabel contains a padding with 10 pixels in top, right, bottom and left respectively.

If you want to put border around the JLabel, [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/08/introducing-padding-in-a-jlabel/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
	<item>
		<title>iBatis tutorial, learning the basic</title>
		<description><![CDATA[When we talk about the persistence framework, we think in Hibernate/JPA. Recently I was presented to iBatis, a framework that so easy to install, to configure and to use. You can download it in your sponsor site, Apache, clicking here.
Setting iBatis
Unlike another frameworks, to configure iBatis you need only one XML file, called SqlMapConfig.
The mains [...]]]></description>
		<link>http://www.andrels.com/wp-en_US/index.php/2009/07/ibatis-tutorial-learning-the-basic/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
			</item>
</channel>
</rss>
