public class GaussDBforOpenDatabaseForCreation extends Object
| Constructor and Description |
|---|
GaussDBforOpenDatabaseForCreation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCharacterSet()
数据库字符集。默认C。
|
String |
getLcCollate()
数据库排序集。默认默认C。 - 须知: 不同的排序规则下,相同字符串的比较其结果可能是不同的。 例如,在en_US.utf8下, select 'a'>'A';执行结果为false,但在'C'下,select 'a'>'A';结果为true。如果数据库从“O”迁移到GaussDB for OpenGauss,数据库排序集需使用'C'才能得到一致的预期。支持的排序规则可以查询系统表 pg_collation。
|
String |
getLcCtype()
数据库分类集。默认C。
|
String |
getName()
数据库名称。 数据库名称长度可在1~63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB for OpenGauss模板库重名。 GaussDB for OpenGauss模板库包括postgres, template0 ,template1。
|
String |
getOwner()
数据库所属用户,缺省时默认是root,不能和系统用户重名,且必须是已存在的用户。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”。
|
String |
getTemplate()
数据库模板名称,仅为template0。
|
int |
hashCode() |
void |
setCharacterSet(String characterSet) |
void |
setLcCollate(String lcCollate) |
void |
setLcCtype(String lcCtype) |
void |
setName(String name) |
void |
setOwner(String owner) |
void |
setTemplate(String template) |
String |
toString() |
GaussDBforOpenDatabaseForCreation |
withCharacterSet(String characterSet) |
GaussDBforOpenDatabaseForCreation |
withLcCollate(String lcCollate) |
GaussDBforOpenDatabaseForCreation |
withLcCtype(String lcCtype) |
GaussDBforOpenDatabaseForCreation |
withName(String name) |
GaussDBforOpenDatabaseForCreation |
withOwner(String owner) |
GaussDBforOpenDatabaseForCreation |
withTemplate(String template) |
public GaussDBforOpenDatabaseForCreation withName(String name)
public String getName()
public void setName(String name)
public GaussDBforOpenDatabaseForCreation withCharacterSet(String characterSet)
public String getCharacterSet()
public void setCharacterSet(String characterSet)
public GaussDBforOpenDatabaseForCreation withOwner(String owner)
public String getOwner()
public void setOwner(String owner)
public GaussDBforOpenDatabaseForCreation withTemplate(String template)
public String getTemplate()
public void setTemplate(String template)
public GaussDBforOpenDatabaseForCreation withLcCollate(String lcCollate)
public String getLcCollate()
public void setLcCollate(String lcCollate)
public GaussDBforOpenDatabaseForCreation withLcCtype(String lcCtype)
public String getLcCtype()
public void setLcCtype(String lcCtype)
Copyright © 2022. All rights reserved.