Package railo.runtime.type

Examples of railo.runtime.type.CastableStruct


  }
 


  private static Struct checkTableFill(DatabaseMetaData md, String dbName, String tableName) throws SQLException, PageException {
    Struct rows=new CastableStruct(tableName,Struct.TYPE_LINKED);
    ResultSet columns = md.getColumns(dbName, null, tableName, null);
    //print.o(new QueryImpl(columns,""));
    try{
      String name;
      Object nullable;
      while(columns.next()) {
        name=columns.getString("COLUMN_NAME");
       
        nullable=columns.getObject("IS_NULLABLE");
        rows.setEL(CommonUtil.createKey(name),new ColumnInfo(
            name,
            columns.getInt("DATA_TYPE"),
            columns.getString("TYPE_NAME"),
            columns.getInt("COLUMN_SIZE"),
            CommonUtil.toBooleanValue(nullable
View Full Code Here


            // MUST valueStruct
            if(name.indexOf('.')!=-1) {
                StringList list=ListUtil.listToStringListRemoveEmpty(name,'.');
                Struct parent=this;
                while(list.hasNextNext()) {
                    parent=_fill(parent,list.next(),new CastableStruct(),false,scriptProteced,sameAsArray);
                }
                _fill(parent,list.next(),value,true,scriptProteced,sameAsArray);
            }
            //else
                _fill(this,name,value,true,scriptProteced,sameAsArray);
View Full Code Here

TOP

Related Classes of railo.runtime.type.CastableStruct

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.