com.aneeshpu.dpdeppop.schema
Class Record

java.lang.Object
  extended by com.aneeshpu.dpdeppop.schema.Record

public class Record
extends Object


Field Summary
static String COLUMN_NAME
           
static String FOREIGN_KEY_COLUMN_NAME
           
static org.apache.log4j.Logger LOG
           
static String PRIMARY_KEY_COLUMN_NAME
           
static String PRIMARY_KEY_TABLE_NAME
           
 
Constructor Summary
Record(String tableName, Map<String,Map<String,Object>> preassignedValues, com.aneeshpu.dpdeppop.schema.ColumnCreationStrategy columnCreationStrategy, QueryFactory queryFactory, Map<String,List<Tuple>> parentTableMetadata)
           
 
Method Summary
 Map<String,Column> columns()
           
 void delete(Connection connection)
           
 boolean equals(Object o)
           
 Column getColumn(String columnName)
           
 List<String> getPrimaryKeys(Connection connection)
           
 int hashCode()
           
 Map<String,Record> populate(boolean onlyPopulateParentTables, Connection connection)
           
 String tableName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG

PRIMARY_KEY_TABLE_NAME

public static final String PRIMARY_KEY_TABLE_NAME
See Also:
Constant Field Values

PRIMARY_KEY_COLUMN_NAME

public static final String PRIMARY_KEY_COLUMN_NAME
See Also:
Constant Field Values

FOREIGN_KEY_COLUMN_NAME

public static final String FOREIGN_KEY_COLUMN_NAME
See Also:
Constant Field Values

COLUMN_NAME

public static final String COLUMN_NAME
See Also:
Constant Field Values
Constructor Detail

Record

public Record(String tableName,
              Map<String,Map<String,Object>> preassignedValues,
              com.aneeshpu.dpdeppop.schema.ColumnCreationStrategy columnCreationStrategy,
              QueryFactory queryFactory,
              Map<String,List<Tuple>> parentTableMetadata)
Method Detail

tableName

public String tableName()

getColumn

public Column getColumn(String columnName)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

columns

public Map<String,Column> columns()

populate

public Map<String,Record> populate(boolean onlyPopulateParentTables,
                                   Connection connection)
                            throws SQLException
Throws:
SQLException

getPrimaryKeys

public List<String> getPrimaryKeys(Connection connection)
                            throws SQLException
Throws:
SQLException

delete

public void delete(Connection connection)
            throws SQLException
Throws:
SQLException


Copyright © 2013. All Rights Reserved.