本文整理汇总了Java中org.hsqldb.RowAction.ACTION_DELETE属性的典型用法代码示例。如果您正苦于以下问题:Java RowAction.ACTION_DELETE属性的具体用法?Java RowAction.ACTION_DELETE怎么用?Java RowAction.ACTION_DELETE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.hsqldb.RowAction
的用法示例。
在下文中一共展示了RowAction.ACTION_DELETE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
remove(row);
break;
case RowAction.ACTION_INSERT :
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELEETE
remove(row);
break;
case RowAction.ACTION_DELETE_FINAL :
throw Error.runtimeError(ErrorCode.U_S0500, "RowStore");
}
}
示例2: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
Object[] data = row.getData();
switch (changeAction) {
case RowAction.ACTION_DELETE :
database.logger.writeDeleteStatement(session, (Table) table,
data);
break;
case RowAction.ACTION_INSERT :
database.logger.writeInsertStatement(session, row,
(Table) table);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
break;
case RowAction.ACTION_DELETE_FINAL :
throw Error.runtimeError(ErrorCode.U_S0500, "RowStore");
}
}
示例3: rollbackRow
public void rollbackRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
if (txModel == TransactionManager.LOCKS) {
((RowAVL) row).setNewNodes(this);
indexRow(session, row);
}
break;
case RowAction.ACTION_INSERT :
delete(session, row);
remove(row);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
remove(row);
break;
}
}
示例4: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
remove(row);
break;
case RowAction.ACTION_INSERT :
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELEETE
remove(row);
break;
case RowAction.ACTION_DELETE_FINAL :
delete(session, row);
remove(row);
break;
}
}
示例5: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
remove(row.getPos());
break;
case RowAction.ACTION_INSERT :
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELEETE
remove(row.getPos());
break;
case RowAction.ACTION_DELETE_FINAL :
delete(session, row);
break;
}
}
示例6: rollbackRow
public void rollbackRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
row = (Row) get(row, true);
((RowAVL) row).setNewNodes(this);
row.keepInMemory(false);
indexRow(session, row);
break;
case RowAction.ACTION_INSERT :
delete(session, row);
remove(row.getPos());
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELEETE
remove(row.getPos());
break;
}
}
示例7: rollbackRow
public void rollbackRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
row = (Row) get(row, true);
((RowAVL) row).setNewNodes(this);
row.keepInMemory(false);
indexRow(session, row);
break;
case RowAction.ACTION_INSERT :
delete(session, row);
remove(row);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELEETE
remove(row);
break;
}
}
示例8: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
Object[] data = row.getData();
switch (changeAction) {
case RowAction.ACTION_DELETE :
database.logger.writeDeleteStatement(session, (Table) table,
data);
if (txModel == TransactionManager.LOCKS) {
remove(row);
}
break;
case RowAction.ACTION_INSERT :
database.logger.writeInsertStatement(session, row,
(Table) table);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
if (txModel == TransactionManager.LOCKS) {
remove(row);
}
break;
case RowAction.ACTION_DELETE_FINAL :
throw Error.runtimeError(ErrorCode.U_S0500, "RowStore");
}
}
示例9: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
cache.removePersistence(row);
break;
case RowAction.ACTION_INSERT :
commitPersistence(row);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
if (txModel == TransactionManager.LOCKS) {
remove(row);
} else {
delete(session, row);
remove(row);
}
break;
case RowAction.ACTION_DELETE_FINAL :
throw Error.runtimeError(ErrorCode.U_S0500, "RowStore");
}
}
示例10: rollbackRow
public void rollbackRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
if (txModel == TransactionManager.LOCKS) {
((RowAVL) row).setNewNodes(this);
indexRow(session, row);
}
break;
case RowAction.ACTION_INSERT :
if (txModel == TransactionManager.LOCKS) {
delete(session, row);
remove(row);
}
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
if (txModel == TransactionManager.LOCKS) {
remove(row);
} else {
delete(session, row);
remove(row);
}
break;
}
}
示例11: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
Object[] data = row.getData();
switch (changeAction) {
case RowAction.ACTION_DELETE :
database.logger.writeDeleteStatement(session, (Table) table,
data);
break;
case RowAction.ACTION_INSERT :
database.logger.writeInsertStatement(session, row,
(Table) table);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
break;
case RowAction.ACTION_DELETE_FINAL :
delete(session, row);
break;
}
}
示例12: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
Object[] data = row.getData();
switch (changeAction) {
case RowAction.ACTION_DELETE :
database.logger.writeDeleteStatement(session, (Table) table,
data);
if (txModel == TransactionManager.LOCKS) {
remove(row);
}
break;
case RowAction.ACTION_INSERT :
database.logger.writeInsertStatement(session, row,
(Table) table);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
if (txModel == TransactionManager.LOCKS) {
remove(row);
}
break;
case RowAction.ACTION_DELETE_FINAL :
delete(session, row);
// remove info after delete but before removing persistence
database.txManager.removeTransactionInfo(row);
remove(row);
break;
}
}
示例13: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
cache.removePersistence(row);
break;
case RowAction.ACTION_INSERT :
commitPersistence(row);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
if (txModel == TransactionManager.LOCKS) {
remove(row);
} else {
delete(session, row);
remove(row);
}
break;
case RowAction.ACTION_DELETE_FINAL :
if (txModel != TransactionManager.LOCKS) {
delete(session, row);
remove(row);
}
break;
}
}
示例14: rollbackRow
public void rollbackRow(Session session, Row row, int changeAction,
int txModel) {
switch (changeAction) {
case RowAction.ACTION_DELETE :
if (txModel == TransactionManager.LOCKS) {
((RowAVL) row).setNewNodes(this);
indexRow(session, row);
}
break;
case RowAction.ACTION_INSERT :
if (txModel == TransactionManager.LOCKS) {
delete(session, row);
remove(row.getPos());
}
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
if (txModel == TransactionManager.LOCKS) {
remove(row.getPos());
}
break;
}
}
示例15: commitRow
public void commitRow(Session session, Row row, int changeAction,
int txModel) {
Object[] data = row.getData();
switch (changeAction) {
case RowAction.ACTION_DELETE :
database.logger.writeDeleteStatement(session, (Table) table,
data);
if (txModel == TransactionManager.LOCKS) {
remove(row.getPos());
}
break;
case RowAction.ACTION_INSERT :
database.logger.writeInsertStatement(session, row,
(Table) table);
break;
case RowAction.ACTION_INSERT_DELETE :
// INSERT + DELETE
if (txModel == TransactionManager.LOCKS) {
remove(row.getPos());
}
break;
case RowAction.ACTION_DELETE_FINAL :
delete(session, row);
// remove info after delete
database.txManager.removeTransactionInfo(row);
remove(row.getPos());
break;
}
}