edu.iastate.anthill.indus.agent
Class InfoWriter

java.lang.Object
  extended byedu.iastate.anthill.indus.agent.InfoWriter
All Implemented Interfaces:
IndusCommand

public class InfoWriter
extends java.lang.Object
implements IndusCommand

@author Jie Bao , baojie@cs.iastate.edu

@since 2005-03-27


Field Summary
 
Fields inherited from interface edu.iastate.anthill.indus.agent.IndusCommand
CMD_DELETE_MAPPING, CMD_DELETE_SCHEMA, CMD_DELETE_TYPE, CMD_DELETE_VIEW, CMD_GET_ALL_MAPPING, CMD_GET_ALL_SCHEMA, CMD_GET_ALL_TYPE, CMD_GET_ALL_VIEW, CMD_GET_MAPPING_DETAILS, CMD_GET_SCHEMA_DETAILS, CMD_GET_TYPE_DETAILS, CMD_GET_VIEW_DETAILS, CMD_HELLO, CMD_NEW_TYPE, CMD_UPDATE_MAPPING, CMD_UPDATE_SCHEMA, CMD_UPDATE_TYPE, CMD_UPDATE_VIEW, RES_GENERAL_ERROR, RES_OK, RES_UNKNOWN_CMD
 
Constructor Summary
InfoWriter()
           
 
Method Summary
private static boolean delete(java.lang.String command, java.lang.String name)
          Generic delete
static boolean deleteMapping(java.lang.String name)
           
static boolean deleteSchema(java.lang.String name)
           
static boolean deleteType(java.lang.String name)
           
static boolean deleteView(java.lang.String name)
           
private static boolean write(java.lang.String command, java.lang.String name, Configable toWrite)
          Generic writer
static boolean writeDataSource(java.sql.Connection systemDB, IndusDataSource ds)
           
static boolean writeMapping(DataSourceMapping mapping)
           
static boolean writeSchema(Schema schema)
          Send schema to the server
static boolean writeType(DataType type)
           
static boolean writeView(View view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoWriter

public InfoWriter()
Method Detail

writeSchema

public static boolean writeSchema(Schema schema)
Send schema to the server

Parameters:
schema - Schema
Returns:
boolean
Since:
2005-03-27

writeType

public static boolean writeType(DataType type)

writeMapping

public static boolean writeMapping(DataSourceMapping mapping)

writeView

public static boolean writeView(View view)

writeDataSource

public static boolean writeDataSource(java.sql.Connection systemDB,
                                      IndusDataSource ds)

write

private static boolean write(java.lang.String command,
                             java.lang.String name,
                             Configable toWrite)
Generic writer

Parameters:
command - String
name - String
toWrite - Configable
Returns:
boolean
Since:
2005-03-27

delete

private static boolean delete(java.lang.String command,
                              java.lang.String name)
Generic delete

Parameters:
command - String
name - String
Returns:
boolean
Since:
2005-03-27

deleteType

public static boolean deleteType(java.lang.String name)

deleteSchema

public static boolean deleteSchema(java.lang.String name)

deleteMapping

public static boolean deleteMapping(java.lang.String name)

deleteView

public static boolean deleteView(java.lang.String name)