org.safehaus.penrose.cache
Class CacheManager

java.lang.Object
  extended byorg.safehaus.penrose.cache.CacheManager

public class CacheManager
extends java.lang.Object

Author:
Endi S. Dewata

Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
CacheManager()
           
 
Method Summary
static void changeTable(Penrose penrose)
           
static void clean(Penrose penrose)
           
static void create(Penrose penrose)
           
static void drop(Penrose penrose)
           
static void generateAddTrigger(java.lang.String tableName, java.util.Collection primaryKeyFieldConfigs)
           
static void generateCreateTable(java.lang.String tableName, java.util.Collection primaryKeyFieldConfigs)
           
static void generateDeleteTrigger(java.lang.String tableName, java.util.Collection primaryKeyFieldConfigs)
           
static void generateModifyTrigger(java.lang.String tableName, java.util.Collection primaryKeyFieldConfigs)
           
static void load(Penrose penrose)
           
static void main(java.lang.String[] args)
           
static void showUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.apache.log4j.Logger log
Constructor Detail

CacheManager

public CacheManager()
             throws java.lang.Exception
Method Detail

create

public static void create(Penrose penrose)
                   throws java.lang.Exception
Throws:
java.lang.Exception

load

public static void load(Penrose penrose)
                 throws java.lang.Exception
Throws:
java.lang.Exception

clean

public static void clean(Penrose penrose)
                  throws java.lang.Exception
Throws:
java.lang.Exception

drop

public static void drop(Penrose penrose)
                 throws java.lang.Exception
Throws:
java.lang.Exception

changeTable

public static void changeTable(Penrose penrose)
                        throws java.lang.Exception
Throws:
java.lang.Exception

generateCreateTable

public static void generateCreateTable(java.lang.String tableName,
                                       java.util.Collection primaryKeyFieldConfigs)
                                throws java.lang.Exception
Throws:
java.lang.Exception

generateAddTrigger

public static void generateAddTrigger(java.lang.String tableName,
                                      java.util.Collection primaryKeyFieldConfigs)
                               throws java.lang.Exception
Throws:
java.lang.Exception

generateModifyTrigger

public static void generateModifyTrigger(java.lang.String tableName,
                                         java.util.Collection primaryKeyFieldConfigs)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

generateDeleteTrigger

public static void generateDeleteTrigger(java.lang.String tableName,
                                         java.util.Collection primaryKeyFieldConfigs)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

showUsage

public static void showUsage()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception