public Result getScript ( boolean indexRoots ) { Result r = Result . newSingleColumnResult ( "COMMAND" , Type . SQL_VARCHAR ) ; String [ ] list = getSettingsSQL ( ) ; addRows ( r , list ) ; list = getGranteeManager ( ) . getSQL ( ) ; addRows ( r , list ) ; // schemas and schema objects such as tables, sequences, etc. list = schemaManager . getSQLArray ( ) ; addRows ( r , list ) ; // index roots if ( indexRoots ) { list = schemaManager . getIndexRootsSQL ( ) ; addRows ( r , list ) ; } // user session start schema names list = getUserManager ( ) . getInitialSchemaSQL ( ) ; addRows ( r , list ) ; // grantee rights list = getGranteeManager ( ) . getRightstSQL ( ) ; addRows ( r , list ) ; list = getPropertiesSQL ( ) ; addRows ( r , list ) ; return r ; }
Returns the schema and authorisation statements for the database .