提交 e3802ac3 编写于 作者: L liuyuanyuan

Add cache,cycle and l10n for postgresql sequence。

上级 bdb4047a
......@@ -286,13 +286,17 @@ meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema.description.descriptio
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema.owner.name=\u6240\u6709\u8005
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema.owner.description=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.incrementBy.name=\u6B65\u957F
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.incrementBy.description=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.incrementBy.description=\u8BE5\u5E8F\u5217\u7684\u6B65\u957F
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.lastValue.name=\u6700\u540E\u503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.lastValue.description=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.lastValue.description=\u8BE5\u5E8F\u5217\u7684\u6700\u540E\u503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.maxValue.name=\u6700\u5927\u503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.maxValue.description=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.maxValue.description=\u8BE5\u5E8F\u5217\u7684\u6700\u5927\u503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.minValue.name=\u6700\u5C0F\u503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.minValue.description=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.minValue.description=\u8BE5\u5E8F\u5217\u7684\u6700\u5C0F\u503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cacheValue.name=\u7F13\u5B58
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cacheValue.description=\u8BE5\u5E8F\u5217\u7684\u7F13\u5B58
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cycled.name=\u5FAA\u73AF\u7684
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cycled.description=\u8BE5\u5E8F\u5217\u662F\u5426\u5FAA\u73AF
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.hasOids.name=\u6709 Oid
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.hasOids.description=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.subTables.name=\u5B50\u8868
......
......@@ -310,6 +310,8 @@ meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.maxVa
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.maxValue.description=Maximum value of the sequence
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.minValue.name=Min Value
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.minValue.description=Minimum value of the sequence
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cacheValue.name=Cache
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cacheValue.description=Cache of the sequence
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cycled.name=Cycled
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cycled.description= Whether the sequence cycles
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.hasOids.name=Has Oids
......
......@@ -58,6 +58,7 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
private Number minValue;
private Number maxValue;
private Number incrementBy;
private Number cacheValue;
private boolean isCycled;
@Property(viewable = true, editable = true, updatable = false, order = 10)
......@@ -77,6 +78,10 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
return incrementBy;
}
@Property(viewable = true, editable = true, updatable = false, order = 14)
public Number getCacheValue() {
return cacheValue;
}
@Property(viewable = true, editable = true, updatable = false, order = 15)
public boolean isCycled() {
return isCycled;
}
......@@ -124,6 +129,7 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
additionalInfo.minValue = JDBCUtils.safeGetLong(seqResults, "min_value");
additionalInfo.maxValue = JDBCUtils.safeGetLong(seqResults, "max_value");
additionalInfo.incrementBy = JDBCUtils.safeGetLong(seqResults, "increment_by");
additionalInfo.cacheValue = JDBCUtils.safeGetLong(seqResults, "cache_size");
additionalInfo.isCycled = JDBCUtils.safeGetBoolean(seqResults, "cycle");
}
}
......@@ -137,6 +143,7 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
additionalInfo.minValue = JDBCUtils.safeGetLong(seqResults, "min_value");
additionalInfo.maxValue = JDBCUtils.safeGetLong(seqResults, "max_value");
additionalInfo.incrementBy = JDBCUtils.safeGetLong(seqResults, "increment_by");
additionalInfo.cacheValue = JDBCUtils.safeGetLong(seqResults, "cache_size");
additionalInfo.isCycled = JDBCUtils.safeGetBoolean(seqResults, "is_cycled");
}
}
......@@ -214,6 +221,9 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
if (info.getLastValue() != null && info.getLastValue().longValue() > 0) {
sql.append("\n\tSTART ").append(info.getLastValue());
}
sql.append("\n\tCACHE ").append(info.getCacheValue())
.append("\n\t").append(info.isCycled ? "" : "NO ").append("CYCLE")
.append(";");
if (!CommonUtils.isEmpty(getDescription())) {
sql.append("\nCOMMENT ON SEQUENCE ").append(DBUtils.getQuotedIdentifier(this)).append(" IS ")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册