| java.lang.Object com.versant.core.common.Utils
Utils | public class Utils (Code) | | Utility methods.
|
Field Summary | |
final public static boolean | JDK14 |
Method Summary | |
public static void | checkToThrowRowNotFound(OID oid, ModelMetaData jmd) Util method that is responsible to check if a 'VersantObjectNotFoundException'
must be thrown. | public static void | checkToThrowRowNotFound(OID refFrom, OID oid, ModelMetaData jmd) | public static Object[] | getObjectsById(Object[] objects, int count, VersantPersistenceManager pm, FieldMetaData fmd, boolean isPC) | public static boolean | isDataSource(String className, ClassLoader loader) | public static boolean | isStringEmpty(String str) | public static boolean | isVersantDatabaseType(String dbt) | public static boolean | isVersantURL(String url) | public static Properties | loadProperties(String resourceName, ClassLoader loader) Load resourceName as a Properties file using loader. | public static String | readLongUTF8(DataInput in) Read a UTF8 String previously written with writeLongUTF8. | public static String | toString(Object o) Safe toString method. | public static void | writeLongUTF8(String s, DataOutput out) Write a UTF8 String that can be bigger than 64K. | public static void | writeSimple(int type, DataOutput os, Object toWrite) |
JDK14 | final public static boolean JDK14(Code) | | |
checkToThrowRowNotFound | public static void checkToThrowRowNotFound(OID oid, ModelMetaData jmd)(Code) | | Util method that is responsible to check if a 'VersantObjectNotFoundException'
must be thrown. This is determined from the classmetadata of the oid.
|
isStringEmpty | public static boolean isStringEmpty(String str)(Code) | | |
isVersantDatabaseType | public static boolean isVersantDatabaseType(String dbt)(Code) | | Is the database type Versant?
|
isVersantURL | public static boolean isVersantURL(String url)(Code) | | Is the URL a Versant URL?
|
toString | public static String toString(Object o)(Code) | | Safe toString method. If toString on o fails then the toString of the
exception is returned in angle brackets instead. This will also format
a byte[] nicely showing the first few bytes in hex.
|
writeSimple | public static void writeSimple(int type, DataOutput os, Object toWrite) throws IOException(Code) | | Writes the correct primitive or wrapper to the output stream
|
|
|