common
Class RdbmsUtilities

java.lang.Object
  extended by common.RdbmsUtilities

public class RdbmsUtilities
extends java.lang.Object


Field Summary
static boolean USE_RANDOM_BYTES_FOR_IMAGE
           
 
Constructor Summary
RdbmsUtilities()
           
 
Method Summary
static void buildIndexes(java.util.Properties props, java.sql.Connection conn)
           
static void buildIndexesSqlServer(java.util.Properties props, java.sql.Connection conn)
           
static void createSchema(java.util.Properties props, java.sql.Connection conn)
           
static void createSchemaBoosted(java.util.Properties props, java.sql.Connection conn)
           
static void createSchemaBoosted2R1T(java.util.Properties props, java.sql.Connection conn)
           
static void createSchemaBoosted2R1TRefreshTechnique(java.util.Properties props, java.sql.Connection conn)
           
static void createSchemaRefreshTechnique(java.util.Properties props, java.sql.Connection conn)
           
static void createSchemaSqlServer(java.util.Properties props, java.sql.Connection conn)
           
static void createSchemaSXQLeasesTrigger(java.util.Properties props, java.sql.Connection conn)
           
static byte[] GetImageFromFS(java.lang.String userid, boolean profileimg, java.lang.String FSimagePath)
           
static java.util.HashMap<java.lang.String,java.lang.String> getInitialStats(java.sql.Connection conn)
           
static java.util.HashMap<java.lang.String,java.lang.String> getInitialStats2R1T(java.sql.Connection conn)
           
static java.util.HashMap<java.lang.String,java.lang.String> getInitialStatsBoosted(java.sql.Connection conn)
           
static int insertEntity(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 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

RdbmsUtilities

public RdbmsUtilities()
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)

insertEntity

public static int insertEntity(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)

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)

createSchema

public static void createSchema(java.util.Properties props,
                                java.sql.Connection conn)

buildIndexes

public static void buildIndexes(java.util.Properties props,
                                java.sql.Connection conn)

createSchemaSqlServer

public static void createSchemaSqlServer(java.util.Properties props,
                                         java.sql.Connection conn)

buildIndexesSqlServer

public static void buildIndexesSqlServer(java.util.Properties props,
                                         java.sql.Connection conn)

createSchemaSXQLeasesTrigger

public static void createSchemaSXQLeasesTrigger(java.util.Properties props,
                                                java.sql.Connection conn)

createSchemaRefreshTechnique

public static void createSchemaRefreshTechnique(java.util.Properties props,
                                                java.sql.Connection conn)

createSchemaBoosted2R1T

public static void createSchemaBoosted2R1T(java.util.Properties props,
                                           java.sql.Connection conn)

createSchemaBoosted2R1TRefreshTechnique

public static void createSchemaBoosted2R1TRefreshTechnique(java.util.Properties props,
                                                           java.sql.Connection conn)

createSchemaBoosted

public static void createSchemaBoosted(java.util.Properties props,
                                       java.sql.Connection conn)

getInitialStats

public static java.util.HashMap<java.lang.String,java.lang.String> getInitialStats(java.sql.Connection conn)

getInitialStats2R1T

public static java.util.HashMap<java.lang.String,java.lang.String> getInitialStats2R1T(java.sql.Connection conn)

getInitialStatsBoosted

public static java.util.HashMap<java.lang.String,java.lang.String> getInitialStatsBoosted(java.sql.Connection conn)