本文整理了Java中com.healthmarketscience.jackcess.Database.getSystemTable()
方法的一些代码示例,展示了Database.getSystemTable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Database.getSystemTable()
方法的具体详情如下:
包路径:com.healthmarketscience.jackcess.Database
类名称:Database
方法名:getSystemTable
[英]Returns a reference to any available table in this access database, including system tables.
Warning, this method is not designed for common use, only for the occassional time when access to a system table is necessary. Messing with system tables can strip the paint off your house and give your whole family a permanent, orange afro. You have been warned.
[中]返回对此access数据库中任何可用表(包括系统表)的引用。
警告,此方法不是为通用而设计的,仅适用于需要访问系统表的偶然时间。弄乱系统桌子会剥掉你家的油漆,给你全家一个永久的橙色非洲式发型。你已经被警告了。
代码示例来源:origin: pentaho/pentaho-kettle
t = d.getSystemTable( realTableName );
} else {
t = d.getTable( realTableName );
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
private void createSystemTables() throws SQLException, IOException {
if (sysSchema) {
createSystemSchema();
for (String tn : dbIO.getSystemTableNames()) {
UcanaccessTable t = null;
try {
t = new UcanaccessTable(dbIO.getSystemTable(tn), tn);
if (t != null) {
createTable(t, true);
loadTableData(t, true);
exec("SET TABLE " + schema(SQLConverter.escapeIdentifier(t.getName()), true)
+ " READONLY TRUE ", false);
exec("GRANT SELECT ON " + schema(SQLConverter.escapeIdentifier(t.getName()), true)
+ " TO PUBLIC ", false);
}
} catch (Exception ignore) {
}
}
}
}
代码示例来源:origin: pentaho/pentaho-kettle
data.t = data.d.getSystemTable( data.tableName );
} else {
data.t = data.d.getTable( data.tableName );
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
private boolean checkInside(Database db) throws IOException {
Table t = db.getSystemTable("MSysObjects");
Iterator<Row> it = t.iterator();
while (it.hasNext()) {
Row row = it.next();
Object dobj = row.get("DateUpdate");
Object tobj = row.get("Type");
if (dobj == null || tobj == null) {
continue;
}
Date dt = (Date) dobj;
short type = (Short) tobj;
if (lastModified < dt.getTime() && (type == 1 || type == 5 || type == 8)
) {
return true;
}
}
return false;
}
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
r.put("Name", tn);
catc.updateCurrentRowFromMap(r);
Table srs = db.getSystemTable("MSysRelationships");
Cursor srsc = srs.getDefaultCursor();
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
if (name != null && name.equalsIgnoreCase(tableName)) {
Integer id = (Integer) row.get("Id");
Table tsa = db.getSystemTable("MSysACEs");
Map<String, Object> rowtsa = new HashMap<String, Object>();
rowtsa.put("ObjectId", id);
Table srs = db.getSystemTable("MSysRelationships");
Cursor srsc = srs.getDefaultCursor();
while ((row = srsc.getNextRow()) != null) {
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
UcanaccessConnection conn = UcanaccessConnection.getCtxConnection();
Database db = conn.getDbIO();
Table tbl = db.getSystemTable("MSysRelationships");
IndexCursor crsr = CursorBuilder.createCursor(tbl.getIndex("szRelationship"));
Row r = crsr.findRowByEntry(relationshipName);
r = crsr.findRowByEntry(relationshipName);
tbl = db.getSystemTable("MSysObjects");
crsr = CursorBuilder.createCursor(tbl.getIndex("ParentIdName"));
Map<String, Object> rowPattern = new HashMap<String, Object>();
Integer relationshipId = r.getInt("Id");
tbl.deleteRow(r);
tbl = db.getSystemTable("MSysACEs");
crsr = CursorBuilder.createCursor(tbl.getIndex("ObjectId"));
r = crsr.findRowByEntry(relationshipId);
内容来源于网络,如有侵权,请联系作者删除!