public class SQLUtil extends Object
Constructor and Description |
---|
SQLUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
cast(ITypeDesc typeDesc,
String propertyName,
Object obj,
boolean isPreparedValue)
Verifies that the correct type of object is supplied for given column.
|
static ITypeDesc |
checkTableExistence(String tableName,
IJSpace space)
Checks if given table (class name) exists in space
|
static String |
convertAsciiInputStreamToString(InputStream inputStream,
int inputStreamLength)
Converts an ascii input stream to a string
|
static byte[] |
convertInputStreamToByteArray(InputStream inputStream,
int inputStreamLength)
Converts an input stream to a byte array
|
static String |
convertReaderToString(Reader reader,
int readerLength)
Convert a reader to a string
|
static IRemoteJSpaceAdmin |
getAdmin(IJSpace space)
Get this space admin
|
static Object |
getFieldValue(IEntryPacket e,
ITypeDesc typeDesc,
String propertyName) |
static Object |
getFieldValue(IEntryPacket entry,
QueryColumnData columnData) |
public static Object cast(ITypeDesc typeDesc, String propertyName, Object obj, boolean isPreparedValue) throws SQLException
SQLException
public static Object getFieldValue(IEntryPacket e, ITypeDesc typeDesc, String propertyName)
public static Object getFieldValue(IEntryPacket entry, QueryColumnData columnData)
public static IRemoteJSpaceAdmin getAdmin(IJSpace space) throws RemoteException
RemoteException
public static ITypeDesc checkTableExistence(String tableName, IJSpace space) throws SQLException
SQLException
public static byte[] convertInputStreamToByteArray(InputStream inputStream, int inputStreamLength) throws IOException
inputStream
- The input streaminputStreamLength
- Number of bytes to read from input streamIOException
public static String convertAsciiInputStreamToString(InputStream inputStream, int inputStreamLength) throws IOException
inputStream
- The input stream to convert to stringinputStreamLength
- The number of bytes to read from input streamIOException
public static String convertReaderToString(Reader reader, int readerLength) throws IOException
reader
- The readerreaderLength
- The number of characters to read from the readerIOException
Copyright © GigaSpaces.