jueves, 26 de junio de 2014

Arquitectura de SW

WSDL
http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/web_services/ws_wsdlstructure.html
http://docs.oracle.com/cd/B14099_19/integrate.1012/b14069/xsd.htm

Pruebas de caja negra: http://es.wikipedia.org/wiki/Caja_negra_(sistemas)

TOGAF
http://arquitecturaempresarialcali.wordpress.com/ea-frameworks/togaf/

miércoles, 25 de junio de 2014

Timestamp

   Timestamp time = new Timestamp(cal.getTimeInMillis());

Calendar.getTimeInMillis get the date of the actual date.

martes, 17 de junio de 2014

MyIbatis

http://stackoverflow.com/questions/10300559/java-sql-sqlexception-ora-01747

MAPS

Map ModeloPlanCargaMap = new HashMap();

ModeloPlanCargaMap.put("IdMpCarga", mpc.getIdMpCarga().toString());





 ${listValue.value}
         
 
 
 

martes, 3 de junio de 2014

CSV

.CSV , is the format for

Comma-separated values

There was no TypeHandler found for parameter BLOB

This error happens when u try to convert one inputStream into a BLOB,

For solve this you have to use an array of byte : Byte [], instead the inputStream type, in Ibatis.


In java code:
You can use Apache commons-io to handle this and similar tasks.
The IOUtils type has a static method to read an InputStream and return a byte[].
InputStream is;
byte[] bytes = IOUtils.toByteArray(is);
Internally this creates a ByteArrayOutputStream and copies the bytes to the output, then calls to ByteArray(). It handles large files by copying the bytes in blocks of 4MB.
ref: http://stackoverflow.com/questions/1264709/convert-inputstream-to-byte-in-java

Concatenate in a String SQL rows

Ok for this just select the table like this:

SELECT ColumnName||','||ColumnName||','||ColumnName||','||ColumnName||','||ColumnName||','||ColumnName||','||ColumnName FROM tableName;