/** * Get the id column * * @return id column */ public UserCustomColumn getIdColumn() { return getTable().getIdColumn(); }
/** * Get the id column index * * @return id column index */ public int getIdColumnIndex() { return getTable().getIdColumnIndex(); }
/** * {@inheritDoc} */ @Override public SimpleAttributesRow newRow() { return new SimpleAttributesRow(getTable()); }
/** * Copy the row * * @return row copy */ public SimpleAttributesRow copy() { return new SimpleAttributesRow(this); }
/** * Get the required columns * * @return required columns */ public static List<String> requiredColumns() { return requiredColumns(null); }
/** * Get the id column * * @return id column */ public UserCustomColumn getIdColumn() { return getPkColumn(); }
/** * Create a simple attributes table with the columns * * @param tableName * table name * @param columns * columns * @return simple attributes table */ public static SimpleAttributesTable create(String tableName, List<UserCustomColumn> columns) { return create(tableName, null, columns); }
/** * Determine if the column is a non nullable simple type: TEXT, INTEGER, or * REAL * * @param column * user column * @return true if a simple column */ public static boolean isSimple(UserColumn column) { return column.isNotNull() && isSimple(column.getDataType()); }
/** * Create the required table columns with the id column name, starting at * index 0 * * @param idColumnName * id column name * @return user custom columns */ public static List<UserCustomColumn> createRequiredColumns( String idColumnName) { return createRequiredColumns(0, idColumnName); }
/** * Get the id column index * * @return id column index */ public int getIdColumnIndex() { return getPkColumnIndex(); }
/** * Constructor * * @param table * user custom table */ SimpleAttributesTable(UserCustomTable table) { super(RELATION_TYPE.getName(), RELATION_TYPE.getDataType(), table); validateColumns(); }
/** * Get the id column * * @return id column */ public UserCustomColumn getIdColumn() { return getTable().getIdColumn(); }
/** * {@inheritDoc} */ @Override public SimpleAttributesRow newRow() { return new SimpleAttributesRow(getTable()); }
/** * Get the id column index * * @return id column index */ public int getIdColumnIndex() { return getTable().getIdColumnIndex(); }
/** * Get a simple attributes row from the user custom row * * @param row custom row * @return simple attributes row */ public SimpleAttributesRow getRow(UserCustomRow row) { return new SimpleAttributesRow(row); }
/** * Get the number of required columns * * @return required columns count */ public static int numRequiredColumns() { return requiredColumns().size(); }
/** * Create the required table columns, starting at the provided index * * @param startingIndex * starting index * @return user custom columns */ public static List<UserCustomColumn> createRequiredColumns(int startingIndex) { return createRequiredColumns(startingIndex, null); }
/** * Copy the row * * @return row copy */ public SimpleAttributesRow copy() { return new SimpleAttributesRow(this); }
/** * Create the required table columns, starting at index 0 * * @return user custom columns */ public static List<UserCustomColumn> createRequiredColumns() { return createRequiredColumns(0); }
/** * Get a simple attributes row from the user custom row * * @param row * custom row * @return simple attributes row */ public SimpleAttributesRow getRow(UserCustomRow row) { return new SimpleAttributesRow(row); }