|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.language.markup.xsp.EsqlHelper
public class EsqlHelper
This is a helper class to remove redundant code in esql pages. Based on the orginal esql.xsl.
Constructor Summary | |
---|---|
EsqlHelper()
|
Method Summary | |
---|---|
static String |
getAscii(CallableStatement cs,
int column,
String defaultString)
returns ascii string from CLOB or String column |
static String |
getAscii(ResultSet set,
int column,
String defaultString)
returns ascii string from CLOB or String column |
static String |
getAscii(ResultSet set,
String column,
String defaultString)
returns ascii string from CLOB or String column |
static byte[] |
getBlob(CallableStatement cs,
int column,
String defaultString)
returns byte array from BLOB |
static byte[] |
getBlob(ResultSet set,
int column)
returns byte array from BLOB |
static byte[] |
getBlob(ResultSet set,
String column)
returns byte array from BLOB |
static String |
getStringFromByteArray(byte[] bytes,
String encoding,
String defaultString)
|
static String |
getStringOrClob(CallableStatement cs,
int column,
String defaultString)
returns Unicode encoded string from CLOB or String column |
static String |
getStringOrClob(ResultSet set,
int column,
String defaultString)
returns Unicode encoded string from CLOB or String column |
static String |
getStringOrClob(ResultSet set,
String column,
String defaultString)
returns Unicode encoded string from CLOB or String column |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EsqlHelper()
Method Detail |
---|
public static byte[] getBlob(ResultSet set, String column) throws RuntimeException
RuntimeException
public static byte[] getBlob(ResultSet set, int column) throws Exception
Exception
public static byte[] getBlob(CallableStatement cs, int column, String defaultString) throws Exception
Exception
public static String getStringOrClob(ResultSet set, String column, String defaultString) throws RuntimeException
RuntimeException
public static String getStringOrClob(ResultSet set, int column, String defaultString) throws Exception
Exception
public static String getStringOrClob(CallableStatement cs, int column, String defaultString) throws Exception
Exception
public static String getAscii(ResultSet set, String column, String defaultString) throws RuntimeException
RuntimeException
public static String getAscii(ResultSet set, int column, String defaultString)
public static String getAscii(CallableStatement cs, int column, String defaultString)
public static String getStringFromByteArray(byte[] bytes, String encoding, String defaultString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |