com.aneeshpu.dpdeppop.schema
Class Record
java.lang.Object
com.aneeshpu.dpdeppop.schema.Record
public class Record
- extends Object
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
Record
public Record(String tableName,
Map<String,Map<String,Object>> preassignedValues,
com.aneeshpu.dpdeppop.schema.ColumnCreationStrategy columnCreationStrategy,
QueryFactory queryFactory,
Map<String,List<Tuple>> parentTableMetadata)
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.