本文整理汇总了Java中org.hsqldb.persist.HsqlDatabaseProperties.FILE_PROPERTY属性的典型用法代码示例。如果您正苦于以下问题:Java HsqlDatabaseProperties.FILE_PROPERTY属性的具体用法?Java HsqlDatabaseProperties.FILE_PROPERTY怎么用?Java HsqlDatabaseProperties.FILE_PROPERTY使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.hsqldb.persist.HsqlDatabaseProperties
的用法示例。
在下文中一共展示了HsqlDatabaseProperties.FILE_PROPERTY属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SYSTEM_CONNECTION_PROPERTIES
/**
* getClientInfoProperties
*
* @return Result
*
* <li><b>NAME</b> String=> The name of the client info property<br>
* <li><b>MAX_LEN</b> int=> The maximum length of the value for the property<br>
* <li><b>DEFAULT_VALUE</b> String=> The default value of the property<br>
* <li><b>DESCRIPTION</b> String=> A description of the property. This will typically
* contain information as to where this property is
* stored in the database.
*/
final Table SYSTEM_CONNECTION_PROPERTIES(Session session,
PersistentStore store) {
Table t = sysTables[SYSTEM_CONNECTION_PROPERTIES];
if (t == null) {
t = createBlankTable(
sysTableHsqlNames[SYSTEM_CONNECTION_PROPERTIES]);
addColumn(t, "NAME", SQL_IDENTIFIER);
addColumn(t, "MAX_LEN", Type.SQL_INTEGER);
addColumn(t, "DEFAULT_VALUE", SQL_IDENTIFIER); // not null
addColumn(t, "DESCRIPTION", SQL_IDENTIFIER); // not null
HsqlName name = HsqlNameManager.newInfoSchemaObjectName(
sysTableHsqlNames[SYSTEM_CONNECTION_PROPERTIES].name, false,
SchemaObject.INDEX);
t.createPrimaryKeyConstraint(name, new int[]{ 0 }, true);
return t;
}
Object[] row;
// column number mappings
final int iname = 0;
final int imax_len = 1;
final int idefault_value = 2;
final int idescription = 3;
Iterator it = HsqlDatabaseProperties.getPropertiesMetaIterator();
while (it.hasNext()) {
Object[] meta = (Object[]) it.next();
int propType =
((Integer) meta[HsqlProperties.indexType]).intValue();
if (propType == HsqlDatabaseProperties.FILE_PROPERTY) {
if (HsqlDatabaseProperties.hsqldb_readonly.equals(
meta[HsqlProperties.indexName]) || HsqlDatabaseProperties
.hsqldb_files_readonly.equals(
meta[HsqlProperties.indexName])) {}
else {
continue;
}
} else if (propType != HsqlDatabaseProperties.SQL_PROPERTY) {
continue;
}
row = t.getEmptyRowData();
Object def = meta[HsqlProperties.indexDefaultValue];
row[iname] = meta[HsqlProperties.indexName];
row[imax_len] = ValuePool.getInt(8);
row[idefault_value] = def == null ? null
: def.toString();
row[idescription] = "see HyperSQL guide";
t.insertSys(session, store, row);
}
return t;
}
示例2: SYSTEM_CONNECTION_PROPERTIES
/**
* getClientInfoProperties
*
* @return Result
*
* <li><b>NAME</b> String=> The name of the client info property<br>
* <li><b>MAX_LEN</b> int=> The maximum length of the value for the property<br>
* <li><b>DEFAULT_VALUE</b> String=> The default value of the property<br>
* <li><b>DESCRIPTION</b> String=> A description of the property. This will typically
* contain information as to where this property is
* stored in the database.
*/
final Table SYSTEM_CONNECTION_PROPERTIES(Session session,
PersistentStore store) {
Table t = sysTables[SYSTEM_CONNECTION_PROPERTIES];
if (t == null) {
t = createBlankTable(
sysTableHsqlNames[SYSTEM_CONNECTION_PROPERTIES]);
addColumn(t, "NAME", SQL_IDENTIFIER);
addColumn(t, "MAX_LEN", Type.SQL_INTEGER);
addColumn(t, "DEFAULT_VALUE", SQL_IDENTIFIER); // not null
addColumn(t, "DESCRIPTION", SQL_IDENTIFIER); // not null
HsqlName name = HsqlNameManager.newInfoSchemaObjectName(
sysTableHsqlNames[SYSTEM_PRIMARYKEYS].name, false,
SchemaObject.INDEX);
t.createPrimaryKeyConstraint(name, new int[]{ 0 }, true);
return t;
}
Object[] row;
// column number mappings
final int iname = 0;
final int imax_len = 1;
final int idefault_value = 2;
final int idescription = 3;
Iterator it = HsqlDatabaseProperties.getPropertiesMetaIterator();
while (it.hasNext()) {
Object[] meta = (Object[]) it.next();
int propType =
((Integer) meta[HsqlProperties.indexType]).intValue();
if (propType == HsqlDatabaseProperties.FILE_PROPERTY) {
if (HsqlDatabaseProperties.hsqldb_readonly.equals(
meta[HsqlProperties.indexName]) || HsqlDatabaseProperties
.hsqldb_files_readonly.equals(
meta[HsqlProperties.indexName])) {}
else {
continue;
}
} else if (propType != HsqlDatabaseProperties.SQL_PROPERTY) {
continue;
}
row = t.getEmptyRowData();
Object def = meta[HsqlProperties.indexDefaultValue];
row[iname] = meta[HsqlProperties.indexName];
row[imax_len] = ValuePool.getInt(8);
row[idefault_value] = def == null ? null
: def.toString();
row[idescription] = "see HyperSQL guide";
t.insertSys(session, store, row);
}
return t;
}