MySQL
Class MySQLCommons

java.lang.Object
  extended by MySQL.MySQLCommons

public class MySQLCommons
extends java.lang.Object


Field Summary
static boolean USE_RANDOM_BYTES_FOR_IMAGE
           
 
Constructor Summary
MySQLCommons()
           
 
Method Summary
static void dropConstraint(java.sql.Statement st, java.lang.String constName, java.lang.String tableName)
           
static void dropIndex(java.sql.Statement st, java.lang.String idxName, java.lang.String tableName)
           
static void dropSequence(java.sql.Statement st, java.lang.String seqName)
           
static void dropStoredProcedure(java.sql.Statement st, java.lang.String procName)
           
static void dropTable(java.sql.Statement st, java.lang.String tableName)
           
static byte[] GetImageFromFS(java.lang.String userid, boolean profileimg, java.lang.String FSimagePath)
           
static int insertEntityBoosted(java.lang.String entitySet, java.lang.String entityPK, java.util.HashMap<java.lang.String,ByteIterator> values, boolean insertImage, java.sql.Connection conn, java.lang.String FSimagePath)
           
static boolean StoreImageInFS(java.lang.String userid, byte[] image, boolean profileimg, java.lang.String FSimagePath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_RANDOM_BYTES_FOR_IMAGE

public static boolean USE_RANDOM_BYTES_FOR_IMAGE
Constructor Detail

MySQLCommons

public MySQLCommons()
Method Detail

StoreImageInFS

public static boolean StoreImageInFS(java.lang.String userid,
                                     byte[] image,
                                     boolean profileimg,
                                     java.lang.String FSimagePath)

GetImageFromFS

public static byte[] GetImageFromFS(java.lang.String userid,
                                    boolean profileimg,
                                    java.lang.String FSimagePath)

insertEntityBoosted

public static int insertEntityBoosted(java.lang.String entitySet,
                                      java.lang.String entityPK,
                                      java.util.HashMap<java.lang.String,ByteIterator> values,
                                      boolean insertImage,
                                      java.sql.Connection conn,
                                      java.lang.String FSimagePath)

dropSequence

public static void dropSequence(java.sql.Statement st,
                                java.lang.String seqName)

dropIndex

public static void dropIndex(java.sql.Statement st,
                             java.lang.String idxName,
                             java.lang.String tableName)

dropTable

public static void dropTable(java.sql.Statement st,
                             java.lang.String tableName)

dropStoredProcedure

public static void dropStoredProcedure(java.sql.Statement st,
                                       java.lang.String procName)

dropConstraint

public static void dropConstraint(java.sql.Statement st,
                                  java.lang.String constName,
                                  java.lang.String tableName)