|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.components.language.markup.xsp.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 final byte[] getBlob(ResultSet set, String column) throws RuntimeException
RuntimeException
public static final byte[] getBlob(ResultSet set, int column) throws Exception
Exception
public static final byte[] getBlob(CallableStatement cs, int column, String defaultString) throws Exception
Exception
public static final String getStringOrClob(ResultSet set, String column, String defaultString) throws RuntimeException
RuntimeException
public static final String getStringOrClob(ResultSet set, int column, String defaultString) throws Exception
Exception
public static final String getStringOrClob(CallableStatement cs, int column, String defaultString) throws Exception
Exception
public static final String getAscii(ResultSet set, String column, String defaultString) throws RuntimeException
RuntimeException
public static final String getAscii(ResultSet set, int column, String defaultString)
public static final String getAscii(CallableStatement cs, int column, String defaultString)
public static final String getStringFromByteArray(byte[] bytes, String encoding, String defaultString)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |